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:
parent
31d9230ad7
commit
050ade4899
@ -163,6 +163,7 @@ SRC += $(OPUAVOBJ)/firmwareiapobj.c
|
|||||||
SRC += $(OPUAVOBJ)/ratedesired.c
|
SRC += $(OPUAVOBJ)/ratedesired.c
|
||||||
SRC += $(OPUAVOBJ)/pipxtrememodemsettings.c
|
SRC += $(OPUAVOBJ)/pipxtrememodemsettings.c
|
||||||
SRC += $(OPUAVOBJ)/pipxtrememodemstatus.c
|
SRC += $(OPUAVOBJ)/pipxtrememodemstatus.c
|
||||||
|
SRC += $(OPUAVOBJ)/batterysettings.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
## PIOS Hardware (win32)
|
## PIOS Hardware (win32)
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
#define configUSE_IDLE_HOOK 1
|
#define configUSE_IDLE_HOOK 1
|
||||||
#define configUSE_TICK_HOOK 0
|
#define configUSE_TICK_HOOK 0
|
||||||
#define configCPU_CLOCK_HZ ( ( unsigned long ) 72000000 )
|
#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 configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 5 )
|
||||||
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 256 )
|
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 256 )
|
||||||
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 45 * 1024 ) )
|
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 45 * 1024 ) )
|
||||||
|
@ -259,9 +259,7 @@ static DWORD WINAPI tick_generator(LPVOID lpParameter)
|
|||||||
}
|
}
|
||||||
|
|
||||||
hTimer = CreateWaitableTimer(NULL, TRUE, NULL);
|
hTimer = CreateWaitableTimer(NULL, TRUE, NULL);
|
||||||
liDueTime.QuadPart = -(50000 - 10000*(int)msPerTick); // 5ms -
|
liDueTime.QuadPart = -100000;
|
||||||
//there is always another tick during WaitForMultipleObjects() while waiting
|
|
||||||
//for the mutex, so reduce the wait time by 1 tick
|
|
||||||
|
|
||||||
hObjList[0] = hIsrMutex;
|
hObjList[0] = hIsrMutex;
|
||||||
hObjList[1] = hTimer;
|
hObjList[1] = hTimer;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user