|
|
|
@ -11,6 +11,7 @@ |
|
|
|
#include "McuWait.h" |
|
|
|
#include "McuWait.h" |
|
|
|
#include "McuLED.h" |
|
|
|
#include "McuLED.h" |
|
|
|
#include "McuLog.h" |
|
|
|
#include "McuLog.h" |
|
|
|
|
|
|
|
#include "debounce.h" |
|
|
|
|
|
|
|
|
|
|
|
#define APP_DEBUG |
|
|
|
#define APP_DEBUG |
|
|
|
|
|
|
|
|
|
|
|
@ -43,10 +44,9 @@ void App_Init(void){ |
|
|
|
/* configure gpio raspi power disable */ |
|
|
|
/* configure gpio raspi power disable */ |
|
|
|
McuGPIO_Config_t config_gpio; |
|
|
|
McuGPIO_Config_t config_gpio; |
|
|
|
McuGPIO_GetDefaultConfig(&config_gpio); |
|
|
|
McuGPIO_GetDefaultConfig(&config_gpio); |
|
|
|
config.isOnInit = true; |
|
|
|
config_gpio.hw.gpio = GPIOD; |
|
|
|
config.hw.gpio = GPIOD; |
|
|
|
config_gpio.hw.port = PORTD; |
|
|
|
config.hw.port = PORTD; |
|
|
|
config_gpio.hw.pin = 6U; |
|
|
|
config.hw.pin = 6U; |
|
|
|
|
|
|
|
GPIO_PowerRaspi = McuGPIO_InitGPIO(&config_gpio); |
|
|
|
GPIO_PowerRaspi = McuGPIO_InitGPIO(&config_gpio); |
|
|
|
|
|
|
|
|
|
|
|
// get the event queue handle from debounce
|
|
|
|
// get the event queue handle from debounce
|
|
|
|
|