fw: Adapt SBCMON to new hardware
This commit is contained in:
parent
47871af56e
commit
66031c1389
@ -6,7 +6,7 @@
|
|||||||
#define PORT_KEYAUX(t) t##B
|
#define PORT_KEYAUX(t) t##B
|
||||||
|
|
||||||
#define PORT_SBCMON(t) t##C
|
#define PORT_SBCMON(t) t##C
|
||||||
#define PIN_SBCMON (1 << 1)
|
#define PIN_SBCMON (1 << 2)
|
||||||
|
|
||||||
#define PORT_ROTARY(t) t##B
|
#define PORT_ROTARY(t) t##B
|
||||||
#define PIN_ROTARY_A (1 << 0)
|
#define PIN_ROTARY_A (1 << 0)
|
||||||
|
@ -8,7 +8,8 @@
|
|||||||
#include "batmon.h"
|
#include "batmon.h"
|
||||||
#include "pm.h"
|
#include "pm.h"
|
||||||
|
|
||||||
#define TIME_POWEROFF 5000
|
#define TIME_POWERON 8000 /* Time after power enable to gpio-poweroff signal expected */
|
||||||
|
#define TIME_POWEROFF 3000 /* gpio-poweroff low time before removing power */
|
||||||
|
|
||||||
#define PORT_SPI(t) t##B
|
#define PORT_SPI(t) t##B
|
||||||
#define PIN_SPI_CS (1 << 2)
|
#define PIN_SPI_CS (1 << 2)
|
||||||
@ -111,7 +112,7 @@ int main()
|
|||||||
lcd_title(PSTR("Starting up."), PSTR("Please wait."));
|
lcd_title(PSTR("Starting up."), PSTR("Please wait."));
|
||||||
pm_sbc_on();
|
pm_sbc_on();
|
||||||
_delay_ms(10);
|
_delay_ms(10);
|
||||||
timer_set(TIMID_POWEROFF, MS_TO_TICKS(TIME_POWEROFF));
|
timer_set(TIMID_POWEROFF, MS_TO_TICKS(TIME_POWERON));
|
||||||
|
|
||||||
lcd_title(PSTR("Starting up."), PSTR("Please wait..."));
|
lcd_title(PSTR("Starting up."), PSTR("Please wait..."));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user