Added missing defines for PLATFORM_HAS_*

This commit is contained in:
Edvard Pettersen 2018-09-11 17:39:17 +02:00
parent 84384d5efc
commit e212fd31fe
3 changed files with 23 additions and 0 deletions

View File

@ -58,6 +58,8 @@
* 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
@ -72,6 +74,9 @@
* 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
/** @} */

View File

@ -54,12 +54,25 @@
/*---------------------------------------------------------------------------*/
#include "leds-arch.h"
/*---------------------------------------------------------------------------*/
/**
* \name LED configurations for the dev/leds.h API. The actual LED
* 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
/** @} */
/*---------------------------------------------------------------------------*/
/**
* \name 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
#define BUTTON_HAL_ID_REED_RELAY 2

View File

@ -48,6 +48,8 @@
* 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
@ -64,6 +66,9 @@
* 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