Cosmetic changes from review of last PR

This commit is contained in:
Gregory Nutt
2016-04-18 06:50:45 -06:00
parent c5cce5603e
commit 26ba3a2b96
6 changed files with 207 additions and 183 deletions
-4
View File
@@ -45,10 +45,6 @@
.file "arm_restorefpu.S" .file "arm_restorefpu.S"
/************************************************************************************
* Pre-processor Definitions
************************************************************************************/
/************************************************************************************ /************************************************************************************
* Public Symbols * Public Symbols
************************************************************************************/ ************************************************************************************/
@@ -42,28 +42,12 @@
.file "arm_saveusercontext.S" .file "arm_saveusercontext.S"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/**************************************************************************** /****************************************************************************
* Public Symbols * Public Symbols
****************************************************************************/ ****************************************************************************/
.globl up_saveusercontext .globl up_saveusercontext
/****************************************************************************
* Private Data
****************************************************************************/
/****************************************************************************
* Public Data
****************************************************************************/
/****************************************************************************
* Private Functions
****************************************************************************/
/**************************************************************************** /****************************************************************************
* Public Functions * Public Functions
****************************************************************************/ ****************************************************************************/
+1 -1
View File
@@ -48,12 +48,12 @@
/**************************************************************************************** /****************************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
****************************************************************************************/ ****************************************************************************************/
/* General Characteristics **************************************************************/ /* General Characteristics **************************************************************/
#define STM32L4_QSPI_MINBITS 8 /* Minimum word width */ #define STM32L4_QSPI_MINBITS 8 /* Minimum word width */
#define STM32L4_QSPI_MAXBITS 32 /* Maximum word width */ #define STM32L4_QSPI_MAXBITS 32 /* Maximum word width */
/* QSPI register offsets ****************************************************************/ /* QSPI register offsets ****************************************************************/
#define STM32L4_QUADSPI_CR_OFFSET 0x0000 /* Control Register */ #define STM32L4_QUADSPI_CR_OFFSET 0x0000 /* Control Register */
File diff suppressed because it is too large Load Diff
+11 -13
View File
@@ -122,9 +122,7 @@
#define GPIO_I2C1_SDA_GPIO \ #define GPIO_I2C1_SDA_GPIO \
(GPIO_OUTPUT|GPIO_OPENDRAIN|GPIO_SPEED_50MHz|GPIO_OUTPUT_SET|GPIO_PORTB|GPIO_PIN7) (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 #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_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) #define GPIO_QSPI_SCK (GPIO_QSPI_CLK_2 | GPIO_FLOAT | GPIO_PUSHPULL | GPIO_SPEED_100MHz)
//XXX hmm, elsewhere #if 0
//#define QSPI_USE_INTERRUPTS 1 /* XXX hmm, elsewhere */
//XXX hmm, better? (2^(23+1)); this is the value that goes into FSIZE
//#define QSPI_FLASH_SIZE 23
#define QSPI_USE_INTERRUPTS 1
/* SPI /* XXX hmm, better? (2^(23+1)); this is the value that goes into FSIZE */
*/
/* #define QSPI_FLASH_SIZE 23
* XXX is SPI1 used on Disco? #endif
*/
/* SPI */
/* XXX is SPI1 used on Disco? */
#if 0 #if 0
@@ -167,7 +166,6 @@
#endif #endif
/* SPI2 is used for several peripherals on the Discovery board, including /* SPI2 is used for several peripherals on the Discovery board, including
* L3GD20 - 3 axis Gyroscope * L3GD20 - 3 axis Gyroscope
* LSM303CTR - eCompass, comprising an accelerometer and magnetometer * LSM303CTR - eCompass, comprising an accelerometer and magnetometer
@@ -125,9 +125,9 @@ int board_app_initialize(void)
(void)ret; (void)ret;
#ifdef CONFIG_SCHED_INSTRUMENTATION
/* Configure CPU load estimation */ /* Configure CPU load estimation */
#ifdef CONFIG_SCHED_INSTRUMENTATION
cpuload_initialize_once(); cpuload_initialize_once();
#endif #endif