Skip to content

Commit

Permalink
stm32/boards/PYBD_SF2: Exclude certain things when building mboot.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgeorge committed Aug 28, 2019
1 parent 68d74b0 commit 5789558
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ports/stm32/boards/PYBD_SF2/board_init.c
Expand Up @@ -54,6 +54,8 @@ void board_early_init(void) {
spi_bdev_ioctl(&spi_bdev2, BDEV_IOCTL_INIT, (uint32_t)&spiflash2_config);
}

#if !BUILDING_MBOOT

void board_sleep(int value) {
mp_spiflash_deepsleep(&spi_bdev.spiflash, value);
mp_spiflash_deepsleep(&spi_bdev2.spiflash, value);
Expand All @@ -70,3 +72,5 @@ void mp_hal_get_mac(int idx, uint8_t buf[6]) {
// Generate a random locally administered MAC address (LAA)
mp_hal_generate_laa_mac(idx, buf);
}

#endif

0 comments on commit 5789558

Please sign in to comment.