xinxin.li f9960a4e8c 1. modify gpio funciton for jesd version;
2. verified case: case21, case34, case44
2023-08-26 12:36:10 +08:00

23 lines
532 B
C

#ifndef _HW_GPIO_H_
#define _HW_GPIO_H_
#include "dw_apb_gpio.h"
// EVMY
// ctrl RF
#define TxOn() {GPIO1_SWPORTB_DR |= (GPIO_Pin_5|GPIO_Pin_4|GPIO_Pin_7|GPIO_Pin_6);}
#define TxOff() {GPIO1_SWPORTB_DR &= (~(GPIO_Pin_5|GPIO_Pin_4|GPIO_Pin_7|GPIO_Pin_6)); }
#define RxOn() {GPIO1_SWPORTB_DR &= (~(GPIO_Pin_24|GPIO_Pin_25)); }
#define RxOff() {GPIO1_SWPORTB_DR |= (GPIO_Pin_24|GPIO_Pin_25);}
//void hw_gpio_init();
void rfm1_set_trigger_high();
void rfm1_set_trigger_low();
#endif