diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-11-04 10:51:23 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-11-04 10:51:23 +0000 |
commit | 476270c2ab91169a8e731562b0e68b86602e0d77 (patch) | |
tree | 08407b10b44bea3e84b37b6796da967229c02571 /os/hal/ports/simulator/win32/hal_lld.c | |
parent | 5626d9925ff6fafabac43ae65c38a290fd2c0db6 (diff) | |
download | ChibiOS-476270c2ab91169a8e731562b0e68b86602e0d77.tar.gz ChibiOS-476270c2ab91169a8e731562b0e68b86602e0d77.tar.bz2 ChibiOS-476270c2ab91169a8e731562b0e68b86602e0d77.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7475 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/simulator/win32/hal_lld.c')
-rw-r--r-- | os/hal/ports/simulator/win32/hal_lld.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/os/hal/ports/simulator/win32/hal_lld.c b/os/hal/ports/simulator/win32/hal_lld.c index a42815c0c..555e749a0 100644 --- a/os/hal/ports/simulator/win32/hal_lld.c +++ b/os/hal/ports/simulator/win32/hal_lld.c @@ -64,7 +64,7 @@ void hal_lld_init(void) { printf("QueryPerformanceFrequency() error");
exit(1);
}
- slice.QuadPart /= CH_FREQUENCY;
+ slice.QuadPart /= CH_CFG_ST_FREQUENCY;
QueryPerformanceCounter(&nextcnt);
nextcnt.QuadPart += slice.QuadPart;
@@ -79,10 +79,10 @@ void _sim_check_for_interrupts(void) { #if HAL_USE_SERIAL
if (sd_lld_interrupt_pending()) {
- dbg_check_lock();
+ _dbg_check_lock();
if (chSchIsPreemptionRequired())
chSchDoReschedule();
- dbg_check_unlock();
+ _dbg_check_unlock();
return;
}
#endif
@@ -100,10 +100,10 @@ void _sim_check_for_interrupts(void) { CH_IRQ_EPILOGUE();
- dbg_check_lock();
+ _dbg_check_lock();
if (chSchIsPreemptionRequired())
chSchDoReschedule();
- dbg_check_unlock();
+ _dbg_check_unlock();
}
}
|