DFU 완료 후 전원 래치 Low 방지, zip 파일명에 버전 정보 포함
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
#include <zephyr/dt-bindings/gpio/gpio.h>
|
||||
|
||||
/* MCUboot에서 P0.08을 UART0 RX로 잡지 않도록 비활성화 */
|
||||
&uart0 {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&gpio0 {
|
||||
power_hold_hog: power_hold_hog {
|
||||
gpio-hog;
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
cmake_minimum_required(VERSION 3.20.0)
|
||||
|
||||
zephyr_library()
|
||||
zephyr_library_sources(src/mcuboot_power_hold_early.c)
|
||||
@@ -0,0 +1,14 @@
|
||||
#include <zephyr/init.h>
|
||||
#include <hal/nrf_gpio.h>
|
||||
|
||||
#define POWER_HOLD_PIN 8U
|
||||
|
||||
static int mcuboot_power_hold_early_init(void)
|
||||
{
|
||||
nrf_gpio_pin_set(POWER_HOLD_PIN);
|
||||
nrf_gpio_cfg_output(POWER_HOLD_PIN);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
SYS_INIT(mcuboot_power_hold_early_init, EARLY, 0);
|
||||
@@ -0,0 +1,2 @@
|
||||
build:
|
||||
cmake: .
|
||||
Reference in New Issue
Block a user