Skip to content

Commit ef2eb29

Browse files
authored
Merge pull request #23 from sbhklr/force-boot-alias
Add easy to remember alias for LL_RCC_ForceCM4Boot
2 parents 647242e + 4567d48 commit ef2eb29

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

variants/PORTENTA_H7_M7/pins_arduino.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88
extern "C" unsigned int PINCOUNT_fn();
99
extern "C" bool isBetaBoard();
1010
#endif
11+
12+
// Booting
13+
// ----
14+
#define bootM4() LL_RCC_ForceCM4Boot() // Provide a memorable alias
15+
16+
// Pin count
17+
// ----
1118
#define PINS_COUNT (PINCOUNT_fn())
1219
#define NUM_DIGITAL_PINS (22u)
1320
#define NUM_ANALOG_INPUTS (7u)

0 commit comments

Comments
 (0)