/* * Copyright (c) 2015-2016, Texas Instruments Incorporated * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * * Neither the name of Texas Instruments Incorporated nor the names of * its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /** ============================================================================ * @file CC2650DK_7ID.h * * @brief CC2650EM_7ID Board Specific header file. * The project options should point to this file if this is the * CC2650EM you are developing code for. * * The CC2650 header file should be included in an application as follows: * @code * #include * @endcode * * ============================================================================ */ #ifndef __CC2650EM_7ID_H__ #define __CC2650EM_7ID_H__ #ifdef __cplusplus extern "C" { #endif /** ============================================================================ * Symbol by generic Board.c to include the correct kit specific Board.c * ==========================================================================*/ #define CC2650EM_7ID #define CC2650DK_7ID /** ============================================================================ * Includes * ==========================================================================*/ #include #include /** ============================================================================ * Externs * ==========================================================================*/ extern const PIN_Config BoardGpioInitTable[]; /** ============================================================================ * Defines * ==========================================================================*/ /* Mapping of pins to board signals using general board aliases * */ /* Leds */ #define Board_LED_ON 1 /* LEDs on SmartRF06 EB are active high */ #define Board_LED_OFF 0 #define Board_DK_LED1 IOID_25 /* P2.11 */ #define Board_DK_LED2 IOID_27 /* P2.13 */ #define Board_DK_LED3 IOID_7 /* P1.2 */ #define Board_DK_LED4 IOID_6 /* P1.4 */ /* Button Board */ #define Board_KEY_SELECT IOID_11 /* P1.14 */ #define Board_KEY_UP IOID_19 /* P1.10 */ #define Board_KEY_DOWN IOID_12 /* P1.12 */ #define Board_KEY_LEFT IOID_15 /* P1.6 */ #define Board_KEY_RIGHT IOID_18 /* P1.8 */ /* LCD Board */ #define Board_LCD_MODE IOID_4 /* P1.11 */ #define Board_LCD_RST IOID_5 /* P1.13 */ #define Board_LCD_CSN IOID_14 /* P1.17 */ /* UART Board */ #define Board_UART_RX IOID_2 /* P1.7 */ #define Board_UART_TX IOID_3 /* P1.9 */ #define Board_UART_CTS IOID_0 /* P1.3 */ #define Board_UART_RTS IOID_21 /* P2.18 */ /* SPI Board */ #define Board_SPI0_MISO IOID_8 /* P1.20 */ #define Board_SPI0_MOSI IOID_9 /* P1.18 */ #define Board_SPI0_CLK IOID_10 /* P1.16 */ #define Board_SPI0_CSN PIN_UNASSIGNED /* P1.14, separate CSn for LCD, SDCARD, and ACC */ #define Board_SPI1_MISO IOID_24 /* RF2.10 for testing only */ #define Board_SPI1_MOSI IOID_23 /* RF2.5 for testing only */ #define Board_SPI1_CLK IOID_30 /* RF2.12 for testing only */ #define Board_SPI1_CSN PIN_UNASSIGNED /* RF2.6 for testing only */ /* Ambient Light Sensor */ #define Board_ALS_OUT IOID_23 /* P2.5 */ #define Board_ALS_PWR IOID_26 /* P2.6 */ /* Accelerometer */ #define Board_ACC_PWR IOID_20 /* P2.8 */ #define Board_ACC_CSN IOID_24 /* P2.10 */ /* SD Card */ #define Board_SDCARD_CSN IOID_30 /* P2.12 */ /* Power Board */ #define Board_3V3_EN IOID_13 /* P1.15 */ /* PWM outputs */ #define Board_PWMPIN0 Board_DK_LED1 #define Board_PWMPIN1 Board_DK_LED2 #define Board_PWMPIN2 PIN_UNASSIGNED #define Board_PWMPIN3 PIN_UNASSIGNED #define Board_PWMPIN4 PIN_UNASSIGNED #define Board_PWMPIN5 PIN_UNASSIGNED #define Board_PWMPIN6 PIN_UNASSIGNED #define Board_PWMPIN7 PIN_UNASSIGNED /* Analog capable DIO's */ #define Board_DIO23_ANALOG IOID_23 #define Board_DIO24_ANALOG IOID_24 #define Board_DIO25_ANALOG IOID_25 #define Board_DIO26_ANALOG IOID_26 #define Board_DIO27_ANALOG IOID_27 #define Board_DIO28_ANALOG IOID_28 #define Board_DIO29_ANALOG IOID_29 #define Board_DIO30_ANALOG IOID_30 /** ============================================================================ * Instance identifiers * ==========================================================================*/ /* Generic SPI instance identifiers */ #define Board_SPI0 CC2650DK_7ID_SPI0 #define Board_SPI1 CC2650DK_7ID_SPI1 /* Generic UART instance identifiers */ #define Board_UART CC2650DK_7ID_UART0 /* Generic Crypto instance identifiers */ #define Board_CRYPTO CC2650DK_7ID_CRYPTO0 /* Generic GPTimer instance identifiers */ #define Board_GPTIMER0A CC2650DK_7ID_GPTIMER0A #define Board_GPTIMER0B CC2650DK_7ID_GPTIMER0B #define Board_GPTIMER1A CC2650DK_7ID_GPTIMER1A #define Board_GPTIMER1B CC2650DK_7ID_GPTIMER1B #define Board_GPTIMER2A CC2650DK_7ID_GPTIMER2A #define Board_GPTIMER2B CC2650DK_7ID_GPTIMER2B #define Board_GPTIMER3A CC2650DK_7ID_GPTIMER3A #define Board_GPTIMER3B CC2650DK_7ID_GPTIMER3B /* Generic PWM instance identifiers */ #define Board_PWM0 CC2650DK_7ID_PWM0 #define Board_PWM1 CC2650DK_7ID_PWM1 #define Board_PWM2 CC2650DK_7ID_PWM2 #define Board_PWM3 CC2650DK_7ID_PWM3 #define Board_PWM4 CC2650DK_7ID_PWM4 #define Board_PWM5 CC2650DK_7ID_PWM5 #define Board_PWM6 CC2650DK_7ID_PWM6 #define Board_PWM7 CC2650DK_7ID_PWM7 /** ============================================================================ * Number of peripherals and their names * ==========================================================================*/ /*! * @def CC2650DK_7ID_CryptoName * @brief Enum of Crypto names on the CC2650 dev board */ typedef enum CC2650DK_7ID_CryptoName { CC2650DK_7ID_CRYPTO0 = 0, CC2650DK_7ID_CRYPTOCOUNT } CC2650DK_7ID_CryptoName; /*! * @def CC2650DK_7ID_SPIName * @brief Enum of SPI names on the CC2650 dev board */ typedef enum CC2650DK_7ID_SPIName { CC2650DK_7ID_SPI0 = 0, CC2650DK_7ID_SPI1, CC2650DK_7ID_SPICOUNT } CC2650DK_7ID_SPIName; /*! * @def CC2650DK_7ID_UARTName * @brief Enum of UARTs on the CC2650 dev board */ typedef enum CC2650DK_7ID_UARTName { CC2650DK_7ID_UART0 = 0, CC2650DK_7ID_UARTCOUNT } CC2650DK_7ID_UARTName; /*! * @def CC2650DK_7ID_UdmaName * @brief Enum of DMA buffers */ typedef enum CC2650DK_7ID_UdmaName { CC2650DK_7ID_UDMA0 = 0, CC2650DK_7ID_UDMACOUNT } CC2650DK_7ID_UdmaName; /*! * @def CC2650DK_7ID_GPTimerName * @brief Enum of GPTimer parts */ typedef enum CC2650DK_7ID_GPTimerName { CC2650DK_7ID_GPTIMER0A = 0, CC2650DK_7ID_GPTIMER0B, CC2650DK_7ID_GPTIMER1A, CC2650DK_7ID_GPTIMER1B, CC2650DK_7ID_GPTIMER2A, CC2650DK_7ID_GPTIMER2B, CC2650DK_7ID_GPTIMER3A, CC2650DK_7ID_GPTIMER3B, CC2650DK_7ID_GPTIMERPARTSCOUNT } CC2650DK_7ID_GPTimerName; /*! * @def CC2650DK_7ID_GPTimers * @brief Enum of GPTimers */ typedef enum CC2650DK_7ID_GPTimers { CC2650DK_7ID_GPTIMER0 = 0, CC2650DK_7ID_GPTIMER1, CC2650DK_7ID_GPTIMER2, CC2650DK_7ID_GPTIMER3, CC2650DK_7ID_GPTIMERCOUNT } CC2650DK_7ID_GPTimers; /*! * @def CC2650DK_7ID_PWM * @brief Enum of PWM outputs on the board */ typedef enum CC2650DK_7ID_PWM { CC2650DK_7ID_PWM0 = 0, CC2650DK_7ID_PWM1, CC2650DK_7ID_PWM2, CC2650DK_7ID_PWM3, CC2650DK_7ID_PWM4, CC2650DK_7ID_PWM5, CC2650DK_7ID_PWM6, CC2650DK_7ID_PWM7, CC2650DK_7ID_PWMCOUNT } CC2650DK_7ID_PWM; /*! * @def CC2650DK_7ID_ADCBufName * @brief Enum of ADCBufs */ typedef enum CC2650DK_7ID_ADCBufName { CC2650DK_7ID_ADCBuf0 = 0, CC2650DK_7ID_ADCBufCOUNT } CC2650DK_7ID_ADCBufName; /*! * @def CC2650DK_7ID_ADCName * @brief Enum of ADCs */ typedef enum CC2650DK_7ID_ADCName { CC2650DK_7ID_ADCALS = 0, CC2650DK_7ID_ADCDCOUPL, CC2650DK_7ID_ADCVSS, CC2650DK_7ID_ADCVDDS, CC2650DK_7ID_ADCCOUNT } CC2650DK_7ID_ADCName; /*! * @def CC2650DK_7ID_WatchdogName * @brief Enum of Watchdogs on the CC2650DK_7ID dev board */ typedef enum CC2650DK_7ID_WatchdogName { CC2650DK_7ID_WATCHDOG0 = 0, CC2650DK_7ID_WATCHDOGCOUNT } CC2650DK_7ID_WatchdogName; #ifdef __cplusplus } #endif #endif /* __CC2650EM_H__ */