Defines related to configuring SmartRF06 EB's peripherals.
More...
|
file | als-sensor.c |
| Driver for the SmartRF06 EB ALS sensor.
|
|
file | als-sensor.h |
| Header file for the SmartRF06 EB ALS sensor.
|
|
file | board-conf.h |
| Header file with definitions related to SmartRF06 EB boards.
|
|
file | board-peripherals.h |
| Header file with definitions related to SmartRF06 EB boards.
|
|
file | button-sensor-arch.c |
| Button HAL definitions for the SmartRF06 Evaluation Board's buttons.
|
|
file | leds-arch.c |
| LED HAL definitions for the SmartRF06 Evaluation Board's LEDs.
|
|
file | srf06-sensors.c |
| Generic module controlling sensors on SmartRF06 Evaluation Board.
|
|
|
| BUTTON_HAL_BUTTON (key_select, "Key Select", Board_KEY_SELECT, GPIO_HAL_PIN_CFG_PULL_UP|GPIO_HAL_PIN_CFG_HYSTERESIS, BUTTON_HAL_ID_KEY_SELECT, true) |
| Negative logic. More...
|
|
| BUTTON_HAL_BUTTON (key_up, "Key Up", Board_KEY_UP, GPIO_HAL_PIN_CFG_PULL_UP|GPIO_HAL_PIN_CFG_HYSTERESIS, BUTTON_HAL_ID_KEY_UP, true) |
| Negative logic. More...
|
|
| BUTTON_HAL_BUTTON (key_down, "Key Down", Board_KEY_DOWN, GPIO_HAL_PIN_CFG_PULL_UP|GPIO_HAL_PIN_CFG_HYSTERESIS, BUTTON_HAL_ID_KEY_DOWN, true) |
| Negative logic. More...
|
|
| 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...
|
|
|
const struct sensors_sensor | als_sensor |
| Exports a global symbol to be used by the sensor API.
|
|
SENSORS & | als_sensor |
| Exports a global symbol to be used by the sensor API.
|
|
|
Those values are not meant to be modified by the user
|
#define | PLATFORM_HAS_LEDS 1 |
|
#define | LEDS_CONF_COUNT 4 |
|
#define | LEDS_CONF_RED 0 |
|
#define | LEDS_CONF_YELLOW 1 |
|
#define | LEDS_CONF_GREEN 2 |
|
#define | LEDS_CONF_ORANGE 3 |
|
#define | LEDS_CONF_ALL ((1 << LEDS_CONF_COUNT) - 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_KEY_UP 2 |
|
#define | BUTTON_HAL_ID_KEY_DOWN 3 |
|
#define | BUTTON_HAL_ID_KEY_SELECT 4 |
|
|
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 SmartRF06 EB's peripherals.
All SmartRF06 EBs are identical to a very large extent. Everything documented within this group applies to all SmartRF06 EBs.
◆ BUTTON_HAL_BUTTON() [1/5]
BUTTON_HAL_BUTTON |
( |
key_select |
, |
|
|
"Key Select" |
, |
|
|
Board_KEY_SELECT |
, |
|
|
GPIO_HAL_PIN_CFG_PULL_UP| |
GPIO_HAL_PIN_CFG_HYSTERESIS, |
|
|
BUTTON_HAL_ID_KEY_SELECT |
, |
|
|
true |
|
|
) |
| |
Negative logic.
- Parameters
-
GPIO_HAL_PIN_CFG_HYSTERESIS | Pull configuration |
◆ BUTTON_HAL_BUTTON() [2/5]
BUTTON_HAL_BUTTON |
( |
key_up |
, |
|
|
"Key Up" |
, |
|
|
Board_KEY_UP |
, |
|
|
GPIO_HAL_PIN_CFG_PULL_UP| |
GPIO_HAL_PIN_CFG_HYSTERESIS, |
|
|
BUTTON_HAL_ID_KEY_UP |
, |
|
|
true |
|
|
) |
| |
Negative logic.
- Parameters
-
GPIO_HAL_PIN_CFG_HYSTERESIS | Pull configuration |
◆ BUTTON_HAL_BUTTON() [3/5]
BUTTON_HAL_BUTTON |
( |
key_down |
, |
|
|
"Key Down" |
, |
|
|
Board_KEY_DOWN |
, |
|
|
GPIO_HAL_PIN_CFG_PULL_UP| |
GPIO_HAL_PIN_CFG_HYSTERESIS, |
|
|
BUTTON_HAL_ID_KEY_DOWN |
, |
|
|
true |
|
|
) |
| |
Negative logic.
- Parameters
-
GPIO_HAL_PIN_CFG_HYSTERESIS | Pull configuration |
◆ BUTTON_HAL_BUTTON() [4/5]
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() [5/5]
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 |