[GreatFET] What does "Firmware functions to replace" mean?
Michael Fischer
fischermi at t-online.de
Sat Oct 6 02:57:17 EDT 2018
Hello List,
I found in the wiki the following point: "Firmware functions to replace"?
https://github.com/greatscottgadgets/greatfet/wiki/Firmware-functions-to-replace
What exactly does it mean, what is the intention here?
E.g. in case of "nvic_set_priority" there exist some CMSIS functionality from
ARM which can be used. The new CMSIS code has a Apache-2.0 license.
The code:
nvic_set_priority(NVIC_USB0_IRQ, 254);
can be replaced by:
NVIC_SetPriority(NVIC_USB0_IRQ, 254);
But the most ARM cores I know does not have a priority range of 8 bit.
The most have 4 or 5 bit. In case you are using the LPC4330, the CPU
has only 8 programmable interrupt priority levels, that mean only 3 bits.
Therefore a priority of 254 does not make sense here.
Best regards,
Michael
More information about the GreatFET
mailing list