Zephyr: ADC based on STM HAL working

This commit is contained in:
Martin Jaeger
2020-01-16 12:24:25 +01:00
parent cb988639ce
commit 27bb53bbeb
9 changed files with 457 additions and 214 deletions
+2 -2
View File
@@ -93,7 +93,7 @@ extern const int led_pins[CONFIG_NUM_LED_PINS];
#endif // MBED or ZEPHYR
#ifndef LEDS_WRONG_POLARITY
static const pin_state_t led_pin_setup[NUM_LEDS][NUM_LED_PINS] = {
static const enum pin_state_t led_pin_setup[NUM_LEDS][NUM_LED_PINS] = {
{ PIN_HIGH, PIN_LOW, PIN_FLOAT }, // LED1
{ PIN_LOW, PIN_HIGH, PIN_FLOAT }, // LED2
{ PIN_HIGH, PIN_FLOAT, PIN_LOW }, // LED3
@@ -102,7 +102,7 @@ static const pin_state_t led_pin_setup[NUM_LEDS][NUM_LED_PINS] = {
};
#else
// LEDs with wrong polarity
static const pin_state_t led_pin_setup[NUM_LEDS][NUM_LED_PINS] = {
static const enum pin_state_t led_pin_setup[NUM_LEDS][NUM_LED_PINS] = {
{ PIN_LOW, PIN_HIGH, PIN_FLOAT }, // LED1
{ PIN_HIGH, PIN_LOW, PIN_FLOAT }, // LED2
{ PIN_LOW, PIN_FLOAT, PIN_HIGH }, // LED3