static void badge_init_backlight(void) {
HOB_SET_PIN_FUNC(HOB_LCD_BACKLIGHT, CLKOUT);
- // wdtInit(false);
- SCB_CLKOUTCLKSEL = SCB_MAINCLKSEL_SOURCE_INTERNALOSC;
+ wdtInit(false);
+ SCB_CLKOUTCLKSEL = SCB_MAINCLKSEL_SOURCE_WDTOSC;
SCB_CLKOUTCLKUEN = SCB_CLKOUTCLKUEN_DISABLE;
SCB_CLKOUTCLKUEN = SCB_CLKOUTCLKUEN_UPDATE;
- SCB_CLKOUTCLKDIV = 30;
+ SCB_CLKOUTCLKDIV = 75;
}
void badge_init(void) {
OUTPUT_PIN_CONFIG(HOB_LCD_CS , 1);
OUTPUT_PIN_CONFIG(HOB_LCD_RST , 1);
OUTPUT_PIN_CONFIG(HOB_DATAFLASH_CS, 1);
+
+#ifdef HOB_REV2
+ OUTPUT_PIN_CONFIG(HOB_LED_LEFT , 0);
+ OUTPUT_PIN_CONFIG(HOB_LED_RIGHT , 0);
+#endif
+
#undef OUTPUT_PIN_CONFIG
badge_init_backlight();