diff options
Diffstat (limited to 'bootloader')
| -rw-r--r-- | bootloader/mpio_hd200.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/bootloader/mpio_hd200.c b/bootloader/mpio_hd200.c index 6f32d6b..31d9ee4 100644 --- a/bootloader/mpio_hd200.c +++ b/bootloader/mpio_hd200.c @@ -319,15 +319,18 @@ void main(void) /* this is default mode after power_init() */ bool high_current_charging = true; + /* setup GPIOs related to power functions */ power_init(); system_init(); kernel_init(); + /* run at 45MHz */ set_cpu_frequency(CPUFREQ_NORMAL); - coldfire_set_pllcr_audio_bits(DEFAULT_PLLCR_AUDIO_BITS); + /* IRQs are needed by button driver */ enable_irq(); + lcd_init(); /* only lowlevel functions no queue init */ @@ -337,8 +340,8 @@ void main(void) /* setup font system*/ font_init(); lcd_setfont(FONT_SYSFIXED); - - /* buttons reading */ + + /* buttons reading init*/ adc_init(); button_init(); |