Linux demo ok.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1464 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
0873332c30
commit
282ffcd5ba
|
@ -60,6 +60,8 @@ static struct timeval tick = {0, 1000000 / CH_FREQUENCY};
|
||||||
void hal_lld_init(void) {
|
void hal_lld_init(void) {
|
||||||
|
|
||||||
puts("Win32 ChibiOS/RT simulator (Linux)\n");
|
puts("Win32 ChibiOS/RT simulator (Linux)\n");
|
||||||
|
gettimeofday(&nextcnt, NULL);
|
||||||
|
timeradd(&nextcnt, &tick, &nextcnt);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -77,7 +79,7 @@ void ChkIntSources(void) {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
gettimeofday(&tv, NULL);
|
gettimeofday(&tv, NULL);
|
||||||
if (timercmp(&nextcnt, &tv, <)) {
|
if (timercmp(&tv, &nextcnt, >=)) {
|
||||||
timeradd(&nextcnt, &tick, &nextcnt);
|
timeradd(&nextcnt, &tick, &nextcnt);
|
||||||
chSysTimerHandlerI();
|
chSysTimerHandlerI();
|
||||||
if (chSchIsRescRequiredExI())
|
if (chSchIsRescRequiredExI())
|
||||||
|
|
Loading…
Reference in New Issue