[FL-2480] Use SysTick as the main OS timer (#1140)
* Use SysTick as OS tick timer * Use LPTIM2 as tickless idle timer * Remove dummy LPTIM2 IRQ handler * Clean up clock init code * Rename os timer to idle timer * Advance hal ticks along with FreeRTOS's * Improve SysTick control during tickless idle * Improve idle timer precision * Correct SysTick IRQ priority * Main, FuriHal: move system startup to separate thread * Minor code cleanup Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
This commit is contained in:
		| @@ -18,7 +18,7 @@ extern uint32_t SystemCoreClock; | ||||
| #define configUSE_IDLE_HOOK 0 | ||||
| #define configUSE_TICK_HOOK 0 | ||||
| #define configCPU_CLOCK_HZ (SystemCoreClock) | ||||
| #define configTICK_RATE_HZ ((TickType_t)1024) | ||||
| #define configTICK_RATE_HZ ((TickType_t)1000) | ||||
| #define configMAX_PRIORITIES (56) | ||||
| #define configMINIMAL_STACK_SIZE ((uint16_t)128) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user