mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
boards/stm32: remove up_perf_init from boardinitialize
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
@@ -53,10 +53,6 @@
|
|||||||
|
|
||||||
void stm32_boardinitialize(void)
|
void stm32_boardinitialize(void)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_SCHED_CRITMONITOR
|
|
||||||
up_perf_init((void *)STM32_SYSCLK_FREQUENCY);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2) || \
|
#if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2) || \
|
||||||
defined(CONFIG_STM32_SPI3)
|
defined(CONFIG_STM32_SPI3)
|
||||||
stm32_spidev_initialize();
|
stm32_spidev_initialize();
|
||||||
|
|||||||
@@ -52,10 +52,6 @@
|
|||||||
|
|
||||||
void stm32_boardinitialize(void)
|
void stm32_boardinitialize(void)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_SEGGER_SYSVIEW
|
|
||||||
up_perf_init((void *)STM32_SYSCLK_FREQUENCY);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#ifdef CONFIG_ARCH_LEDS
|
||||||
/* Configure on-board LEDs if LED support has been selected. */
|
/* Configure on-board LEDs if LED support has been selected. */
|
||||||
|
|
||||||
|
|||||||
@@ -53,10 +53,6 @@
|
|||||||
|
|
||||||
void stm32_boardinitialize(void)
|
void stm32_boardinitialize(void)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_SCHED_CRITMONITOR
|
|
||||||
up_perf_init((void *)STM32_SYSCLK_FREQUENCY);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2) || defined(CONFIG_STM32_SPI3)
|
#if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2) || defined(CONFIG_STM32_SPI3)
|
||||||
/* Configure SPI chip selects if 1) SPI is not disabled, and 2) the weak
|
/* Configure SPI chip selects if 1) SPI is not disabled, and 2) the weak
|
||||||
* function stm32_spidev_initialize() has been brought into the link.
|
* function stm32_spidev_initialize() has been brought into the link.
|
||||||
|
|||||||
@@ -53,10 +53,6 @@
|
|||||||
|
|
||||||
void stm32_boardinitialize(void)
|
void stm32_boardinitialize(void)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_SCHED_CRITMONITOR
|
|
||||||
up_perf_init((void *)STM32_SYSCLK_FREQUENCY);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2) || defined(CONFIG_STM32_SPI3)
|
#if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2) || defined(CONFIG_STM32_SPI3)
|
||||||
/* Configure SPI chip selects if 1) SPI is not disabled, and 2) the weak
|
/* Configure SPI chip selects if 1) SPI is not disabled, and 2) the weak
|
||||||
* function stm32_spidev_initialize() has been brought into the link.
|
* function stm32_spidev_initialize() has been brought into the link.
|
||||||
|
|||||||
@@ -50,10 +50,6 @@
|
|||||||
|
|
||||||
void stm32_boardinitialize(void)
|
void stm32_boardinitialize(void)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_SCHED_IRQMONITOR
|
|
||||||
up_perf_init((void *)STM32_SYSCLK_FREQUENCY);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#ifdef CONFIG_ARCH_LEDS
|
||||||
/* Configure on-board LEDs if LED support has been selected. */
|
/* Configure on-board LEDs if LED support has been selected. */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user