info.txt 1.6 KB

12345678910111213141516171819202122232425262728293031
  1. There seems to be no LPCOpen library for the LPC804:
  2. https://www.nxp.com/design/microcontrollers-developer-resources/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc8xx:LPCOPEN-SOFTWARE-FOR-LPC8XX
  3. Source: LPC804-EX-CODE-MCUXPRESSO.zip from nxp.com
  4. available from here:
  5. https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/general-purpose-mcus/lpc800-cortex-m0-plus-/low-cost-microcontrollers-mcus-based-on-arm-cortex-m0-plus-core:LPC80X?tab=Design_Tools_Tab#t749
  6. "LPC804 Example Code Bundle MCUXpresso"
  7. Toplevel include should be "LPC8xx.h".
  8. The name "LPC8xx.h" might be misleading: This file is specific to the LPC804, but
  9. I decided not to change the name, but keep the orginal file name from the above zip
  10. folder. In fact plan is not to modify any of the files in lpc_chip_804 so that they can
  11. be overwritten at any time with the original files (maybe chip_setup.h is an exception).
  12. For some reason the variable "SystemCoreClock" is renamed to "main_clk".
  13. While working in the code, I saw, that there are some issues in "lpc_chip_804":
  14. - Removed includes of "utilities.h" because the funcionality is not called
  15. - added inclusion of "swm.h" from "spi.h", because "spi.h" makes use of
  16. some definitions from "swm.h"
  17. - Removed "Config_Syspll" declaration from "syscon.h" because it is removed in the src.
  18. - Alligned "unsigned int" with "uint32_t" declarations in syscon.h and .c
  19. - Change the inclusion of "lpc8xx.h" to "LPC8xx.h" in i2c.h
  20. As a conclusion, I had to change the following files compared to the original zip content:
  21. i2c.h syscon.h syscon.c i2c.c spi.c spi.h plu.c