Skip to content

Commit d429123

Browse files
committed
Add LPC55xx family ID.
1 parent 2b61b1f commit d429123

File tree

5 files changed

+7
-3
lines changed

5 files changed

+7
-3
lines changed

source/board/hani_iot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
const board_info_t g_board_info = {
2626
.info_version = kBoardInfoVersion,
2727
.board_id = "0360",
28-
.family_id = VENDOR_TO_FAMILY(kNXP_VendorID, 0), //ID not maching the predefined family ids
28+
.family_id = kNXP_LPC55xx_FamilyID, //ID not maching the predefined family ids
2929
.flags = kEnablePageErase,
3030
.daplink_url_name = "PRODINFOHTM",
3131
.daplink_drive_name = "HANI_IOT",

source/board/lpc55S69xpresso.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
const board_info_t g_board_info = {
2626
.info_version = kBoardInfoVersion,
2727
.board_id = "0236",
28-
.family_id = VENDOR_TO_FAMILY(kNXP_VendorID, 0), //ID not maching the predefined family ids
28+
.family_id = kNXP_LPC55xx_FamilyID,
2929
.flags = kEnablePageErase,
3030
.daplink_url_name = "PRODINFOHTM",
3131
.daplink_drive_name = "LPC55S69",

source/family/nxp/lpc55S6X/target_reset.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ static uint8_t lpc55s6x_target_set_state(TARGET_RESET_STATE state)
107107
}
108108

109109
const target_family_descriptor_t g_target_family_lpc55S6X = {
110-
.family_id = VENDOR_TO_FAMILY(kNXP_VendorID, 0), //ID not maching the predefined family ids
110+
.family_id = kNXP_LPC55xx_FamilyID, //ID not maching the predefined family ids
111111
.target_set_state = lpc55s6x_target_set_state,
112112
};
113113

source/target/target_family.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ const target_family_descriptor_t g_nxp_mimxrt = {0};
5555
__attribute__((weak))
5656
const target_family_descriptor_t g_nxp_rapid_iot = {0};
5757
__attribute__((weak))
58+
const target_family_descriptor_t g_nxp_lpc55xx_series = {0};
59+
__attribute__((weak))
5860
const target_family_descriptor_t g_nordic_nrf51 = {0};
5961
__attribute__((weak))
6062
const target_family_descriptor_t g_nordic_nrf52 = {0};
@@ -77,6 +79,7 @@ const target_family_descriptor_t *g_families[] = {
7779
&g_nxp_kinetis_kseries,
7880
&g_nxp_kinetis_lseries,
7981
&g_nxp_kinetis_k32w_series,
82+
&g_nxp_lpc55xx_series,
8083
&g_nxp_mimxrt,
8184
&g_nxp_rapid_iot,
8285
&g_nordic_nrf51,

source/target/target_family.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ typedef enum _family_id {
5353
kNXP_Mimxrt_FamilyID = VENDOR_TO_FAMILY(kNXP_VendorID, 3),
5454
kNXP_RapidIot_FamilyID = VENDOR_TO_FAMILY(kNXP_VendorID, 4),
5555
kNXP_KinetisK32W_FamilyID = VENDOR_TO_FAMILY(kNXP_VendorID, 5),
56+
kNXP_LPC55xx_FamilyID = VENDOR_TO_FAMILY(kNXP_VendorID, 5),
5657
kNordic_Nrf51_FamilyID = VENDOR_TO_FAMILY(kNordic_VendorID, 1),
5758
kNordic_Nrf52_FamilyID = VENDOR_TO_FAMILY(kNordic_VendorID, 2),
5859
kRealtek_Rtl8195am_FamilyID = VENDOR_TO_FAMILY(kRealtek_VendorID, 1),

0 commit comments

Comments
 (0)