Added Test Wake-Up
[i3-mote/i3-mote.git] / Basic-Test-Package / CC2650 / Test_CC2650_WakeUp / Board.h
1 /*
2  */
4 #ifndef __BOARD_H
5 #define __BOARD_H
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
11 #include <ti/drivers/Power.h>
13 #include "CC2650_I3M.h"
15 /* These #defines allow us to reuse TI-RTOS across other device families */
16 #define     Board_LED0              Board_LEDR
17 #define     Board_LED1              Board_LEDG
18 #define     Board_LED2              Board_LED0
20 #define     Board_BUTTON0           Board_BTN1
21 #define     Board_BUTTON1           Board_BTN2
23 #define     Board_I2C0              Board_I2C
25 #define     Board_UART0             Board_UART
26 #define     Board_AES0              Board_AES
27 #define     Board_WATCHDOG0         Board_WATCHDOG
29 #define     Board_ADC0              CC2650_I3MOTE_ADCVSS
30 #define     Board_ADC1              CC2650_I3MOTE_ADCVDDS
32 #define     Board_ADCBuf0           CC2650_I3MOTE_ADCBuf0
34 #define     Board_ADCBufChannel0    (0)
35 #define     Board_initGeneral() { \
36     Power_init(); \
37     if (PIN_init(BoardGpioInitTable) != PIN_SUCCESS) \
38         {System_abort("Error with PIN_init\n"); \
39     } \
40 }
42 #define     Board_initGPIO()
43 #define     Board_initPWM()        PWM_init()
44 #define     Board_initSPI()         SPI_init()
45 #define     Board_initI2C()         I2C_init()
46 #define     Board_initUART()        UART_init()
47 #define     Board_initWatchdog()    Watchdog_init()
48 #define     Board_initADCBuf()      ADCBuf_init()
49 #define     Board_initADC()         ADC_init()
50 #define     GPIO_toggle(n)
51 #define     GPIO_write(n,m)
53 #ifdef __cplusplus
54 }
55 #endif
57 #endif /* __BOARD_H */