mirror of
https://github.com/elua/elua.git
synced 2025-01-25 01:02:54 +08:00
STR912 ADC initialization fix
This commit is contained in:
parent
a59d6ae56a
commit
242dae4504
@ -152,12 +152,13 @@ int platform_init()
|
|||||||
TIM_CounterCmd( base, TIM_START );
|
TIM_CounterCmd( base, TIM_START );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cmn_platform_init();
|
||||||
|
|
||||||
#ifdef BUILD_ADC
|
#ifdef BUILD_ADC
|
||||||
// Setup ADCs
|
// Setup ADCs
|
||||||
platform_setup_adcs();
|
platform_setup_adcs();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
cmn_platform_init();
|
|
||||||
#ifdef VTMR_TIMER_ID
|
#ifdef VTMR_TIMER_ID
|
||||||
platform_s_timer_set_match_int( VTMR_TIMER_ID, 1000000 / VTMR_FREQ_HZ, PLATFORM_TIMER_INT_CYCLIC );
|
platform_s_timer_set_match_int( VTMR_TIMER_ID, 1000000 / VTMR_FREQ_HZ, PLATFORM_TIMER_INT_CYCLIC );
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user