Fixes for build targets.

pull/24/head
David Garske 2019-11-11 14:00:17 -08:00
parent c78f0d7026
commit dfbb027bab
3 changed files with 8 additions and 10 deletions

View File

@ -94,7 +94,7 @@ Example partitioning on Nucleo-68 board:
- Sector size: 4KB
- Wolfboot partition size: 32 KB
- Applicatiobn partition size: 128 KB
- Application partition size: 128 KB
```C
#define WOLFBOOT_SECTOR_SIZE 0x1000 /* 4 KB */
@ -309,5 +309,3 @@ From another console, connect using gdb, e.g.:
arm-none-eabi-gdb
(gdb) target remote:3333
```

View File

@ -278,7 +278,7 @@ void uart_update_mgr(void)
#define LED_BOOT_PIN (4)
#define LED_USR_PIN (12)
void boot_led_on(void)
static void boot_led_on(void)
{
uint32_t reg;
uint32_t pin = LED_BOOT_PIN;
@ -290,7 +290,7 @@ void boot_led_on(void)
GPIOD_BSRR |= (1 << pin);
}
void boot_led_off(void)
static void boot_led_off(void)
{
GPIOD_BSRR |= (1 << (LED_BOOT_PIN + 16));
}

View File

@ -29,6 +29,7 @@
#ifdef PLATFORM_stm32wb
volatile uint32_t time_elapsed = 0;
void main(void) {
boot_led_on();
/* Wait for reboot */
@ -36,4 +37,3 @@ void main(void) {
;
}
#endif /** PLATFROM_stm32wb **/