Skip to content

Commit

Permalink
msp432p4: shuffle msp432
Browse files Browse the repository at this point in the history
it's really supporting the msp432p4 variant which does device id
through a descriptor table. renaming to make it slightly less
confusing, the msp432e4 has a completely different layout.
  • Loading branch information
neutered authored and dragonmux committed Jul 12, 2023
1 parent 745ed2e commit 9823af9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ SRC = \
main.c \
maths_utils.c \
morse.c \
msp432.c \
msp432p4.c \
nrf51.c \
nxpke04.c \
remote.c \
Expand Down
2 changes: 1 addition & 1 deletion src/target/cortexm.c
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ bool cortexm_probe(adiv5_access_port_s *ap)
PROBE(efm32_probe);
break;
case JEP106_MANUFACTURER_TEXAS:
PROBE(msp432_probe);
PROBE(msp432p4_probe);
break;
case JEP106_MANUFACTURER_SPECULAR:
PROBE(lpc11xx_probe); /* LPC845 */
Expand Down
2 changes: 1 addition & 1 deletion src/target/msp432.c → src/target/msp432p4.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ static void msp432_add_flash(target_s *t, uint32_t addr, size_t length, target_a
mf->flash_protect_register = prot_reg;
}

bool msp432_probe(target_s *t)
bool msp432p4_probe(target_s *t)
{
/* Check for the right device info tag in the TLV ROM structure */
if (target_mem_read32(t, DEVINFO_TAG_ADDR) != DEVINFO_TAG_VALUE)
Expand Down
2 changes: 1 addition & 1 deletion src/target/target_probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ TARGET_PROBE_WEAK_NOP(samd_probe)
TARGET_PROBE_WEAK_NOP(samx5x_probe)
TARGET_PROBE_WEAK_NOP(kinetis_probe)
TARGET_PROBE_WEAK_NOP(efm32_probe)
TARGET_PROBE_WEAK_NOP(msp432_probe)
TARGET_PROBE_WEAK_NOP(msp432p4_probe)
TARGET_PROBE_WEAK_NOP(ke04_probe)
TARGET_PROBE_WEAK_NOP(rp_probe)
TARGET_PROBE_WEAK_NOP(renesas_probe)
Expand Down
2 changes: 1 addition & 1 deletion src/target/target_probe.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ bool samd_probe(target_s *target);
bool samx5x_probe(target_s *target);
bool kinetis_probe(target_s *target);
bool efm32_probe(target_s *target);
bool msp432_probe(target_s *target);
bool msp432p4_probe(target_s *target);
bool ke04_probe(target_s *target);
bool rp_probe(target_s *target);
bool renesas_probe(target_s *target);
Expand Down

0 comments on commit 9823af9

Please sign in to comment.