1
0
mirror of https://github.com/elua/elua.git synced 2025-01-08 20:56:17 +08:00

STR912 ADC initialization fix

This commit is contained in:
Bogdan Marinescu 2011-05-17 21:26:51 +03:00
parent a59d6ae56a
commit 242dae4504

View File

@ -152,12 +152,13 @@ int platform_init()
TIM_CounterCmd( base, TIM_START );
}
cmn_platform_init();
#ifdef BUILD_ADC
// Setup ADCs
platform_setup_adcs();
#endif
cmn_platform_init();
#ifdef VTMR_TIMER_ID
platform_s_timer_set_match_int( VTMR_TIMER_ID, 1000000 / VTMR_FREQ_HZ, PLATFORM_TIMER_INT_CYCLIC );
#endif