Skip to content

Commit

Permalink
Added definition for LPC552X
Browse files Browse the repository at this point in the history
  • Loading branch information
joshua-nmi committed Dec 6, 2023
1 parent 65d2b2d commit a02c01c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion records/hic_hal/lpc55s26.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ common:
macros:
- INTERFACE_LPC55XX
- CPU_LPC55S26JBD64
- DAPLINK_HIC_ID=0x4C504355 # DAPLINK_HIC_ID_LPC55XX
- DAPLINK_HIC_ID=0x4C509955 # DAPLINK_HIC_ID_LPC552X
- OS_CLOCK=96000000
includes:
- source/hic_hal/nxp/lpc55xx
Expand Down
3 changes: 2 additions & 1 deletion source/board/override_nm180410/IO_Config_Override.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
#include "daplink.h"

// This GPIO configuration is only valid for the LPC55XX HIC
COMPILER_ASSERT(DAPLINK_HIC_ID == DAPLINK_HIC_ID_LPC55XX);
COMPILER_ASSERT((DAPLINK_HIC_ID == DAPLINK_HIC_ID_LPC55XX) ||
(DAPLINK_HIC_ID == DAPLINK_HIC_ID_LPC552X));

// All pins are PIO0.
#define PIN_PIO_PORT (0U)
Expand Down
1 change: 1 addition & 0 deletions source/daplink/daplink.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ COMPILER_ASSERT(DAPLINK_RAM_SHARED_START + DAPLINK_RAM_SHARED_SIZE == DAPLINK_RA
#define DAPLINK_HIC_ID_LPC54606 0x9796990C // reserving for future use
#define DAPLINK_HIC_ID_STM32F723IE 0x9796990D // reserving for future use
#define DAPLINK_HIC_ID_LPC55XX 0x4C504355 // 'LPC\x55'
#define DAPLINK_HIC_ID_LPC552X 0x4C509955 // 'LPC\x55'
#define DAPLINK_HIC_ID_M48SSIDAE 0x97969921
#define DAPLINK_HIC_ID_PSOC5 0x2E127069
#define DAPLINK_HIC_ID_NRF52820 0x6E052820 // 'n\x05\x28\x20'
Expand Down
3 changes: 2 additions & 1 deletion source/hic_hal/nxp/lpc55xx/IO_Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
#include "daplink.h"

// This GPIO configuration is only valid for the LPC55xx HIC
COMPILER_ASSERT(DAPLINK_HIC_ID == DAPLINK_HIC_ID_LPC55XX);
COMPILER_ASSERT((DAPLINK_HIC_ID == DAPLINK_HIC_ID_LPC55XX) ||
(DAPLINK_HIC_ID == DAPLINK_HIC_ID_LPC552X));

// All pins are PIO0.
#define PIN_PIO_PORT (0U)
Expand Down

0 comments on commit a02c01c

Please sign in to comment.