mirror of
https://github.com/apache/nuttx.git
synced 2026-09-27 10:46:02 +08:00
Add support for Olimex STM32-P107 board (contributed by Max Holtzberg)
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5018 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -45,6 +45,7 @@
|
||||
************************************************************************************/
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
# include <stdint.h>
|
||||
#endif
|
||||
@@ -54,7 +55,6 @@
|
||||
|
||||
#include "muxbus.h"
|
||||
|
||||
|
||||
/************************************************************************************
|
||||
* Definitions
|
||||
************************************************************************************/
|
||||
@@ -88,9 +88,9 @@
|
||||
|
||||
/* AHB clock (HCLK, 36 MHz) is SYSCLK on HSI or SYSCLK/2 on HSE */
|
||||
|
||||
#define STM32_RCC_CFGR_HPRE_HSI RCC_CFGR_HPRE_SYSCLK
|
||||
#define STM32_RCC_CFGR_HPRE_HSE RCC_CFGR_HPRE_SYSCLKd2
|
||||
#define STM32_HCLK_FREQUENCY STM32_BOARD_HCLK
|
||||
#define STM32_RCC_CFGR_HPRE_HSI RCC_CFGR_HPRE_SYSCLK
|
||||
#define STM32_RCC_CFGR_HPRE_HSE RCC_CFGR_HPRE_SYSCLKd2
|
||||
#define STM32_HCLK_FREQUENCY STM32_BOARD_HCLK
|
||||
|
||||
/* APB2 clock (PCLK2) is HCLK (36MHz) */
|
||||
|
||||
@@ -179,7 +179,7 @@
|
||||
#define LED_SIGNAL 5 /* ... */
|
||||
#define LED_ASSERTION 6 /* ... */
|
||||
#define LED_PANIC 7 /* ... */
|
||||
#define LED_IDLE 8 /* shows idle state */
|
||||
#define LED_IDLE 8 /* shows idle state */
|
||||
|
||||
|
||||
/************************************************************************************
|
||||
@@ -200,9 +200,6 @@ extern "C" {
|
||||
* Board Clock Configuration, called immediatelly after boot
|
||||
************************************************************************************/
|
||||
|
||||
EXTERN void stm32_board_clockconfig(void);
|
||||
|
||||
|
||||
/************************************************************************************
|
||||
* Name: stm32_boardinitialize
|
||||
*
|
||||
@@ -215,6 +212,18 @@ EXTERN void stm32_board_clockconfig(void);
|
||||
|
||||
EXTERN void stm32_boardinitialize(void);
|
||||
|
||||
/************************************************************************************
|
||||
* Name: stm32_board_clockconfig
|
||||
*
|
||||
* Description:
|
||||
* Any STM32 board may replace the "standard" board clock configuration logic with
|
||||
* its own, custom clock cofiguration logic.
|
||||
*
|
||||
************************************************************************************/
|
||||
|
||||
#ifdef CONFIG_ARCH_BOARD_STM32_CUSTOM_CLOCKCONFIG
|
||||
EXTERN void stm32_board_clockconfig(void);
|
||||
#endif
|
||||
|
||||
/************************************************************************************
|
||||
* Button support. (TODO: button is not yet supported)
|
||||
@@ -225,7 +234,6 @@ EXTERN void up_buttoninit(void);
|
||||
EXTERN uint8_t up_buttons(void);
|
||||
#endif
|
||||
|
||||
|
||||
#undef EXTERN
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user