/*
 *  ======== ti_drivers_config.h ========
 *  Configured TI-Drivers module declarations
 *
 *  The macros defines herein are intended for use by applications which
 *  directly include this header. These macros should NOT be hard coded or
 *  copied into library source code.
 *
 *  Symbols declared as const are intended for use with libraries.
 *  Library source code must extern the correct symbol--which is resolved
 *  when the application is linked.
 *
 *  DO NOT EDIT - This file is generated for the CC1352R1F3RGZ
 *  by the SysConfig tool.
 */
#ifndef ti_drivers_config_h
#define ti_drivers_config_h

#define CONFIG_SYSCONFIG_PREVIEW

#define CONFIG_CC1352R1F3RGZ
#ifndef DeviceFamily_CC13X2
#define DeviceFamily_CC13X2
#endif

#include <ti/devices/DeviceFamily.h>

#include <stdint.h>

/* support C++ sources */
#ifdef __cplusplus
extern "C" {
#endif


/*
 *  ======== CCFG ========
 */


/*
 *  ======== ADC ========
 */

/* DIO24 */
extern const uint_least8_t              ADC_CONST;
#define ADC                             0
#define CONFIG_TI_DRIVERS_ADC_COUNT     1


/*
 *  ======== GPIO ========
 */

/* DIO13 */
extern const uint_least8_t              INT_CONST;
#define INT                             0
/* DIO8 */
extern const uint_least8_t              POWER_EEPROM_CONST;
#define POWER_EEPROM                    1
/* DIO28 */
extern const uint_least8_t              OUT_0_CONST;
#define OUT_0                           2
/* DIO27 */
extern const uint_least8_t              OUT_1_CONST;
#define OUT_1                           3
/* DIO7 */
extern const uint_least8_t              OUT_2_CONST;
#define OUT_2                           4
/* DIO18 */
extern const uint_least8_t              NOT_USED_GPIO_18_CONST;
#define NOT_USED_GPIO_18                5
/* DIO22 */
extern const uint_least8_t              OUT_3_CONST;
#define OUT_3                           6
/* DIO23 */
extern const uint_least8_t              PWR_CLOCK_CONST;
#define PWR_CLOCK                       7
/* DIO25 */
extern const uint_least8_t              OUT_4_CONST;
#define OUT_4                           8
/* DIO26 */
extern const uint_least8_t              OUT_5_CONST;
#define OUT_5                           9
/* DIO6 */
extern const uint_least8_t              DAC_O_PWM_CONST;
#define DAC_O_PWM                       10
/* DIO16 */
extern const uint_least8_t              TDO_CONST;
#define TDO                             11
/* DIO17 */
extern const uint_least8_t              TDI_CONST;
#define TDI                             12
/* DIO14 */
extern const uint_least8_t              CS_EEPROM_CONST;
#define CS_EEPROM                       13
/* DIO15 */
extern const uint_least8_t              IN_0_CONST;
#define IN_0                            14
/* DIO29 */
extern const uint_least8_t              IN_1_CONST;
#define IN_1                            15
/* DIO30 */
extern const uint_least8_t              IN_2_CONST;
#define IN_2                            16
#define CONFIG_TI_DRIVERS_GPIO_COUNT    17

/* LEDs are active high */
#define CONFIG_GPIO_LED_ON  (1)
#define CONFIG_GPIO_LED_OFF (0)

#define CONFIG_LED_ON  (CONFIG_GPIO_LED_ON)
#define CONFIG_LED_OFF (CONFIG_GPIO_LED_OFF)


/*
 *  ======== PIN ========
 */
#include <ti/drivers/PIN.h>

extern const PIN_Config BoardGpioInitTable[];

/* Parent Signal: ADC ADC Pin, (DIO24) */
#define CONFIG_PIN_14                   0x00000018
/* Parent Signal: INT GPIO Pin, (DIO13) */
#define CONFIG_PIN_0                   0x0000000d
/* Parent Signal: POWER_EEPROM GPIO Pin, (DIO8) */
#define CONFIG_PIN_1                   0x00000008
/* Parent Signal: OUT_0 GPIO Pin, (DIO28) */
#define CONFIG_PIN_2                   0x0000001c
/* Parent Signal: OUT_1 GPIO Pin, (DIO27) */
#define CONFIG_PIN_4                   0x0000001b
/* Parent Signal: OUT_2 GPIO Pin, (DIO7) */
#define CONFIG_PIN_10                   0x00000007
/* Parent Signal: NOT_USED_GPIO_18 GPIO Pin, (DIO18) */
#define CONFIG_PIN_11                   0x00000012
/* Parent Signal: OUT_3 GPIO Pin, (DIO22) */
#define CONFIG_PIN_12                   0x00000016
/* Parent Signal: PWR_CLOCK GPIO Pin, (DIO23) */
#define CONFIG_PIN_13                   0x00000017
/* Parent Signal: OUT_4 GPIO Pin, (DIO25) */
#define CONFIG_PIN_15                   0x00000019
/* Parent Signal: OUT_5 GPIO Pin, (DIO26) */
#define CONFIG_PIN_16                   0x0000001a
/* Parent Signal: DAC_O_PWM GPIO Pin, (DIO6) */
#define CONFIG_PIN_3                   0x00000006
/* Parent Signal: TDO GPIO Pin, (DIO16) */
#define CONFIG_PIN_20                   0x00000010
/* Parent Signal: TDI GPIO Pin, (DIO17) */
#define CONFIG_PIN_21                   0x00000011
/* Parent Signal: CS_EEPROM GPIO Pin, (DIO14) */
#define CONFIG_PIN_22                   0x0000000e
/* Parent Signal: CONFIG_SPI_EEPROM SCLK, (DIO5) */
#define CONFIG_PIN_6                   0x00000005
/* Parent Signal: CONFIG_SPI_EEPROM MISO, (DIO3) */
#define CONFIG_PIN_7                   0x00000003
/* Parent Signal: CONFIG_SPI_EEPROM MOSI, (DIO4) */
#define CONFIG_PIN_8                   0x00000004
/* Parent Signal: CONFIG_SPI_RFID SCLK, (DIO11) */
#define CONFIG_PIN_5                   0x0000000b
/* Parent Signal: CONFIG_SPI_RFID MISO, (DIO9) */
#define CONFIG_PIN_9                   0x00000009
/* Parent Signal: CONFIG_SPI_RFID MOSI, (DIO10) */
#define CONFIG_PIN_24                   0x0000000a
/* Parent Signal: IN_0 GPIO Pin, (DIO15) */
#define CONFIG_PIN_26                   0x0000000f
/* Parent Signal: IN_1 GPIO Pin, (DIO29) */
#define CONFIG_PIN_27                   0x0000001d
/* Parent Signal: IN_2 GPIO Pin, (DIO30) */
#define CONFIG_PIN_28                   0x0000001e
/* Parent Signal: CONFIG_SPI_RFID SS, (DIO12) */
#define CONFIG_PIN_25                   0x0000000c
/* Parent Signal: CONFIG_GPTIMER_1 PWM Pin, (DIO21) */
#define CONFIG_PIN_17                   0x00000015
/* Parent Signal: CONFIG_GPTIMER_2 PWM Pin, (DIO19) */
#define CONFIG_PIN_18                   0x00000013
/* Parent Signal: CONFIG_GPTIMER_3 PWM Pin, (DIO20) */
#define CONFIG_PIN_19                   0x00000014
#define CONFIG_TI_DRIVERS_PIN_COUNT    28


/*
 *  ======== PWM ========
 */

/* DIO21 */
extern const uint_least8_t              PWM_11_PWM_CONST;
#define PWM_11_PWM                      0
/* DIO19 */
extern const uint_least8_t              PWM_00_PWM_CONST;
#define PWM_00_PWM                      1
/* DIO20 */
extern const uint_least8_t              PWM_22_PWM_CONST;
#define PWM_22_PWM                      2
#define CONFIG_TI_DRIVERS_PWM_COUNT     3




/*
 *  ======== SPI ========
 */

/*
 *  MOSI: DIO4
 *  MISO: DIO3
 *  SCLK: DIO5
 */
extern const uint_least8_t              CONFIG_SPI_EEPROM_CONST;
#define CONFIG_SPI_EEPROM               0
/*
 *  MOSI: DIO10
 *  MISO: DIO9
 *  SCLK: DIO11
 *  SS: DIO12
 */
extern const uint_least8_t              CONFIG_SPI_RFID_CONST;
#define CONFIG_SPI_RFID                 1
#define CONFIG_TI_DRIVERS_SPI_COUNT     2


/*
 *  ======== Timer ========
 */

extern const uint_least8_t                  CONFIG_TIMER_1_CONST;
#define CONFIG_TIMER_1                      0
#define CONFIG_TI_DRIVERS_TIMER_COUNT       1


/*
 *  ======== Watchdog ========
 */

extern const uint_least8_t                  CONFIG_WATCHDOG_0_CONST;
#define CONFIG_WATCHDOG_0                   0
#define CONFIG_TI_DRIVERS_WATCHDOG_COUNT    1


/*
 *  ======== Button ========
 */

/* DIO15 */
extern const uint_least8_t                  IN_00_CONST;
#define IN_00                               0
/* DIO29 */
extern const uint_least8_t                  IN_11_CONST;
#define IN_11                               1
/* DIO30 */
extern const uint_least8_t                  IN_22_CONST;
#define IN_22                               2
#define CONFIG_TI_DRIVERS_BUTTON_COUNT      3


/*
 *  ======== LED ========
 */

/* DIO21 */
extern const uint_least8_t              PWM_11_CONST;
#define PWM_11                          0
/* DIO19 */
extern const uint_least8_t              PWM_00_CONST;
#define PWM_00                          1
/* DIO20 */
extern const uint_least8_t              PWM_22_CONST;
#define PWM_22                          2
#define CONFIG_TI_DRIVERS_LED_COUNT     3


/*
 *  ======== GPTimer ========
 */

extern const uint_least8_t                  CONFIG_GPTIMER_0_CONST;
#define CONFIG_GPTIMER_0                    0
extern const uint_least8_t                  CONFIG_GPTIMER_1_CONST;
#define CONFIG_GPTIMER_1                    1
extern const uint_least8_t                  CONFIG_GPTIMER_2_CONST;
#define CONFIG_GPTIMER_2                    2
extern const uint_least8_t                  CONFIG_GPTIMER_3_CONST;
#define CONFIG_GPTIMER_3                    3
#define CONFIG_TI_DRIVERS_GPTIMER_COUNT     4


/*
 *  ======== Board_init ========
 *  Perform all required TI-Drivers initialization
 *
 *  This function should be called once at a point before any use of
 *  TI-Drivers.
 */
extern void Board_init(void);

/*
 *  ======== Board_initGeneral ========
 *  (deprecated)
 *
 *  Board_initGeneral() is defined purely for backward compatibility.
 *
 *  All new code should use Board_init() to do any required TI-Drivers
 *  initialization _and_ use <Driver>_init() for only where specific drivers
 *  are explicitly referenced by the application.  <Driver>_init() functions
 *  are idempotent.
 */
#define Board_initGeneral Board_init

#ifdef __cplusplus
}
#endif

#endif /* include guard */
