* misc/system-clocks.c: Use define instead of function call to allow
	smaller delays.
This commit is contained in:
Sebastian Huber
2010-11-12 13:45:33 +00:00
parent 82dcbc8e1e
commit ed2ab950b1
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -1,3 +1,8 @@
2010-11-12 Sebastian Huber <sebastian.huber@embedded-brains.de>
* misc/system-clocks.c: Use define instead of function call to allow
smaller delays.
2010-11-12 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtc/rtc-config.c: Fixed type.
@@ -62,7 +62,7 @@ void lpc24xx_timer_initialize(void)
void lpc24xx_micro_seconds_delay(unsigned us)
{
unsigned start = lpc24xx_timer();
unsigned delay = us * (lpc24xx_cclk() / 1000000);
unsigned delay = us * (LPC24XX_CCLK / 1000000);
unsigned elapsed = 0;
do {