mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
Cosmetic changes from review of last PR
This commit is contained in:
@@ -45,10 +45,6 @@
|
||||
|
||||
.file "arm_restorefpu.S"
|
||||
|
||||
/************************************************************************************
|
||||
* Pre-processor Definitions
|
||||
************************************************************************************/
|
||||
|
||||
/************************************************************************************
|
||||
* Public Symbols
|
||||
************************************************************************************/
|
||||
|
||||
@@ -42,28 +42,12 @@
|
||||
|
||||
.file "arm_saveusercontext.S"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Symbols
|
||||
****************************************************************************/
|
||||
|
||||
.globl up_saveusercontext
|
||||
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
@@ -48,12 +48,12 @@
|
||||
/****************************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************************/
|
||||
|
||||
/* General Characteristics **************************************************************/
|
||||
|
||||
#define STM32L4_QSPI_MINBITS 8 /* Minimum word width */
|
||||
#define STM32L4_QSPI_MAXBITS 32 /* Maximum word width */
|
||||
|
||||
|
||||
/* QSPI register offsets ****************************************************************/
|
||||
|
||||
#define STM32L4_QUADSPI_CR_OFFSET 0x0000 /* Control Register */
|
||||
|
||||
+194
-148
File diff suppressed because it is too large
Load Diff
@@ -122,9 +122,7 @@
|
||||
#define GPIO_I2C1_SDA_GPIO \
|
||||
(GPIO_OUTPUT|GPIO_OPENDRAIN|GPIO_SPEED_50MHz|GPIO_OUTPUT_SET|GPIO_PORTB|GPIO_PIN7)
|
||||
|
||||
/*
|
||||
* XXX Is I2C2 used on Disco?
|
||||
*/
|
||||
/* XXX Is I2C2 used on Disco? */
|
||||
|
||||
#if 0
|
||||
|
||||
@@ -146,18 +144,19 @@
|
||||
#define GPIO_QSPI_IO3 (GPIO_QSPI_BK1_IO3_2 | GPIO_FLOAT | GPIO_PUSHPULL | GPIO_SPEED_100MHz)
|
||||
#define GPIO_QSPI_SCK (GPIO_QSPI_CLK_2 | GPIO_FLOAT | GPIO_PUSHPULL | GPIO_SPEED_100MHz)
|
||||
|
||||
//XXX hmm, elsewhere
|
||||
//#define QSPI_USE_INTERRUPTS 1
|
||||
//XXX hmm, better? (2^(23+1)); this is the value that goes into FSIZE
|
||||
//#define QSPI_FLASH_SIZE 23
|
||||
#if 0
|
||||
/* XXX hmm, elsewhere */
|
||||
|
||||
#define QSPI_USE_INTERRUPTS 1
|
||||
|
||||
/* SPI
|
||||
*/
|
||||
/* XXX hmm, better? (2^(23+1)); this is the value that goes into FSIZE */
|
||||
|
||||
/*
|
||||
* XXX is SPI1 used on Disco?
|
||||
*/
|
||||
#define QSPI_FLASH_SIZE 23
|
||||
#endif
|
||||
|
||||
/* SPI */
|
||||
|
||||
/* XXX is SPI1 used on Disco? */
|
||||
|
||||
#if 0
|
||||
|
||||
@@ -167,7 +166,6 @@
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
/* SPI2 is used for several peripherals on the Discovery board, including
|
||||
* L3GD20 - 3 axis Gyroscope
|
||||
* LSM303CTR - eCompass, comprising an accelerometer and magnetometer
|
||||
|
||||
@@ -125,9 +125,9 @@ int board_app_initialize(void)
|
||||
|
||||
(void)ret;
|
||||
|
||||
#ifdef CONFIG_SCHED_INSTRUMENTATION
|
||||
/* Configure CPU load estimation */
|
||||
|
||||
#ifdef CONFIG_SCHED_INSTRUMENTATION
|
||||
cpuload_initialize_once();
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user