Добавлена поддержка FreeRTOS #16

Merged
klassents merged 23 commits from v0.5.0_FreeRTOS into v0.5.0 2025-03-28 06:37:51 +03:00
2 changed files with 4 additions and 14 deletions
Showing only changes of commit 6646cff7e5 - Show all commits

View File

@ -35,7 +35,7 @@ extern "C" {
#define configUSE_PREEMPTION 1
#define configCPU_CLOCK_HZ ( ( uint32_t ) F_CPU ) // This F_CPU variable set by the environment
#define configCPU_CLOCK_HZ ( ( uint32_t ) F_CPU ) // This F_CPU variable set by the environment
#define configTICK_RATE_HZ ( ( TickType_t ) 100 )
#define configUSE_16_BIT_TICKS 0
@ -48,7 +48,8 @@ extern "C" {
#define configSTACK_DEPTH_TYPE uint16_t
#define configMINIMAL_STACK_SIZE 192
// #define configISR_STACK_SIZE_WORDS 128 // todo сколько надо?
/* don't define to reuse the stack allocated in the linker script via __freertos_irq_stack_top variable*/
// #define configISR_STACK_SIZE_WORDS 128
#define configCHECK_FOR_STACK_OVERFLOW 1
#define configUSE_TRACE_FACILITY 0

View File

@ -38,24 +38,13 @@ extern void loop(void);
/*-----------------------------------------------------------*/
void initVariant(void) // todo удалить
void initVariant(void)
{
initTestPin();
setup(); // the normal Arduino setup() function is run here.
post_init();
vTaskStartScheduler(); // initialise and run the freeRTOS scheduler. Execution should never return here.
}
/*
* Setup the timer to generate the tick interrupts.
* The basic settings have been applied at startup in function SystemInit(),
* now all that remains is to configure the machine timer comparison register
* and enable this interrupt.
*/
// void vPortSetupTimerInterrupt(void)
// {
// }
/*-----------------------------------------------------------*/
#if ( configUSE_IDLE_HOOK == 1 )