fix test_imu_aspirin

This commit is contained in:
Felix Ruess
2012-02-10 20:44:24 +01:00
parent 492a879bcb
commit 66d2ece191
2 changed files with 5 additions and 3 deletions
@@ -40,6 +40,7 @@
<target name="test_imu_aspirin" board="lisa_m_1.0"/>
<target name="test_rc_spektrum" board="lisa_m_1.0"/>
<target name="test_baro" board="lisa_m_1.0"/>
<target name="test_imu_aspirin" board="lisa_m_1.0"/>
<!--<target name="test_imu" board="lisa_m_1.0"/>
<target name="test_rc_ppm" board="lisa_m_1.0"/>
<target name="test_adc" board="lisa_m_1.0"/>
+4 -3
View File
@@ -51,7 +51,7 @@ static inline void on_mag_event(void);
int main( void ) {
main_init();
while(1) {
if (sys_time_periodic())
if (sys_time_check_and_ack_timer(0))
main_periodic_task();
main_event_task();
}
@@ -61,9 +61,10 @@ int main( void ) {
static inline void main_init( void ) {
mcu_init();
sys_time_init();
imu_init();
sys_time_register_timer((1./PERIODIC_FREQUENCY), NULL);
imu_init();
mcu_int_enable();
}