File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
variants/arduino_portenta_h7_stm32h747xx_m7 Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -95,3 +95,4 @@ CONFIG_VIDEO_BUFFER_POOL_ALIGN=32
95
95
CONFIG_VIDEO_BUFFER_USE_SHARED_MULTI_HEAP=y
96
96
CONFIG_VIDEO_BUFFER_SMH_ATTRIBUTE=2
97
97
CONFIG_FLASH=y
98
+ CONFIG_STM32H7_BOOT_M4_AT_INIT=n
Original file line number Diff line number Diff line change 1
1
#include < zephyr/kernel.h>
2
+ #include < zephyrInternal.h>
2
3
3
4
void _on_1200_bps () {
4
5
uint32_t tmp = (uint32_t ) & (RTC->BKP0R );
5
6
tmp += (RTC_BKP_DR0 * 4U );
6
7
*(__IO uint32_t *)tmp = (uint32_t )0xDF59 ;
7
8
NVIC_SystemReset ();
8
9
}
10
+
11
+ void initVariant (void ) {
12
+ // check the BLUE LED
13
+ /* Set led1 inactive since the Arduino bootloader leaves it active */
14
+ const struct gpio_dt_spec led2 = GPIO_DT_SPEC_GET (DT_ALIAS (led2), gpios);
15
+ if (!gpio_is_ready_dt (&led2)) {
16
+ return ;
17
+ }
18
+
19
+ gpio_pin_configure_dt (&led2, GPIO_OUTPUT_INACTIVE);
20
+ }
You can’t perform that action at this time.
0 commit comments