clean up.
This commit is contained in:
14
ChangeLog
14
ChangeLog
@@ -1,3 +1,17 @@
|
|||||||
|
2010-10-19 NIIBE Yutaka <gniibe@fsij.org>
|
||||||
|
|
||||||
|
* boards/STM32_PRIMER2/board.mk (BOARDSRC): Use common/hw_config.c.
|
||||||
|
* boards/OLIMEX_STM32_H103/board.mk (BOARDSRC): Likewise.
|
||||||
|
|
||||||
|
* boards/common/hw_config.c: Move board specific functions to ...
|
||||||
|
* boards/STM32_PRIMER2/board.c (USB_Cable_Config, set_led): ... here.
|
||||||
|
* boards/OLIMEX_STM32_H103/board.c (USB_Cable_Config, set_led): Ditto.
|
||||||
|
|
||||||
|
* boards/{OLIMEX_STM32_H103,STM32_PRIMER2}/hw_config.c: Removed.
|
||||||
|
* boards/common/hw_config.c: New file (was: boards/*/hw_config.c).
|
||||||
|
|
||||||
|
* .gitignore: New file.
|
||||||
|
|
||||||
2010-10-16 NIIBE Yutaka <gniibe@fsij.org>
|
2010-10-16 NIIBE Yutaka <gniibe@fsij.org>
|
||||||
|
|
||||||
Implement "INTERNAL AUTHENTICATE" command.
|
Implement "INTERNAL AUTHENTICATE" command.
|
||||||
|
|||||||
@@ -1,49 +1,19 @@
|
|||||||
/*
|
|
||||||
ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010 Giovanni Di Sirio.
|
|
||||||
|
|
||||||
This file is part of ChibiOS/RT.
|
|
||||||
|
|
||||||
ChibiOS/RT is free software; you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation; either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
ChibiOS/RT is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
A special exception to the GPL can be applied should you wish to distribute
|
|
||||||
a combined work that includes ChibiOS/RT, without being obliged to provide
|
|
||||||
the source code for any proprietary components. See the file exception.txt
|
|
||||||
for full details of how and when the exception can be applied.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "ch.h"
|
#include "ch.h"
|
||||||
#include "hal.h"
|
#include "hal.h"
|
||||||
|
|
||||||
/*
|
#include "../common/hwinit.c"
|
||||||
* Early initialization code.
|
|
||||||
* This initialization is performed just after reset before BSS and DATA
|
void
|
||||||
* segments initialization.
|
hwinit0 (void)
|
||||||
*/
|
{
|
||||||
void hwinit0(void) {
|
hwinit0_common ();
|
||||||
#include "../common/hwinit0.c"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
void
|
||||||
* Late initialization code.
|
hwinit1 (void)
|
||||||
* This initialization is performed after BSS and DATA segments initialization
|
{
|
||||||
* and before invoking the main() function.
|
hwinit1_common ();
|
||||||
*/
|
|
||||||
void hwinit1(void) {
|
|
||||||
#include "../common/hwinit1.c"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
#define _BOARD_H_
|
#define _BOARD_H_
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Setup for the Olimex STM33-P103 proto board.
|
* Setup for the Olimex STM32-P103 proto board.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -1,49 +1,19 @@
|
|||||||
/*
|
|
||||||
ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010 Giovanni Di Sirio.
|
|
||||||
|
|
||||||
This file is part of ChibiOS/RT.
|
|
||||||
|
|
||||||
ChibiOS/RT is free software; you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation; either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
ChibiOS/RT is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
A special exception to the GPL can be applied should you wish to distribute
|
|
||||||
a combined work that includes ChibiOS/RT, without being obliged to provide
|
|
||||||
the source code for any proprietary components. See the file exception.txt
|
|
||||||
for full details of how and when the exception can be applied.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "ch.h"
|
#include "ch.h"
|
||||||
#include "hal.h"
|
#include "hal.h"
|
||||||
|
|
||||||
/*
|
#include "../common/hwinit.c"
|
||||||
* Early initialization code.
|
|
||||||
* This initialization is performed just after reset before BSS and DATA
|
void
|
||||||
* segments initialization.
|
hwinit0(void)
|
||||||
*/
|
{
|
||||||
void hwinit0(void) {
|
hwinit0_common ();
|
||||||
#include "../common/hwinit0.c"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
void
|
||||||
* Late initialization code.
|
hwinit1(void)
|
||||||
* This initialization is performed after BSS and DATA segments initialization
|
{
|
||||||
* and before invoking the main() function.
|
hwinit1_common ();
|
||||||
*/
|
|
||||||
void hwinit1(void) {
|
|
||||||
#include "../common/hwinit1.c"
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Clear LED and SHUTDOWN output.
|
* Clear LED and SHUTDOWN output.
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
/*
|
|
||||||
* Common code for hwinit0
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifdef DFU_SUPPORT
|
|
||||||
SCB->VTOR = 0x08003000;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
stm32_clock_init();
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
/*
|
|
||||||
* Common code for hwinit1
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* HAL initialization.
|
|
||||||
*/
|
|
||||||
halInit();
|
|
||||||
|
|
||||||
/*
|
|
||||||
* ChibiOS/RT initialization.
|
|
||||||
*/
|
|
||||||
chSysInit();
|
|
||||||
2
src/configure
vendored
2
src/configure
vendored
@@ -69,7 +69,7 @@ Configuration:
|
|||||||
OLIMEX_STM32_H103
|
OLIMEX_STM32_H103
|
||||||
STM32_PRIMER2
|
STM32_PRIMER2
|
||||||
--enable-debug debug with virtual COM port [no]
|
--enable-debug debug with virtual COM port [no]
|
||||||
--with-dfu build image for DFU [no]
|
--with-dfu build image for DFU [<target specific>]
|
||||||
EOF
|
EOF
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user