Chapter 15. Simple Application Programming
Using CMSIS
In the blinky example presented in the previous chapter, we used a CMSIS header file (LPC11xx.h) so that we did not have to re-create the register definitions ourselves. The benefit of CMSIS does not stop there. In the next example, we will see how CMSIS can greatly simplify our blinky example program.
In the CMSIS software package from NXP website, or from Keil installation (C:\Keil\ARM\Startup\NXP\LPC11xx), we can find a file called system_LPC11xx.c, which is specific to the NXP LPC11xx microcontrollers. Create a new blinky project in a new directory and copy the file system_LPC11xx.c to the new directory. Use the μVision IDE to add this file to the new blinky project (Figure 15.1).
Figure ... |
Get The Definitive Guide to the ARM Cortex-M0 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.