diff options
Diffstat (limited to 'wirish')
-rw-r--r-- | wirish/wirish.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/wirish/wirish.c b/wirish/wirish.c index 69bd63b..41f5db4 100644 --- a/wirish/wirish.c +++ b/wirish/wirish.c @@ -39,6 +39,8 @@ #include "nvic.h" #include "usb.h" #include "rcc.h" +#include "fsmc.h" +#include "dac.h" #include "flash.h" void init(void) { @@ -46,6 +48,14 @@ void init(void) { flash_enable_prefetch(); flash_set_latency(FLASH_WAIT_STATE_2); + #if HAS_FSMC + fsmc_native_sram_init(); + #endif + + #if NR_DAC_PINS > 0 + dac_init(); + #endif + /* initialize clocks */ rcc_clk_init(RCC_CLKSRC_PLL, RCC_PLLSRC_HSE, RCC_PLLMUL_9); rcc_set_prescaler(RCC_PRESCALER_AHB, RCC_AHB_SYSCLK_DIV_1); |