Closed JF-soft closed 4 years ago
Hello Jonatan,
First of all, thank you for pull request.
I want to review it but there are some difficulties in doing it with PR as it is now.
Once again, thank you for PR, I deeply appreciate your time in doing it. Best regards, Ivan
No problem, I'll follow your suggestions and send a new pull request. The idea is to enable critical interrupts that do not use FreeRTOS API during portTICK_ISR, this allows the user to enable some interrupts as you mention in the issue you opened. The only problem is that using configMAX_SYSCALL_INTERRUPT_PRIORITY does not make sense for this architecture because there is no easy way to rearrange isr priority in software, so I think using a mask is more than enough.
I don't think changing the name of the .asm file is going to break anything, what is going to change examples is configuration of timer 2 that now is hidden from the user
Regarding coding style, it will never be a way, it is just a matter of taste, I would stick to whatever you like, because I think is more important to share the feature than to show what is the correct way of writting code.
To enable this feature the user has to configure interrupt disable mask portINTERRUPT_DISABLE_MASK to a value greater than 0x0000 in portmacro.h
Please review the code in portasm.asm and let me know what you think,
Regards, Jonatan.