23 lines
530 B
C
23 lines
530 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
|
|
|