iI am using stm32f407a STM32F407 board,building to build my own tiny RTOS i and I have some questions
1-how to define my own stack in different memory location one for each queue of tasks? i need example.
2-how to push and pop to those stacks at systick handler ,what registers, i need example
How can I define my own stack in different memory location, so I can have one stack for each queue of tasks?
How do I push and pop to those stacks in my systick handler, what registers?
Systick handler works fine for me, but when I put a function in an infinite while loop it stops working, why is this?
3-systick handler works fine for me ,whenExample code for testing i put a function in an infinite while loop ,it stop works,why???1 and 2 would be very appreciated.
'code'My current code is below:
#ifdef __cplusplus
extern "C" {
#endif
void SysTick_Handler(void) {
/*1-Mask all interrupts except for E programs dependency*/
OSD_maskUnE_Interuppts();
OSD_SystimerISR();
}
#ifdef __cplusplus
}
#endif
int main(void) {
SystemCoreClockUpdate();
SysTick_Config(SystemCoreClock / 100);
while (1) {}
return 0;
}