Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lpc11u35: fix invalid TDI and TDO pin ports #821

Merged
merged 1 commit into from
Jun 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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