1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-27 16:54:15 +01:00

PiOS.win32: UAVObject changes, and double the timer tick length to accommodate the MMCSS-set timer tick and be more in line with PiOS.posix.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2341 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
cwabbott 2011-01-05 22:47:47 +00:00 committed by cwabbott
parent 31d9230ad7
commit 050ade4899
3 changed files with 3 additions and 4 deletions

View File

@ -163,6 +163,7 @@ SRC += $(OPUAVOBJ)/firmwareiapobj.c
SRC += $(OPUAVOBJ)/ratedesired.c
SRC += $(OPUAVOBJ)/pipxtrememodemsettings.c
SRC += $(OPUAVOBJ)/pipxtrememodemstatus.c
SRC += $(OPUAVOBJ)/batterysettings.c
endif
## PIOS Hardware (win32)

View File

@ -24,7 +24,7 @@
#define configUSE_IDLE_HOOK 1
#define configUSE_TICK_HOOK 0
#define configCPU_CLOCK_HZ ( ( unsigned long ) 72000000 )
#define configTICK_RATE_HZ ( ( portTickType ) 200 )
#define configTICK_RATE_HZ ( ( portTickType ) 100 )
#define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 5 )
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 256 )
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 45 * 1024 ) )

View File

@ -259,9 +259,7 @@ static DWORD WINAPI tick_generator(LPVOID lpParameter)
}
hTimer = CreateWaitableTimer(NULL, TRUE, NULL);
liDueTime.QuadPart = -(50000 - 10000*(int)msPerTick); // 5ms -
//there is always another tick during WaitForMultipleObjects() while waiting
//for the mutex, so reduce the wait time by 1 tick
liDueTime.QuadPart = -100000;
hObjList[0] = hIsrMutex;
hObjList[1] = hTimer;