mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
Significantly stylistic changes required after review of last PR
This commit is contained in:
@@ -88,7 +88,9 @@ static size_t do_stackcheck(uintptr_t alloc, size_t size)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Get aligned addresses of the top and bottom of the stack */
|
||||
|
||||
#ifdef CONFIG_TLS
|
||||
/* Skip over the TLS data structure at the bottom of the stack */
|
||||
|
||||
@@ -126,7 +128,8 @@ static size_t do_stackcheck(uintptr_t alloc, size_t size)
|
||||
#if 0
|
||||
if (mark + 16 > nwords)
|
||||
{
|
||||
int i, j;
|
||||
int i;
|
||||
int j;
|
||||
|
||||
ptr = (FAR uint32_t *)start;
|
||||
for (i = 0; i < size; i += 4*64)
|
||||
|
||||
@@ -1196,8 +1196,8 @@ config STM32F7_QUADSPI
|
||||
default n
|
||||
|
||||
config STM32F7_PWR
|
||||
bool "PWR"
|
||||
default n
|
||||
bool "PWR"
|
||||
default n
|
||||
|
||||
config STM32F7_RNG
|
||||
bool "RNG"
|
||||
@@ -1801,57 +1801,57 @@ endmenu # "SDMMC2 Configuration"
|
||||
if STM32F7_BKPSRAM
|
||||
|
||||
config STM32F7_BBSRAM
|
||||
bool "BBSRAM File Support"
|
||||
default n
|
||||
bool "BBSRAM File Support"
|
||||
default n
|
||||
|
||||
config STM32F7_BBSRAM_FILES
|
||||
int "Max Files to support in BBSRAM"
|
||||
default 4
|
||||
int "Max Files to support in BBSRAM"
|
||||
default 4
|
||||
|
||||
config STM32F7_SAVE_CRASHDUMP
|
||||
bool "Enable Saving Panic to BBSRAM"
|
||||
default n
|
||||
bool "Enable Saving Panic to BBSRAM"
|
||||
default n
|
||||
|
||||
endif # STM32F7_BKPSRAM
|
||||
|
||||
config STM32F7_HAVE_RTC_COUNTER
|
||||
bool
|
||||
default n
|
||||
bool
|
||||
default n
|
||||
|
||||
config STM32F7_HAVE_RTC_SUBSECONDS
|
||||
bool
|
||||
default n
|
||||
bool
|
||||
default n
|
||||
|
||||
config RTC_MAGIC_REG
|
||||
int "The BKP register used to store/check the Magic value to determine if RTC is set already"
|
||||
default 0
|
||||
range 0 31
|
||||
depends on RTC && !STM32F7_HAVE_RTC_COUNTER
|
||||
int "The BKP register used to store/check the Magic value to determine if RTC is set already"
|
||||
default 0
|
||||
range 0 31
|
||||
depends on RTC && !STM32F7_HAVE_RTC_COUNTER
|
||||
|
||||
config RTC_MAGIC
|
||||
hex "Value used as Magic to determine if RTC is set already"
|
||||
default 0xfacefeee
|
||||
depends on RTC && !STM32F7_HAVE_RTC_COUNTER
|
||||
hex "Value used as Magic to determine if RTC is set already"
|
||||
default 0xfacefeee
|
||||
depends on RTC && !STM32F7_HAVE_RTC_COUNTER
|
||||
|
||||
choice
|
||||
prompt "RTC clock source"
|
||||
default STM32F7_RTC_LSECLOCK
|
||||
depends on RTC
|
||||
prompt "RTC clock source"
|
||||
default STM32F7_RTC_LSECLOCK
|
||||
depends on RTC
|
||||
|
||||
config STM32F7_RTC_HSECLOCK
|
||||
bool "HSE clock"
|
||||
---help---
|
||||
Drive the RTC with the HSE clock, divided down to 1MHz.
|
||||
bool "HSE clock"
|
||||
---help---
|
||||
Drive the RTC with the HSE clock, divided down to 1MHz.
|
||||
|
||||
config STM32F7_RTC_LSECLOCK
|
||||
bool "LSE clock"
|
||||
---help---
|
||||
Drive the RTC with the LSE clock
|
||||
bool "LSE clock"
|
||||
---help---
|
||||
Drive the RTC with the LSE clock
|
||||
|
||||
config STM32F7_RTC_LSICLOCK
|
||||
bool "LSI clock"
|
||||
---help---
|
||||
Drive the RTC with the LSI clock
|
||||
bool "LSI clock"
|
||||
---help---
|
||||
Drive the RTC with the LSI clock
|
||||
|
||||
endchoice #"RTC clock source"
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/************************************************************************************
|
||||
* arch/arm/src/stm32f7/chip/stm32_rtcc.h.h
|
||||
* arch/arm/src/stm32f7/chip/stm32_rtcc.h
|
||||
*
|
||||
* Copyright (C) 2011-2016 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
|
||||
@@ -52,10 +52,6 @@
|
||||
|
||||
#if defined(CONFIG_STM32F7_PWR)
|
||||
|
||||
/************************************************************************************
|
||||
* Pre-processor Definitions
|
||||
************************************************************************************/
|
||||
|
||||
/************************************************************************************
|
||||
* Private Functions
|
||||
************************************************************************************/
|
||||
|
||||
@@ -277,7 +277,6 @@ int stm32_sdio_initialize(void);
|
||||
*
|
||||
************************************************************************************/
|
||||
|
||||
|
||||
#ifdef CONFIG_STM32F7_OTGFS
|
||||
void stm32_usbinitialize(void);
|
||||
#endif
|
||||
@@ -285,8 +284,10 @@ void stm32_usbinitialize(void);
|
||||
/************************************************************************************
|
||||
* Name: stm32_bbsram_int
|
||||
************************************************************************************/
|
||||
|
||||
#ifdef CONFIG_STM32F7_BBSRAM
|
||||
int stm32_bbsram_int(void);
|
||||
#endif
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __CONFIGS_NUCLEO_144_SRC_NUCLEO_144_H */
|
||||
|
||||
@@ -101,7 +101,10 @@ int board_app_initialize(uintptr_t arg)
|
||||
syslog(LOG_ERR, "ERROR: userled_lower_initialize() failed: %d\n", ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_STM32F7_BBSRAM
|
||||
/* Initialize battery-backed RAM */
|
||||
|
||||
(void)stm32_bbsram_int();
|
||||
#endif
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user