Contiki-NG
Modules | Files | Functions

Defines related to configuring LaunchPad peripherals. More...

Modules

 CC1310 LaunchPad Peripherals
 Defines related to the CC1310 LaunchPad.
 
 CC1350 LaunchPad Peripherals
 Defines related to the CC1350 LaunchPad.
 
 CC2640R2 LaunchPad Peripherals
 Defines related to the CC2640R2 LaunchPad.
 
 CC2650 LaunchPad Peripherals
 Defines related to the CC2650 LaunchPad.
 

Files

file  board-conf.h
 Header file with definitions related to LaunchPad boards.
 
 
file  button-sensor-arch.c
 Button HAL definitions for the LaunchPad buttons.
 
 
file  board-peripherals.h
 Header file with definitions related to LaunchPad peripherals.
 
file  board.c
 LaunchPad-specific board initialisation driver.
 

Functions

 BUTTON_HAL_BUTTON (key_left, "Key Left", Board_PIN_BTN1, GPIO_HAL_PIN_CFG_PULL_UP|GPIO_HAL_PIN_CFG_HYSTERESIS, BUTTON_HAL_ID_KEY_LEFT, true)
 Negative logic. More...
 
 BUTTON_HAL_BUTTON (key_right, "Key Right", Board_PIN_BTN2, GPIO_HAL_PIN_CFG_PULL_UP|GPIO_HAL_PIN_CFG_HYSTERESIS, BUTTON_HAL_ID_KEY_RIGHT, true)
 Negative logic. More...
 
void board_init ()
 Board specific iniatialisation.
 

LED configurations for the dev/leds.h API.

Those values are not meant to be modified by the user

#define PLATFORM_HAS_LEDS   1
 
#define LEDS_CONF_COUNT   2
 
#define LEDS_CONF_RED   0
 
#define LEDS_CONF_GREEN   1
 
#define LEDS_CONF_ALL   ((1 << LEDS_CONF_COUNT) - 1)
 

Button configurations for the dev/button-hal.h API.

Those values are not meant to be modified by the user

#define PLATFORM_HAS_BUTTON   1
 
#define PLATFORM_SUPPORTS_BUTTON_HAL   1
 
#define BUTTON_HAL_ID_KEY_LEFT   0
 
#define BUTTON_HAL_ID_KEY_RIGHT   1
 

LaunchPad does not have any sensors.

Those values are not meant to be modified by the user

#define BOARD_CONF_HAS_SENSORS   0
 

Detailed Description

Defines related to configuring LaunchPad peripherals.

Defines related to LaunchPad peripherals.

   Defines related to configuring LaunchPad peripherals.

All LaunchPads are identical to a very large extent. Everything documented within this group applies to both sensortags

All LaunchPads are identical to a very large extent. Everything documented within this group applies to all LaunchPads.

Function Documentation

◆ BUTTON_HAL_BUTTON() [1/2]

BUTTON_HAL_BUTTON ( key_left  ,
"Key Left"  ,
Board_PIN_BTN1  ,
GPIO_HAL_PIN_CFG_PULL_UP|  GPIO_HAL_PIN_CFG_HYSTERESIS,
BUTTON_HAL_ID_KEY_LEFT  ,
true   
)

Negative logic.

Parameters
GPIO_HAL_PIN_CFG_HYSTERESISPull configuration

◆ BUTTON_HAL_BUTTON() [2/2]

BUTTON_HAL_BUTTON ( key_right  ,
"Key Right"  ,
Board_PIN_BTN2  ,
GPIO_HAL_PIN_CFG_PULL_UP|  GPIO_HAL_PIN_CFG_HYSTERESIS,
BUTTON_HAL_ID_KEY_RIGHT  ,
true   
)

Negative logic.

Parameters
GPIO_HAL_PIN_CFG_HYSTERESISPull configuration