declared wait()-routines as inline void volatile since gcc decided to optimize out them sometimes. Do we need __attribute__(always_inline) ?

This commit is contained in:
Markus Fröschle
2012-11-18 10:10:38 +00:00
parent 3101237277
commit 0b5e4aca81
3 changed files with 15 additions and 7 deletions

View File

@@ -19,8 +19,8 @@ extern void sd_card_idle();
extern int sd_card_init();
/* wait...() routines moved to sysinit.c */
extern inline void wait(uint32_t us);
extern inline bool waitfor(uint32_t us,int (*condition)(void));
extern inline void wait(volatile uint32_t us);
extern inline volatile bool waitfor(volatile uint32_t us,int (*condition)(void));
/* Symbols from the linker script */
extern uint8_t _STRAM_END[];