45 #ifndef __LPSTK_BOARD_H__ 46 #define __LPSTK_BOARD_H__ 52 #include "contiki-conf.h" 55 #include <ti/drivers/PIN.h> 56 #include <ti/devices/DeviceFamily.h> 57 #include DeviceFamily_constructPath(driverlib/ioc.h) 60 extern const PIN_Config BoardGpioInitTable[];
73 #define LPSTK_DIO24_ANALOG IOID_24 74 #define LPSTK_DIO26_ANALOG IOID_26 75 #define LPSTK_DIO28_ANALOG IOID_28 76 #define LPSTK_DIO29_ANALOG IOID_29 79 #define LPSTK_BUZZER IOID_21 80 #define LPSTK_BUZZER_ON 1 81 #define LPSTK_BUZZER_OFF 0 84 #define LPSTK_PIN_BTN1 IOID_15 85 #define LPSTK_PIN_BTN2 IOID_14 86 #define LPSTK_KEY_LEFT LPSTK_PIN_BTN2 87 #define LPSTK_KEY_RIGHT LPSTK_PIN_BTN1 88 #define LPSTK_RELAY IOID_23 91 #define LPSTK_GPIO_LED_ON 1 92 #define LPSTK_GPIO_LED_OFF 0 95 #define LPSTK_I2C0_SCL0 IOID_4 96 #define LPSTK_I2C0_SDA0 IOID_5 97 #define LPSTK_I2C0_SCL1 PIN_UNASSIGNED 98 #define LPSTK_I2C0_SDA1 PIN_UNASSIGNED 101 #define LPSTK_I2S_ADO IOID_22 102 #define LPSTK_I2S_ADI IOID_2 103 #define LPSTK_I2S_BCLK IOID_3 104 #define LPSTK_I2S_MCLK PIN_UNASSIGNED 105 #define LPSTK_I2S_WCLK IOID_16 108 #define LPSTK_PIN_LED_ON 1 109 #define LPSTK_PIN_LED_OFF 0 110 #define LPSTK_PIN_RLED IOID_6 111 #define LPSTK_PIN_GLED IOID_7 114 #define LPSTK_MPU_POWER IOID_11 115 #define LPSTK_MPU_POWER_ON 1 116 #define LPSTK_MPU_POWER_OFF 0 119 #define LPSTK_PWMPIN0 LPSTK_PIN_RLED 120 #define LPSTK_PWMPIN1 LPSTK_PIN_GLED 121 #define LPSTK_PWMPIN2 PIN_UNASSIGNED 122 #define LPSTK_PWMPIN3 PIN_UNASSIGNED 123 #define LPSTK_PWMPIN4 PIN_UNASSIGNED 124 #define LPSTK_PWMPIN5 PIN_UNASSIGNED 125 #define LPSTK_PWMPIN6 PIN_UNASSIGNED 126 #define LPSTK_PWMPIN7 PIN_UNASSIGNED 129 #define LPSTK_MPU_INT IOID_30 130 #define LPSTK_TMP_RDY IOID_25 133 #define LPSTK_SPI_FLASH_CS IOID_20 134 #define LPSTK_FLASH_CS_ON 0 135 #define LPSTK_FLASH_CS_OFF 1 138 #define LPSTK_SPI0_MISO IOID_8 139 #define LPSTK_SPI0_MOSI IOID_9 140 #define LPSTK_SPI0_CLK IOID_10 141 #define LPSTK_SPI0_CSN IOID_11 142 #define LPSTK_SPI1_MISO PIN_UNASSIGNED 143 #define LPSTK_SPI1_MOSI PIN_UNASSIGNED 144 #define LPSTK_SPI1_CLK PIN_UNASSIGNED 145 #define LPSTK_SPI1_CSN PIN_UNASSIGNED 148 #define LPSTK_UART0_RX IOID_12 149 #define LPSTK_UART0_TX IOID_13 150 #define LPSTK_UART0_CTS IOID_19 151 #define LPSTK_UART0_RTS IOID_18 152 #define LPSTK_UART1_RX PIN_UNASSIGNED 153 #define LPSTK_UART1_TX PIN_UNASSIGNED 154 #define LPSTK_UART1_CTS PIN_UNASSIGNED 155 #define LPSTK_UART1_RTS PIN_UNASSIGNED 157 #define LPSTK_UART_RX LPSTK_UART0_RX 158 #define LPSTK_UART_TX LPSTK_UART0_TX 159 #define LPSTK_UART_CTS LPSTK_UART0_CTS 160 #define LPSTK_UART_RTS LPSTK_UART0_RTS 189 typedef enum LPSTK_ADCBufName {
199 typedef enum LPSTK_ADCBuf0ChannelName {
200 LPSTK_ADCBUF0CHANNEL0 = 0,
201 LPSTK_ADCBUF0CHANNEL1,
202 LPSTK_ADCBUF0CHANNEL2,
203 LPSTK_ADCBUF0CHANNEL3,
204 LPSTK_ADCBUF0CHANNEL4,
205 LPSTK_ADCBUF0CHANNEL5,
206 LPSTK_ADCBUF0CHANNEL6,
207 LPSTK_ADCBUF0CHANNELVDDS,
208 LPSTK_ADCBUF0CHANNELDCOUPL,
209 LPSTK_ADCBUF0CHANNELVSS,
211 LPSTK_ADCBUF0CHANNELCOUNT
212 } LPSTK_ADCBuf0ChannelName;
218 typedef enum LPSTK_ADCName {
237 typedef enum LPSTK_ECDHName {
247 typedef enum LPSTK_ECDSAName {
257 typedef enum LPSTK_ECJPAKEName {
267 typedef enum LPSTK_AESCCMName {
277 typedef enum LPSTK_AESGCMName {
287 typedef enum LPSTK_AESCBCName {
297 typedef enum LPSTK_AESCTRName {
307 typedef enum LPSTK_AESECBName {
317 typedef enum LPSTK_AESCTRDRBGName {
318 LPSTK_AESCTRDRBG0 = 0,
320 LPSTK_AESCTRDRBGCOUNT
321 } LPSTK_AESCTRDRBGName;
327 typedef enum LPSTK_SHA2Name {
337 typedef enum LPSTK_TRNGName {
347 typedef enum LPSTK_GPIOName {
350 LPSTK_GPIO_LED_GREEN,
352 LPSTK_GPIO_SPI_FLASH_CS,
361 typedef enum LPSTK_GPTimerName {
371 LPSTK_GPTIMERPARTSCOUNT
378 typedef enum LPSTK_GPTimers {
391 typedef enum LPSTK_I2CName {
392 #if TI_I2C_CONF_I2C0_ENABLE 404 typedef enum LPSTK_I2SName {
414 typedef enum LPSTK_PDMCOUNT {
424 typedef enum LPSTK_NVSName {
425 #if TI_NVS_CONF_NVS_INTERNAL_ENABLE 426 LPSTK_NVSCC26XX0 = 0,
428 #if TI_NVS_CONF_NVS_EXTERNAL_ENABLE 439 typedef enum LPSTK_PWMName {
456 typedef enum LPSTK_SPIName {
457 #if TI_SPI_CONF_SPI0_ENABLE 460 #if TI_SPI_CONF_SPI1_ENABLE 471 typedef enum LPSTK_UARTName {
472 #if TI_UART_CONF_UART0_ENABLE 483 typedef enum LPSTK_UDMAName {
493 typedef enum LPSTK_WatchdogName {
497 } LPSTK_WatchdogName;
void LPSTK_shutDownExtFlash(void)
Shut down the external flash present on the board files.
void LPSTK_wakeUpExtFlash(void)
Wake up the external flash present on the board files.
void LPSTK_initGeneral(void)
Initialize the general board specific settings.