dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
board.h
Go to the documentation of this file.
1 /*
2  ChibiOS/RT - Copyright (C) 2006-20s13 Giovanni Di Sirio
3 
4  Licensed under the Apache License, Version 2.0 (the "License");
5  you may not use this file except in compliance with the License.
6  You may obtain a copy of the License at
7 
8  http://www.apache.org/licenses/LICENSE-2.0
9 
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15 */
16 
27 #ifndef _BOARD_H_
28 #define _BOARD_H_
29 
30 #include "pios_chibios_transition_priv.h"
31 
32 /* Some older STM32F4 revisions might get antsy when flash prefetching is enabled.
33  This makes sure the affected revs don't get enabled by ChibiOS. */
34 #define STM32_USE_REVISION_A_FIX
35 
36 /*
37  * Board oscillators-related settings.
38  * NOTE: LSE not fitted.
39  */
40 #if !defined(STM32_LSECLK)
41 #define STM32_LSECLK 0
42 #endif
43 
44 #define STM32_HSECLK HSE_VALUE
45 
46 /*
47  * Board voltages.
48  * Required for performance limits calculation.
49  */
50 #define STM32_VDD 330
51 
52 #if !defined(_FROM_ASM_)
53 #ifdef __cplusplus
54 extern "C" {
55 #endif
56  void boardInit(void);
57 #ifdef __cplusplus
58 }
59 #endif
60 #endif /* _FROM_ASM_ */
61 
62 #endif /* _BOARD_H_ */
63 
void boardInit(void)
Board-specific initialization code.
Definition: chibi_main.c:58