/* Task 1 is continuous processing Task */
void Task1(uint32_t entry_param)
{
while(1) {
printf("%s", "Task1 is Running ...\n\r");
for(volatile auto uint32_t ul = 0; ul < 0xffff; ul++ ){ ; }
}
}
/* PortF Interrupt Service Routine */
void gpiof_isr(void)
{
GPIO_PORTF_ICR_R = 0x10; /* clear PF4 int */
/* Must be called at the start of interrupt handler that may call an
OS primitive and make a thread ready. */
atomIntEnter();
/* Process GPIO Port F Interrupt */
/* Must be called at the end of interrupt handler that may call an
OS primitive and make a thread ready. */
atomIntExit(0);
}
References
- Introduction to atomthreads
- atomthreads kernel Reference
- atomthreads Documentation
Recent Comments