Skip to content

Commit 2a5425b

Browse files
committed
Support Portenta H7 with MID carrier Pro Demo kit
1 parent 6ee355a commit 2a5425b

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/Arduino_10BASE_T1S.h

+6
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ static int const IRQ_PIN = 2;
4040
static int const CS_PIN = 9;
4141
static int const RESET_PIN = 4;
4242
static int const IRQ_PIN = 2;
43+
#elif defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4)
44+
/* Pro Demo kit on MID carrier, UNO form factor */
45+
#include "pinDefinitions.h"
46+
static int const CS_PIN = PinNameToIndex(PH_6);
47+
static int const RESET_PIN = PinNameToIndex(PJ_11);
48+
static int const IRQ_PIN = PinNameToIndex(PC_7);
4349
#else
4450
# error "No pins defined for your board"
4551
#endif

src/MacAddress.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,11 @@ void get_unique_chip_id_3(uint8_t * uid)
101101
bsp_unique_id_t const * renesas_unique_id = (bsp_unique_id_t *) BSP_FEATURE_BSP_UNIQUE_ID_POINTER;
102102
memcpy(uid, renesas_unique_id->unique_id_bytes, 3);
103103
}
104-
#elif defined(ARDUINO_GIGA)
104+
#elif defined(ARDUINO_GIGA) || defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4)
105+
{
106+
uint32_t const stm32_uid = HAL_GetUIDw2();
107+
memcpy(uid, &stm32_uid, 3);
108+
}
105109
{
106110
auto stm32_uid = HAL_GetUIDw2();
107111
memcpy(uid, &stm32_uid, 3);

0 commit comments

Comments
 (0)