File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,12 @@ static int const IRQ_PIN = 2;
40
40
static int const CS_PIN = 9 ;
41
41
static int const RESET_PIN = 4 ;
42
42
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 );
43
49
#else
44
50
# error "No pins defined for your board"
45
51
#endif
Original file line number Diff line number Diff line change @@ -101,7 +101,11 @@ void get_unique_chip_id_3(uint8_t * uid)
101
101
bsp_unique_id_t const * renesas_unique_id = (bsp_unique_id_t *) BSP_FEATURE_BSP_UNIQUE_ID_POINTER;
102
102
memcpy (uid, renesas_unique_id->unique_id_bytes , 3 );
103
103
}
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
+ }
105
109
{
106
110
auto stm32_uid = HAL_GetUIDw2 ();
107
111
memcpy (uid, &stm32_uid, 3 );
You can’t perform that action at this time.
0 commit comments