Looking for LPCopen for LPC11EXX, the link referenced pulls up the download page which does NOT have an LPCopen distribution that supports LPC11EXX.
The closest I've found is lpc11c24. Attempting to use the lpc11c24 LPCopen library results in hardfault errors when attempting to use GPIO APIs. Tracing back, there are #Defines that reference LPC11EXX, however when Define with a compiler option, build errors happen. There are also warnings that the LPC11EXX support is not tested.
For instance, in chip.h:
#if defined(CHIP_LPC11EXX)
#warning The LPC11EXX code has not been tested with a platform. This code should \
build without errors but may not work correctly for the device. To disable this \
warning message, define ENABLE_UNTESTED_CODE.
#endif
In addition to seeing the warning at compile time, there are a number of compile errors, for example:
../src/gpio_11xx_1.c: In function 'Chip_GPIO_SetDir':
../src/gpio_11xx_1.c:80:13: error: subscripted value is neither array nor pointer nor vector
80 | pGPIO->DIR[portNum] |= bitValue;
| ^
../src/gpio_11xx_1.c:83:13: error: subscripted value is neither array nor pointer nor vector
83 | pGPIO->DIR[portNum] &= ~bitValue;
| ^
../src/gpio_11xx_1.c: At top level:
../src/gpio_11xx_1.c:99:6: error: conflicting types for 'Chip_GPIO_SetPortDIR'
99 | void Chip_GPIO_SetPortDIR(LPC_GPIO_T *pGPIO, uint8_t port, uint8_t pinMask, bool outSet)
| ^~~~~~~~~~~~~~~~~~~~
Is there guidance on using LPCopen lpc11c24 chip library configured for lpc11e13/301 with no board library. I'm using the latest MCUxpresso.
Thanks,
Thom