Subversion Repositories chibiosIgnition

Rev

Rev 7 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
7 mjames 1
/*
2
    ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010,
3
                 2011,2012 Giovanni Di Sirio.
4
 
5
    This file is part of ChibiOS/RT.
6
 
7
    ChibiOS/RT is free software; you can redistribute it and/or modify
8
    it under the terms of the GNU General Public License as published by
9
    the Free Software Foundation; either version 3 of the License, or
10
    (at your option) any later version.
11
 
12
    ChibiOS/RT is distributed in the hope that it will be useful,
13
    but WITHOUT ANY WARRANTY; without even the implied warranty of
14
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
    GNU General Public License for more details.
16
 
17
    You should have received a copy of the GNU General Public License
18
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
 
20
                                      ---
21
 
22
    A special exception to the GPL can be applied should you wish to distribute
23
    a combined work that includes ChibiOS/RT, without being obliged to provide
24
    the source code for any proprietary components. See the file exception.txt
25
    for full details of how and when the exception can be applied.
26
*/
27
 
28
#include "ch.h"
29
#include "hal.h"
30
 
31
/**
32
 * @brief   PAL setup.
33
 * @details Digital I/O ports static configuration as defined in @p board.h.
34
 *          This variable is used by the HAL when initializing the PAL driver.
35
 */
36
#if HAL_USE_PAL || defined(__DOXYGEN__)
37
const PALConfig pal_default_config =
38
{
39
  {VAL_GPIOAODR, VAL_GPIOACRL, VAL_GPIOACRH},
40
  {VAL_GPIOBODR, VAL_GPIOBCRL, VAL_GPIOBCRH},
41
  {VAL_GPIOCODR, VAL_GPIOCCRL, VAL_GPIOCCRH},
42
  {VAL_GPIODODR, VAL_GPIODCRL, VAL_GPIODCRH},
43
  {VAL_GPIOEODR, VAL_GPIOECRL, VAL_GPIOECRH},
44
};
45
#endif
46
 
47
/*
48
 * Early initialization code.
49
 * This initialization must be performed just after stack setup and before
50
 * any other initialization.
51
 */
52
void __early_init(void) {
53
 
54
  stm32_clock_init();
55
}
56
 
57
/*
58
 * Board-specific initialization code.
59
 */
60
void boardInit(void) {
19 mjames 61
 
62
 
7 mjames 63
}