git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1787 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
1dc98e7026
commit
a6c62e43d8
|
@ -0,0 +1,49 @@
|
||||||
|
/*
|
||||||
|
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/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "ch.h"
|
||||||
|
#include "hal.h"
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Early initialization code.
|
||||||
|
* This initialization is performed just after reset before BSS and DATA
|
||||||
|
* segments initialization.
|
||||||
|
*/
|
||||||
|
void hwinit0(void) {
|
||||||
|
|
||||||
|
lpc111x_clock_init();
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Late initialization code.
|
||||||
|
* This initialization is performed after BSS and DATA segments initialization
|
||||||
|
* and before invoking the main() function.
|
||||||
|
*/
|
||||||
|
void hwinit1(void) {
|
||||||
|
|
||||||
|
/*
|
||||||
|
* HAL initialization.
|
||||||
|
*/
|
||||||
|
halInit();
|
||||||
|
|
||||||
|
/*
|
||||||
|
* ChibiOS/RT initialization.
|
||||||
|
*/
|
||||||
|
chSysInit();
|
||||||
|
}
|
|
@ -0,0 +1,51 @@
|
||||||
|
/*
|
||||||
|
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/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _BOARD_H_
|
||||||
|
#define _BOARD_H_
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Setup for Embedded Artists LPCXpresso Base Board with LPC1114 daughter
|
||||||
|
* board.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Board identifiers.
|
||||||
|
*/
|
||||||
|
#define BOARD_EA_BB_LPC1114
|
||||||
|
#define BOARD_NAME "Embedded Artists LPCXpresso Base Board + LPC1114"
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Board frequencies.
|
||||||
|
*/
|
||||||
|
#define HSECLK 8000000
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Pin definitions.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
void hwinit(void);
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* _BOARD_H_ */
|
|
@ -0,0 +1,5 @@
|
||||||
|
# List of all the board related files.
|
||||||
|
BOARDSRC = ${CHIBIOS}/boards/EA_LPCXPRESSO_BB_1114/board.c
|
||||||
|
|
||||||
|
# Required include directories
|
||||||
|
BOARDINC = ${CHIBIOS}/boards/EA_LPCXPRESSO_BB_1114
|
|
@ -52,9 +52,9 @@ LDSCRIPT= ch.ld
|
||||||
|
|
||||||
# Imported source files
|
# Imported source files
|
||||||
CHIBIOS = ../..
|
CHIBIOS = ../..
|
||||||
#include $(CHIBIOS)/boards/EA_LPCXPRESSO_MB/board.mk
|
include $(CHIBIOS)/boards/EA_LPCXPRESSO_BB_1114/board.mk
|
||||||
#include $(CHIBIOS)/os/hal/platforms/LPC111x/platform.mk
|
include $(CHIBIOS)/os/hal/platforms/LPC111x/platform.mk
|
||||||
#include $(CHIBIOS)/os/hal/hal.mk
|
include $(CHIBIOS)/os/hal/hal.mk
|
||||||
include $(CHIBIOS)/os/ports/GCC/ARMCMx/LPC111x/port.mk
|
include $(CHIBIOS)/os/ports/GCC/ARMCMx/LPC111x/port.mk
|
||||||
include $(CHIBIOS)/os/kernel/kernel.mk
|
include $(CHIBIOS)/os/kernel/kernel.mk
|
||||||
#include $(CHIBIOS)/test/test.mk
|
#include $(CHIBIOS)/test/test.mk
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ch.h"
|
#include "ch.h"
|
||||||
//#include "hal.h"
|
#include "hal.h"
|
||||||
//#include "test.h"
|
//#include "test.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -18,10 +18,10 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file templates/hal_lld.c
|
* @file LPC111x/hal_lld.c
|
||||||
* @brief HAL Driver subsystem low level driver source template.
|
* @brief LPC111x HAL subsystem low level driver source.
|
||||||
*
|
*
|
||||||
* @addtogroup HAL_LLD
|
* @addtogroup LPC111x_HAL
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -55,4 +55,11 @@ void hal_lld_init(void) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief LPC111x clocks and PLL initialization.
|
||||||
|
* @note All the involved constants come from the file @p board.h.
|
||||||
|
*/
|
||||||
|
void lpc111x_clock_init(void) {
|
||||||
|
}
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
|
@ -61,6 +61,7 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
void hal_lld_init(void);
|
void hal_lld_init(void);
|
||||||
|
void lpc111x_clock_init(void);
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
# List of all the LPC111x platform files.
|
||||||
|
PLATFORMSRC = ${CHIBIOS}/os/hal/platforms/LPC111x/hal_lld.c
|
||||||
|
|
||||||
|
# Required include directories
|
||||||
|
PLATFORMINC = ${CHIBIOS}/os/hal/platforms/LPC111x
|
Loading…
Reference in New Issue