Skip to content

Commit

Permalink
Add UDB diff from our local fork
Browse files Browse the repository at this point in the history
Just adding some changes that happened earlier in the UDB code. No
impact on DAPLink.
  • Loading branch information
gaborcsapo authored and mbrossard committed Jun 27, 2023
1 parent dcf8dd1 commit fad8b8c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion source/board/udb/include/udb_adapter_detector.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ typedef enum
ADAPTER_UDB_6_FLEX = 2,
ADAPTER_UDB_17_FLEX = 3,
ADAPTER_UDB_12_FLEX = 4,
ADAPTER_TYPE_5 = 5,
ADAPTER_JOKER_FLEX_V2 = 5,
ADAPTER_TYPE_6 = 6,
ADAPTER_TYPE_7 = 7,
ADAPTER_TYPE_8 = 8,
Expand Down
4 changes: 2 additions & 2 deletions source/board/udb/source/udb_adapter_detector.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static const uint16_t k_adapter_type_adc_map[] =
[ADAPTER_UDB_6_FLEX] = 46871,
[ADAPTER_UDB_17_FLEX] = 43470,
[ADAPTER_UDB_12_FLEX] = 40147,
[ADAPTER_TYPE_5] = 36988,
[ADAPTER_JOKER_FLEX_V2] = 36988,
[ADAPTER_TYPE_6] = 33697,
[ADAPTER_TYPE_7] = 30231,
[ADAPTER_TYPE_8] = 26850,
Expand All @@ -49,7 +49,7 @@ static const char* k_adapter_type_name[] =
[ADAPTER_UDB_6_FLEX] = "UDB_6_FLEX",
[ADAPTER_UDB_17_FLEX] = "UDB_17_FLEX",
[ADAPTER_UDB_12_FLEX] = "UDB_12_FLEX",
[ADAPTER_TYPE_5] = "TYPE_5",
[ADAPTER_JOKER_FLEX_V2] = "JOKER_FLEX_V2",
[ADAPTER_TYPE_6] = "TYPE_6",
[ADAPTER_TYPE_7] = "TYPE_7",
[ADAPTER_TYPE_8] = "TYPE_8",
Expand Down
10 changes: 2 additions & 8 deletions source/board/udb/source/udb_version.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ enum {
HW_VERSION_PIN_1,
HW_VERSION_PIN_2,
HW_VERSION_PIN_3,
HW_VERSION_PIN_4,
HW_VERSION_PIN_COUNT,
};

Expand Down Expand Up @@ -81,21 +80,16 @@ static const hw_version_pin_type_t s_hw_version_pins[HW_VERSION_PIN_COUNT] =
.pin = GPIO_PIN_5,
},
[HW_VERSION_PIN_1] =
{
.port = GPIOD,
.pin = GPIO_PIN_7,
},
[HW_VERSION_PIN_2] =
{
.port = GPIOB,
.pin = GPIO_PIN_2,
},
[HW_VERSION_PIN_3] =
[HW_VERSION_PIN_2] =
{
.port = GPIOD,
.pin = GPIO_PIN_8,
},
[HW_VERSION_PIN_4] =
[HW_VERSION_PIN_3] =
{
.port = GPIOD,
.pin = GPIO_PIN_5,
Expand Down
2 changes: 1 addition & 1 deletion source/hic_hal/stm32/stm32h743xx/read_uid.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ void read_unique_id(uint32_t *id)
{
uint32_t Device_Serial0, Device_Serial1, Device_Serial2;

Device_Serial0 = *(uint32_t*)(0x1FF1E800); //elee change from F103 value, (0x1FFFF7E8);
Device_Serial0 = *(uint32_t*)(0x1FF1E800);
Device_Serial1 = *(uint32_t*)(0x1FF1E804);
Device_Serial2 = *(uint32_t*)(0x1FF1E808);

Expand Down
1 change: 1 addition & 0 deletions test/udb_integration_test/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
pyOCD==0.34.*
pexpect
pyserial

0 comments on commit fad8b8c

Please sign in to comment.