9、nRF52xx蓝牙学习(pca10056.h学习)-ELink墨水屏电子纸社区-FPGA CPLD-ChipDebug

9、nRF52xx蓝牙学习(pca10056.h学习)

 

pca10056.h代码如下:

#ifndef PCA10056_H #define PCA10056_H  #ifdef __cplusplus extern "C" { #endif  #include "nrf_gpio.h"  // LEDs definitions for PCA10056 #define LEDS_NUMBER    4  #define LED_1          NRF_GPIO_PIN_MAP(0,13) #define LED_2          NRF_GPIO_PIN_MAP(0,14) #define LED_3          NRF_GPIO_PIN_MAP(0,15) #define LED_4          NRF_GPIO_PIN_MAP(0,16) #define LED_START      LED_1 #define LED_STOP       LED_4  #define LEDS_ACTIVE_STATE 0  #define LEDS_LIST { LED_1, LED_2, LED_3, LED_4 }  #define LEDS_INV_MASK  LEDS_MASK  #define BSP_LED_0      13 #define BSP_LED_1      14 #define BSP_LED_2      15 #define BSP_LED_3      16  #define BUTTONS_NUMBER 4  #define BUTTON_1       11 #define BUTTON_2       12 #define BUTTON_3       24 #define BUTTON_4       25 #define BUTTON_PULL    NRF_GPIO_PIN_PULLUP  #define BUTTONS_ACTIVE_STATE 0  #define BUTTONS_LIST { BUTTON_1, BUTTON_2, BUTTON_3, BUTTON_4 }  #define BSP_BUTTON_0   BUTTON_1 #define BSP_BUTTON_1   BUTTON_2 #define BSP_BUTTON_2   BUTTON_3 #define BSP_BUTTON_3   BUTTON_4  #define RX_PIN_NUMBER  8 #define TX_PIN_NUMBER  6 #define CTS_PIN_NUMBER 7 #define RTS_PIN_NUMBER 5 #define HWFC           true  #define BSP_QSPI_SCK_PIN   19 #define BSP_QSPI_CSN_PIN   17 #define BSP_QSPI_IO0_PIN   20 #define BSP_QSPI_IO1_PIN   21 #define BSP_QSPI_IO2_PIN   22 #define BSP_QSPI_IO3_PIN   23   // serialization APPLICATION board - temp. setup for running serialized MEMU tests #define SER_APP_RX_PIN              NRF_GPIO_PIN_MAP(1,13)    // UART RX pin number. #define SER_APP_TX_PIN              NRF_GPIO_PIN_MAP(1,14)    // UART TX pin number. #define SER_APP_CTS_PIN             NRF_GPIO_PIN_MAP(0,2)     // UART Clear To Send pin number. #define SER_APP_RTS_PIN             NRF_GPIO_PIN_MAP(1,15)    // UART Request To Send pin number.  #define SER_APP_SPIM0_SCK_PIN       
请登录后发表评论

    没有回复内容