File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 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;
4040static int const CS_PIN = 9 ;
4141static int const RESET_PIN = 4 ;
4242static 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
Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments