removed the apparently unused "delay_done" variable - made "startup_counter" a local variable - do we really need assembly here ?

This commit is contained in:
Antoine Drouin
2010-08-15 15:35:23 +00:00
parent 3d3ff3ca36
commit 871df7dc75
+3 -9
View File
@@ -67,8 +67,6 @@
#include "modules.h"
#endif
uint32_t startup_counter = 0;
static inline void on_gyro_accel_event( void );
static inline void on_baro_event( void );
static inline void on_gps_event( void );
@@ -87,14 +85,10 @@ int main( void ) {
}
#endif /* SITL */
#ifdef BOOZ_START_DELAY
bool_t delay_done;
uint32_t init_done_time;
#endif
STATIC_INLINE void booz2_main_init( void ) {
for (startup_counter=0; startup_counter<2000000; startup_counter++){
__asm("nop");
for (uint32_t startup_counter=0; startup_counter<2000000; startup_counter++){
__asm("nop");
}
hw_init();