Defines related to configuring SensorTag peripherals.
More...
|
file | board-conf.h |
| Header file with definitions related to the sensors on the Sensortags.
|
|
file | board-peripherals.h |
| Header file with definitions related to the sensors on the Sensortags.
|
|
file | button-sensor-arch.c |
| Button HAL definitions for the SensorTag buttons.
|
|
|
| BUTTON_HAL_BUTTON (key_left, "Key Left", Board_KEY_LEFT, 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_KEY_RIGHT, GPIO_HAL_PIN_CFG_PULL_UP|GPIO_HAL_PIN_CFG_HYSTERESIS, BUTTON_HAL_ID_KEY_RIGHT, true) |
| Negative logic. More...
|
|
| BUTTON_HAL_BUTTON (reed_relay, "Reed Relay", Board_RELAY, GPIO_HAL_PIN_CFG_PULL_DOWN|GPIO_HAL_PIN_CFG_HYSTERESIS, BUTTON_HAL_ID_REED_RELAY, false) |
| Negative logic. More...
|
|
|
configuration of available LEDs are done in leds-arch.h. Those values are not meant to be modified by the user
|
#define | PLATFORM_HAS_LEDS 1 |
|
|
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 |
|
#define | BUTTON_HAL_ID_REED_RELAY 2 |
|
|
Those values are not meant to be modified by the user
|
#define | BOARD_CONF_HAS_SENSORS 1 |
|
|
Those values are not meant to be modified by the user
|
#define | BOARD_SENSORS_ENABLE (!(BOARD_CONF_SENSORS_DISABLE)) |
|
Defines related to configuring SensorTag peripherals.
The two sensortags, CC1350STK and CC2650STK, are identical to a very large extent. Everything documented within this group applies to both sensortags.
◆ BUTTON_HAL_BUTTON() [1/3]
BUTTON_HAL_BUTTON |
( |
key_left |
, |
|
|
"Key Left" |
, |
|
|
Board_KEY_LEFT |
, |
|
|
GPIO_HAL_PIN_CFG_PULL_UP| |
GPIO_HAL_PIN_CFG_HYSTERESIS, |
|
|
BUTTON_HAL_ID_KEY_LEFT |
, |
|
|
true |
|
|
) |
| |
Negative logic.
- Parameters
-
GPIO_HAL_PIN_CFG_HYSTERESIS | Pull configuration |
◆ BUTTON_HAL_BUTTON() [2/3]
BUTTON_HAL_BUTTON |
( |
key_right |
, |
|
|
"Key Right" |
, |
|
|
Board_KEY_RIGHT |
, |
|
|
GPIO_HAL_PIN_CFG_PULL_UP| |
GPIO_HAL_PIN_CFG_HYSTERESIS, |
|
|
BUTTON_HAL_ID_KEY_RIGHT |
, |
|
|
true |
|
|
) |
| |
Negative logic.
- Parameters
-
GPIO_HAL_PIN_CFG_HYSTERESIS | Pull configuration |
◆ BUTTON_HAL_BUTTON() [3/3]
BUTTON_HAL_BUTTON |
( |
reed_relay |
, |
|
|
"Reed Relay" |
, |
|
|
Board_RELAY |
, |
|
|
GPIO_HAL_PIN_CFG_PULL_DOWN| |
GPIO_HAL_PIN_CFG_HYSTERESIS, |
|
|
BUTTON_HAL_ID_REED_RELAY |
, |
|
|
false |
|
|
) |
| |
Negative logic.
- Parameters
-
GPIO_HAL_PIN_CFG_HYSTERESIS | Pull configuration |