23 lines
532 B
C
Raw Normal View History

2023-07-13 11:27:03 +08:00
#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();
2023-07-13 11:27:03 +08:00
void rfm1_set_trigger_high();
void rfm1_set_trigger_low();
#endif