Skip to content

Commit

Permalink
Add LPC55xx family ID.
Browse files Browse the repository at this point in the history
  • Loading branch information
flit committed Jan 11, 2021
1 parent 637d6bc commit 3788fda
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/board/hani_iot.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
const board_info_t g_board_info = {
.info_version = kBoardInfoVersion,
.board_id = "0360",
.family_id = VENDOR_TO_FAMILY(kNXP_VendorID, 0), //ID not maching the predefined family ids
.family_id = kNXP_LPC55xx_FamilyID, //ID not maching the predefined family ids
.flags = kEnablePageErase,
.daplink_url_name = "PRODINFOHTM",
.daplink_drive_name = "HANI_IOT",
Expand Down
2 changes: 1 addition & 1 deletion source/board/lpc55S69xpresso.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
const board_info_t g_board_info = {
.info_version = kBoardInfoVersion,
.board_id = "0236",
.family_id = VENDOR_TO_FAMILY(kNXP_VendorID, 0), //ID not maching the predefined family ids
.family_id = kNXP_LPC55xx_FamilyID,
.flags = kEnablePageErase,
.daplink_url_name = "PRODINFOHTM",
.daplink_drive_name = "LPC55S69",
Expand Down
2 changes: 1 addition & 1 deletion source/family/nxp/lpc55S6X/target_reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ static uint8_t lpc55s6x_target_set_state(target_state_t state)
}

const target_family_descriptor_t g_target_family_lpc55S6X = {
.family_id = VENDOR_TO_FAMILY(kNXP_VendorID, 0), //ID not maching the predefined family ids
.family_id = kNXP_LPC55xx_FamilyID, //ID not maching the predefined family ids
.target_set_state = lpc55s6x_target_set_state,
};

Expand Down
2 changes: 2 additions & 0 deletions source/target/target_family.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ extern __WEAK const target_family_descriptor_t g_nxp_kinetis_lseries;
extern __WEAK const target_family_descriptor_t g_nxp_kinetis_k32w_series;
extern __WEAK const target_family_descriptor_t g_nxp_mimxrt;
extern __WEAK const target_family_descriptor_t g_nxp_rapid_iot;
extern __WEAK const target_family_descriptor_t g_nxp_lpc55xx_series;
extern __WEAK const target_family_descriptor_t g_nordic_nrf51;
extern __WEAK const target_family_descriptor_t g_nordic_nrf52;
extern __WEAK const target_family_descriptor_t g_realtek_rtl8195am;
Expand Down Expand Up @@ -78,6 +79,7 @@ const target_family_descriptor_t *g_families[] = {
&g_nxp_kinetis_kseries,
&g_nxp_kinetis_lseries,
&g_nxp_kinetis_k32w_series,
&g_nxp_lpc55xx_series,
&g_nxp_mimxrt,
&g_nxp_rapid_iot,
&g_nordic_nrf51,
Expand Down
1 change: 1 addition & 0 deletions source/target/target_family.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ typedef enum _family_id {
kNXP_Mimxrt_FamilyID = VENDOR_TO_FAMILY(kNXP_VendorID, 3),
kNXP_RapidIot_FamilyID = VENDOR_TO_FAMILY(kNXP_VendorID, 4),
kNXP_KinetisK32W_FamilyID = VENDOR_TO_FAMILY(kNXP_VendorID, 5),
kNXP_LPC55xx_FamilyID = VENDOR_TO_FAMILY(kNXP_VendorID, 6),
kNordic_Nrf51_FamilyID = VENDOR_TO_FAMILY(kNordic_VendorID, 1),
kNordic_Nrf52_FamilyID = VENDOR_TO_FAMILY(kNordic_VendorID, 2),
kRealtek_Rtl8195am_FamilyID = VENDOR_TO_FAMILY(kRealtek_VendorID, 1),
Expand Down

0 comments on commit 3788fda

Please sign in to comment.