Skip to content

Commit

Permalink
Merge pull request #821 from mbrossard/fix/lpc11u35_jtag_ports
Browse files Browse the repository at this point in the history
lpc11u35: fix invalid TDI and TDO pin ports
  • Loading branch information
mathias-arm authored Jun 9, 2021
2 parents d49569e + 1df4d9b commit 2268395
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions source/board/override_96b_nitrogen/IO_Config_Override.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,14 @@ COMPILER_ASSERT(DAPLINK_HIC_ID == DAPLINK_HIC_ID_LPC11U35);
#define PIN_SWDIO_TMS_IOCON_INIT (FUNC_0 | PULL_UP_ENABLED)

// TDI Pin PIO0_17
#define PIN_TDI_PORT 17
#define PIN_TDI_PORT 0
#define PIN_TDI_BIT 17
#define PIN_TDI (1 << PIN_TDI_BIT)
#define PIN_TDI_IOCON LPC_IOCON->PIO0_17
#define PIN_TDI_IOCON_INIT (FUNC_0 | PULL_UP_ENABLED)

// SWO/TDO Pin PIO0_9
#define PIN_TDO_PORT 9
#define PIN_TDO_PORT 0
#define PIN_TDO_BIT 9
#define PIN_TDO (1 << PIN_TDO_BIT)
#define PIN_TDO_IOCON LPC_IOCON->PIO0_9
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ COMPILER_ASSERT(DAPLINK_HIC_ID == DAPLINK_HIC_ID_LPC11U35);
#define PIN_SWDIO_TMS_IOCON_INIT (FUNC_0 | PULL_UP_ENABLED)

// TDI Pin PIO0_17
#define PIN_TDI_PORT 17
#define PIN_TDI_PORT 0
#define PIN_TDI_BIT 17
#define PIN_TDI (1 << PIN_TDI_BIT)
#define PIN_TDI_IOCON LPC_IOCON->PIO0_17
Expand Down
4 changes: 2 additions & 2 deletions source/board/override_lpc11u35_reset/IO_Config_Override.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,14 @@ COMPILER_ASSERT(DAPLINK_HIC_ID == DAPLINK_HIC_ID_LPC11U35);
#define PIN_SWDIO_TMS_IOCON_INIT (FUNC_0 | PULL_UP_ENABLED)

// TDI Pin PIO0_17
#define PIN_TDI_PORT 17
#define PIN_TDI_PORT 0
#define PIN_TDI_BIT 17
#define PIN_TDI (1 << PIN_TDI_BIT)
#define PIN_TDI_IOCON LPC_IOCON->PIO0_17
#define PIN_TDI_IOCON_INIT (FUNC_0 | PULL_UP_ENABLED)

// SWO/TDO Pin PIO0_9
#define PIN_TDO_PORT 9
#define PIN_TDO_PORT 0
#define PIN_TDO_BIT 9
#define PIN_TDO (1 << PIN_TDO_BIT)
#define PIN_TDO_IOCON LPC_IOCON->PIO0_9
Expand Down
2 changes: 1 addition & 1 deletion source/board/override_mtb/IO_Config_Override.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ COMPILER_ASSERT(DAPLINK_HIC_ID == DAPLINK_HIC_ID_LPC11U35);
#define PIN_SWDIO_TMS_IOCON_INIT (FUNC_0 | PULL_UP_ENABLED)

// TDI Pin PIO0_17
#define PIN_TDI_PORT 17
#define PIN_TDI_PORT 0
#define PIN_TDI_BIT 17
#define PIN_TDI (1 << PIN_TDI_BIT)
#define PIN_TDI_IOCON LPC_IOCON->PIO0_17
Expand Down
4 changes: 2 additions & 2 deletions source/board/override_tiny/IO_Config_Override.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,14 @@ COMPILER_ASSERT(DAPLINK_HIC_ID == DAPLINK_HIC_ID_LPC11U35);
#define PIN_SWDIO_TMS_IOCON_INIT (FUNC_0 | PULL_UP_ENABLED)

// TDI Pin PIO0_17
#define PIN_TDI_PORT 17
#define PIN_TDI_PORT 0
#define PIN_TDI_BIT 17
#define PIN_TDI (1 << PIN_TDI_BIT)
#define PIN_TDI_IOCON LPC_IOCON->PIO0_17
#define PIN_TDI_IOCON_INIT (FUNC_0 | PULL_UP_ENABLED)

// SWO/TDO Pin PIO0_9
#define PIN_TDO_PORT 9
#define PIN_TDO_PORT 0
#define PIN_TDO_BIT 9
#define PIN_TDO (1 << PIN_TDO_BIT)
#define PIN_TDO_IOCON LPC_IOCON->PIO0_9
Expand Down
4 changes: 2 additions & 2 deletions source/board/override_vbluno51/IO_Config_Override.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,14 @@ COMPILER_ASSERT(DAPLINK_HIC_ID == DAPLINK_HIC_ID_LPC11U35);
#define PIN_SWDIO_TMS_IOCON_INIT (FUNC_0 | PULL_UP_ENABLED)

// TDI Pin PIO0_17
#define PIN_TDI_PORT 17
#define PIN_TDI_PORT 0
#define PIN_TDI_BIT 17
#define PIN_TDI (1 << PIN_TDI_BIT)
#define PIN_TDI_IOCON LPC_IOCON->PIO0_17
#define PIN_TDI_IOCON_INIT (FUNC_0 | PULL_UP_ENABLED)

// SWO/TDO Pin PIO0_9
#define PIN_TDO_PORT 9
#define PIN_TDO_PORT 0
#define PIN_TDO_BIT 9
#define PIN_TDO (1 << PIN_TDO_BIT)
#define PIN_TDO_IOCON LPC_IOCON->PIO0_9
Expand Down
4 changes: 2 additions & 2 deletions source/hic_hal/nxp/lpc11u35/IO_Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,14 @@ COMPILER_ASSERT(DAPLINK_HIC_ID == DAPLINK_HIC_ID_LPC11U35);
#define PIN_SWDIO_TMS_IOCON_INIT (FUNC_0 | PULL_UP_ENABLED)

// TDI Pin PIO0_17
#define PIN_TDI_PORT 17
#define PIN_TDI_PORT 0
#define PIN_TDI_BIT 17
#define PIN_TDI (1 << PIN_TDI_BIT)
#define PIN_TDI_IOCON LPC_IOCON->PIO0_17
#define PIN_TDI_IOCON_INIT (FUNC_0 | PULL_UP_ENABLED)

// SWO/TDO Pin PIO0_9
#define PIN_TDO_PORT 9
#define PIN_TDO_PORT 0
#define PIN_TDO_BIT 9
#define PIN_TDO (1 << PIN_TDO_BIT)
#define PIN_TDO_IOCON LPC_IOCON->PIO0_9
Expand Down

0 comments on commit 2268395

Please sign in to comment.