Fixed bug 2921012.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1469 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
5c15ef8064
commit
17c6e5cd7f
|
@ -59,7 +59,7 @@ 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("ChibiOS/RT simulator (Linux)\n");
|
||||||
gettimeofday(&nextcnt, NULL);
|
gettimeofday(&nextcnt, NULL);
|
||||||
timeradd(&nextcnt, &tick, &nextcnt);
|
timeradd(&nextcnt, &tick, &nextcnt);
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,12 +62,11 @@ void hal_lld_init(void) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Win32 ChibiOS/RT simulator\n\n");
|
printf("ChibiOS/RT simulator (Win32)\n");
|
||||||
if (!QueryPerformanceFrequency(&slice)) {
|
if (!QueryPerformanceFrequency(&slice)) {
|
||||||
printf("QueryPerformanceFrequency() error");
|
printf("QueryPerformanceFrequency() error");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
printf("Core Frequency %u Hz\n", (int)slice.LowPart);
|
|
||||||
slice.QuadPart /= CH_FREQUENCY;
|
slice.QuadPart /= CH_FREQUENCY;
|
||||||
QueryPerformanceCounter(&nextcnt);
|
QueryPerformanceCounter(&nextcnt);
|
||||||
nextcnt.QuadPart += slice.QuadPart;
|
nextcnt.QuadPart += slice.QuadPart;
|
||||||
|
|
|
@ -26,14 +26,14 @@
|
||||||
#define _CHCORE_H_
|
#define _CHCORE_H_
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Macro defining the a simulated architecture into Win32.
|
* Macro defining the a simulated architecture into x86.
|
||||||
*/
|
*/
|
||||||
#define CH_ARCHITECTURE_WIN32SIM
|
#define CH_ARCHITECTURE_SIMIA32
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Name of the implemented architecture.
|
* Name of the implemented architecture.
|
||||||
*/
|
*/
|
||||||
#define CH_ARCHITECTURE_NAME "WIN32 Simulator"
|
#define CH_ARCHITECTURE_NAME "x86 Simulator"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 32 bit stack alignment.
|
* 32 bit stack alignment.
|
||||||
|
@ -104,8 +104,8 @@ struct context {
|
||||||
/**
|
/**
|
||||||
* Per-thread stack overhead for interrupts servicing, it is used in the
|
* Per-thread stack overhead for interrupts servicing, it is used in the
|
||||||
* calculation of the correct working area size.
|
* calculation of the correct working area size.
|
||||||
* It requires stack space because the simulated "interrupt handlers" invoke
|
* It requires stack space because the simulated "interrupt handlers" can
|
||||||
* Win32 APIs inside so it better have a lot of space.
|
* invoke host library functions inside so it better have a lot of space.
|
||||||
*/
|
*/
|
||||||
#ifndef INT_REQUIRED_STACK
|
#ifndef INT_REQUIRED_STACK
|
||||||
#define INT_REQUIRED_STACK 16384
|
#define INT_REQUIRED_STACK 16384
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
*** Releases ***
|
*** Releases ***
|
||||||
*****************************************************************************
|
*****************************************************************************
|
||||||
|
|
||||||
|
*** 1.3.7 ***
|
||||||
|
- FIX: Fixed Linux simulator startup message (bug 2921012).
|
||||||
|
|
||||||
*** 1.3.6 ***
|
*** 1.3.6 ***
|
||||||
- FIX: Fixed missing STM32 PWM low level driver error in platform.mk by
|
- FIX: Fixed missing STM32 PWM low level driver error in platform.mk by
|
||||||
adding the driver files (bug 2913560).
|
adding the driver files (bug 2913560).
|
||||||
|
|
2
todo.txt
2
todo.txt
|
@ -12,6 +12,7 @@ Before 1.4.0:
|
||||||
* Make the heap allocator feed memory chunks from the memory manager.
|
* Make the heap allocator feed memory chunks from the memory manager.
|
||||||
* Dedicated syscalls.c support for newlib users.
|
* Dedicated syscalls.c support for newlib users.
|
||||||
* HAL and common device drivers.
|
* HAL and common device drivers.
|
||||||
|
* Multiple heaps, disjoint heaps, heaps in heaps.
|
||||||
|
|
||||||
After 1.4.x
|
After 1.4.x
|
||||||
- Abstract streams interface.
|
- Abstract streams interface.
|
||||||
|
@ -22,7 +23,6 @@ After 1.4.x
|
||||||
- Threads Pools manager in the library.
|
- Threads Pools manager in the library.
|
||||||
? Minimal optional C-runtime library (complete enough for lwIP).
|
? Minimal optional C-runtime library (complete enough for lwIP).
|
||||||
? Think to something for threads restart.
|
? Think to something for threads restart.
|
||||||
? Multiple heaps, disjoint heaps, heaps in heaps.
|
|
||||||
- Update C++ wrapper (Heap, Pools, Mailboxes and any new feature).
|
- Update C++ wrapper (Heap, Pools, Mailboxes and any new feature).
|
||||||
|
|
||||||
Ideas for 2.x.x:
|
Ideas for 2.x.x:
|
||||||
|
|
Loading…
Reference in New Issue