replaced wait_xms()- and wait_xus()-routines by a generic one that takes the number of us to wait as a parameter

This commit is contained in:
Markus Fröschle
2012-11-15 06:25:15 +00:00
parent 6770bdc060
commit 16d3e69492
2 changed files with 8 additions and 42 deletions

View File

@@ -18,8 +18,7 @@ extern void sd_card_idle();
extern int sd_card_init();
/* wait...() routines moved to sysinit.c */
extern void wait_10ms();
extern void wait_1ms();
extern void wait(uint32_t us);
/* Symbols from the linker script */
extern uint8_t _STRAM_END[];
@@ -169,7 +168,7 @@ void BaS(void)
/* IDE reset */
* (volatile uint8_t *) (0xffff8802 - 2) = 14;
* (volatile uint8_t *) (0xffff8802 - 0) = 0x80;
wait_1ms();
wait(1);
* (volatile uint8_t *) (0xffff8802 - 0) = 0;