Skip to content

Commit

Permalink
HAL_ChibiOS: add option for NO_FASTBOOT build and enable it for iomcu
Browse files Browse the repository at this point in the history
  • Loading branch information
bugobliterator authored and tridge committed Sep 19, 2018
1 parent 6622c9b commit 8ac38d7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/common/halconf.h
Expand Up @@ -147,7 +147,7 @@
* @brief Enables the RTC subsystem.
*/
#if !defined(HAL_USE_RTC) || defined(__DOXYGEN__)
#define HAL_USE_RTC TRUE
#define HAL_USE_RTC FALSE
#endif

/**
Expand Down
4 changes: 2 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/common/stm32_util.c
Expand Up @@ -219,7 +219,7 @@ uint32_t get_fattime()
return fattime;
}

#if defined(HAL_USE_RTC) && HAL_USE_RTC
#if !defined(NO_FASTBOOT)
// get RTC backup register 0
static uint32_t get_rtc_backup0(void)
{
Expand Down Expand Up @@ -253,7 +253,7 @@ void set_fast_reboot(enum rtc_boot_magic v)
set_rtc_backup0(v);
}

#endif //HAL_USE_RTC
#endif //NO_FASTBOOT

/*
enable peripheral power if needed This is done late to prevent
Expand Down
2 changes: 1 addition & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/iomcu/hwdef.dat
Expand Up @@ -98,7 +98,7 @@ define NO_DATAFLASH TRUE
define DMA_RESERVE_SIZE 0

define IOMCU_FW TRUE

define NO_FASTBOOT
IOMCU_FW 1
MAIN_STACK 0x200
PROCESS_STACK 0x250

0 comments on commit 8ac38d7

Please sign in to comment.