fix cmsis rtx tick configuration

everything should work
TODO: remove static for variable error in control xfer subtask
This commit is contained in:
hathach
2013-09-13 23:32:07 +07:00
parent 67453b89f0
commit 0d279facbb
9 changed files with 32 additions and 33 deletions
@@ -48,9 +48,11 @@
void board_init(void)
{
SystemInit();
CGU_Init();
//#if TUSB_CFG_OS != TUSB_OS_CMSIS_RTX // TODO may move to main.c
SysTick_Config(CGU_GetPCLKFrequency(CGU_PERIPHERAL_M4CORE) / CFG_TICKS_PER_SECOND); // 1 msec tick timer
//#endif
// USB0 Power: EA4357 channel B U20 GPIO26 active low (base board), P2_3 on LPC4357
scu_pinmux(0x2, 3, MD_PUP | MD_EZI, FUNC7); // USB0 VBus Power