Paparazzi UAS  v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
board.c
Go to the documentation of this file.
1 /*
2  ChibiOS - Copyright (C) 2006..2015 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 
17 #include "hal.h"
18 
19 #if HAL_USE_PAL || defined(__DOXYGEN__)
20 
25 const PALConfig pal_default_config = {
26 #if STM32_HAS_GPIOA
29 #endif
30 #if STM32_HAS_GPIOB
33 #endif
34 #if STM32_HAS_GPIOC
37 #endif
38 #if STM32_HAS_GPIOD
41 #endif
42 #if STM32_HAS_GPIOE
45 #endif
46 #if STM32_HAS_GPIOF
49 #endif
50 #if STM32_HAS_GPIOG
53 #endif
54 #if STM32_HAS_GPIOH
57 #endif
58 #if STM32_HAS_GPIOI
61 #endif
62 };
63 #endif
64 
70 void __early_init(void) {
71 
72  stm32_clock_init();
73 }
74 
75 #if HAL_USE_SDC || defined(__DOXYGEN__)
76 
81 bool sdc_lld_is_card_inserted(SDCDriver *sdcp) {
82 
83  (void)sdcp;
84  return true;
85 }
86 
90 bool sdc_lld_is_write_protected(SDCDriver *sdcp) {
91 
92  (void)sdcp;
93  /* TODO: Fill the implementation.*/
94  return false;
95 }
96 #endif /* HAL_USE_SDC */
97 
98 #if HAL_USE_MMC_SPI || defined(__DOXYGEN__)
99 
102 bool mmc_lld_is_card_inserted(MMCDriver *mmcp) {
103 
104  (void)mmcp;
105  /* TODO: Fill the implementation.*/
106  return true;
107 }
108 
112 bool mmc_lld_is_write_protected(MMCDriver *mmcp) {
113 
114  (void)mmcp;
115  /* TODO: Fill the implementation.*/
116  return false;
117 }
118 #endif
119 
124 void boardInit(void) {
125 }
126 
#define VAL_GPIOG_ODR
Definition: board.h:518
#define VAL_GPIOB_ODR
Definition: board.h:331
#define VAL_GPIOC_AFRL
Definition: board.h:454
#define VAL_GPIOE_AFRL
Definition: board.h:495
void __early_init(void)
Early initialization code.
Definition: board.c:70
#define VAL_GPIOB_PUPDR
Definition: board.h:314
#define VAL_GPIOG_AFRL
Definition: board.h:519
#define VAL_GPIOA_OSPEEDR
Definition: board.h:190
#define VAL_GPIOE_MODER
Definition: board.h:490
#define VAL_GPIOD_PUPDR
Definition: board.h:480
#define VAL_GPIOB_AFRL
Definition: board.h:348
#define VAL_GPIOC_AFRH
Definition: board.h:463
#define VAL_GPIOC_PUPDR
Definition: board.h:420
#define VAL_GPIOC_OSPEEDR
Definition: board.h:403
#define VAL_GPIOF_AFRL
Definition: board.h:507
#define VAL_GPIOA_MODER
Definition: board.h:156
#define VAL_GPIOE_AFRH
Definition: board.h:496
#define VAL_GPIOG_OSPEEDR
Definition: board.h:516
#define VAL_GPIOH_ODR
Definition: board.h:592
#define VAL_GPIOD_ODR
Definition: board.h:481
#define VAL_GPIOH_MODER
Definition: board.h:528
#define VAL_GPIOI_AFRL
Definition: board.h:634
#define VAL_GPIOB_OSPEEDR
Definition: board.h:297
#define VAL_GPIOB_MODER
Definition: board.h:263
#define VAL_GPIOF_ODR
Definition: board.h:506
#define VAL_GPIOE_OSPEEDR
Definition: board.h:492
#define VAL_GPIOF_PUPDR
Definition: board.h:505
#define VAL_GPIOI_OSPEEDR
Definition: board.h:631
#define VAL_GPIOE_PUPDR
Definition: board.h:493
#define VAL_GPIOC_ODR
Definition: board.h:437
#define VAL_GPIOH_PUPDR
Definition: board.h:576
#define VAL_GPIOD_OSPEEDR
Definition: board.h:479
#define VAL_GPIOE_OTYPER
Definition: board.h:491
#define VAL_GPIOC_OTYPER
Definition: board.h:386
#define VAL_GPIOG_AFRH
Definition: board.h:520
#define VAL_GPIOG_MODER
Definition: board.h:514
#define VAL_GPIOH_AFRH
Definition: board.h:616
#define VAL_GPIOE_ODR
Definition: board.h:494
#define VAL_GPIOA_PUPDR
Definition: board.h:207
#define VAL_GPIOF_MODER
Definition: board.h:502
#define VAL_GPIOB_OTYPER
Definition: board.h:280
#define VAL_GPIOH_AFRL
Definition: board.h:608
#define VAL_GPIOI_AFRH
Definition: board.h:635
#define VAL_GPIOI_MODER
Definition: board.h:629
#define VAL_GPIOA_ODR
Definition: board.h:224
#define VAL_GPIOA_OTYPER
Definition: board.h:173
void boardInit(void)
Board-specific initialization code.
Definition: board.c:122
#define VAL_GPIOF_AFRH
Definition: board.h:508
#define VAL_GPIOI_PUPDR
Definition: board.h:632
#define VAL_GPIOD_MODER
Definition: board.h:477
#define VAL_GPIOD_AFRH
Definition: board.h:483
#define VAL_GPIOF_OTYPER
Definition: board.h:503
#define VAL_GPIOG_OTYPER
Definition: board.h:515
#define VAL_GPIOI_OTYPER
Definition: board.h:630
#define VAL_GPIOI_ODR
Definition: board.h:633
#define VAL_GPIOD_OTYPER
Definition: board.h:478
#define VAL_GPIOG_PUPDR
Definition: board.h:517
#define VAL_GPIOH_OSPEEDR
Definition: board.h:560
#define VAL_GPIOB_AFRH
Definition: board.h:356
#define VAL_GPIOC_MODER
Definition: board.h:369
#define VAL_GPIOA_AFRH
Definition: board.h:250
#define VAL_GPIOH_OTYPER
Definition: board.h:544
#define VAL_GPIOD_AFRL
Definition: board.h:482
#define VAL_GPIOA_AFRL
Definition: board.h:241
#define VAL_GPIOF_OSPEEDR
Definition: board.h:504