boards/arm/stm32/stm3210e-eval/include/board.h: Fix nxstyle issues.
This commit is contained in:
parent
c3ba603134
commit
6c68c2b892
@ -46,22 +46,24 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Logic in arch/arm/src and boards/ may need to include these file prior to
|
/* Logic in arch/arm/src and boards/ may need to include these file prior to
|
||||||
* including board.h: stm32_rcc.h, stm32_sdio.h, stm32.h. They cannot be included
|
* including board.h: stm32_rcc.h, stm32_sdio.h, stm32.h. They cannot be
|
||||||
* here because board.h is used in other contexts where the STM32 internal header
|
* included here because board.h is used in other contexts where the STM32
|
||||||
* files are not available.
|
* internal header files are not available.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Clocking *************************************************************************/
|
/* Clocking *****************************************************************/
|
||||||
|
|
||||||
/* On-board crystal frequency is 8MHz (HSE) */
|
/* On-board crystal frequency is 8MHz (HSE) */
|
||||||
|
|
||||||
#define STM32_BOARD_XTAL 8000000ul
|
#define STM32_BOARD_XTAL 8000000ul
|
||||||
|
|
||||||
/* PLL source is HSE/1, PLL multipler is 9: PLL frequency is 8MHz (XTAL) x 9 = 72MHz */
|
/* PLL source is HSE/1, PLL multipler is 9:
|
||||||
|
* PLL frequency is 8MHz (XTAL) x 9 = 72MHz
|
||||||
|
*/
|
||||||
|
|
||||||
#define STM32_CFGR_PLLSRC RCC_CFGR_PLLSRC
|
#define STM32_CFGR_PLLSRC RCC_CFGR_PLLSRC
|
||||||
#define STM32_CFGR_PLLXTPRE 0
|
#define STM32_CFGR_PLLXTPRE 0
|
||||||
@ -111,7 +113,8 @@
|
|||||||
|
|
||||||
/* Timer Frequencies, if APBx is set to 1, frequency is same to APBx
|
/* Timer Frequencies, if APBx is set to 1, frequency is same to APBx
|
||||||
* otherwise frequency is 2xAPBx.
|
* otherwise frequency is 2xAPBx.
|
||||||
* Note: TIM1,8 are on APB2, others on APB1 */
|
* Note: TIM1,8 are on APB2, others on APB1
|
||||||
|
*/
|
||||||
|
|
||||||
#define BOARD_TIM1_FREQUENCY STM32_HCLK_FREQUENCY
|
#define BOARD_TIM1_FREQUENCY STM32_HCLK_FREQUENCY
|
||||||
#define BOARD_TIM2_FREQUENCY STM32_HCLK_FREQUENCY
|
#define BOARD_TIM2_FREQUENCY STM32_HCLK_FREQUENCY
|
||||||
@ -152,15 +155,18 @@
|
|||||||
# define SDIO_SDXFR_CLKDIV (3 << SDIO_CLKCR_CLKDIV_SHIFT)
|
# define SDIO_SDXFR_CLKDIV (3 << SDIO_CLKCR_CLKDIV_SHIFT)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* SRAM definitions *****************************************************************/
|
/* SRAM definitions *********************************************************/
|
||||||
/* The 8 Mbit SRAM is provided on the PT3 board using the FSMC_NE3 chip select. */
|
|
||||||
|
/* The 8 Mbit SRAM is provided on the PT3 board using the FSMC_NE3 chip
|
||||||
|
* select.
|
||||||
|
*/
|
||||||
|
|
||||||
/* This is the Bank1 SRAM3 address: */
|
/* This is the Bank1 SRAM3 address: */
|
||||||
|
|
||||||
#define BOARD_SRAM_BASE 0x68000000 /* Bank2 SRAM3 base address */
|
#define BOARD_SRAM_BASE 0x68000000 /* Bank2 SRAM3 base address */
|
||||||
#define BOARD_SRAM_SIZE (1*1024*1024) /* 8-Mbit = 1-Mbyte */
|
#define BOARD_SRAM_SIZE (1*1024*1024) /* 8-Mbit = 1-Mbyte */
|
||||||
|
|
||||||
/* LED definitions ******************************************************************/
|
/* LED definitions **********************************************************/
|
||||||
|
|
||||||
/* The STM3210E-EVAL board has 4 LEDs that we will encode as: */
|
/* The STM3210E-EVAL board has 4 LEDs that we will encode as: */
|
||||||
|
|
||||||
@ -244,10 +250,11 @@ extern "C"
|
|||||||
* Name: stm3210e_lcdclear
|
* Name: stm3210e_lcdclear
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* This is a non-standard LCD interface just for the STM3210E-EVAL board. Because
|
* This is a non-standard LCD interface just for the STM3210E-EVAL board.
|
||||||
* of the various rotations, clearing the display in the normal way by writing a
|
* Because of the various rotations, clearing the display in the normal
|
||||||
* sequences of runs that covers the entire display can be very slow. Here the
|
* way by writing a sequences of runs that covers the entire display can
|
||||||
* display is cleared by simply setting all GRAM memory to the specified color.
|
* be very slow. Here the display is cleared by simply setting all GRAM
|
||||||
|
* memory to the specified color.
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
@ -284,7 +291,8 @@ int stm32_lm75initialize(FAR const char *devpath);
|
|||||||
* arg - The argument that will accompany the interrupt
|
* arg - The argument that will accompany the interrupt
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
* Zero (OK) returned on success; a negated errno value is returned on failure.
|
* Zero (OK) returned on success; a negated errno value is returned on
|
||||||
|
* failure.
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user