|
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.
|
|
| 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.
|
|
| 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.
|
|
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 |