git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1390 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2009-12-08 08:56:41 +00:00
parent 3ff9afd048
commit 06f43125b3
7 changed files with 15 additions and 37 deletions

View File

@ -57,7 +57,7 @@ CSRC = ${PORTSRC} \
${TESTSRC} \ ${TESTSRC} \
${HALSRC} \ ${HALSRC} \
${PLATFORMSRC} \ ${PLATFORMSRC} \
${CHIBIOS}/os/io/platforms/LPC214x/lpc214x_ssp.c \ ${CHIBIOS}/os/hal/platforms/LPC214x/lpc214x_ssp.c \
${CHIBIOS}/os/various/evtimer.c \ ${CHIBIOS}/os/various/evtimer.c \
board.c buzzer.c mmcsd.c main.c board.c buzzer.c mmcsd.c main.c

View File

@ -17,17 +17,15 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <ch.h> #include "ch.h"
#include <pal.h> #include "hal.h"
#include <serial.h>
#include "vic.h"
#include "lpc214x_ssp.h" #include "lpc214x_ssp.h"
#include "board.h"
#include "mmcsd.h" #include "mmcsd.h"
#include "buzzer.h" #include "buzzer.h"
#define VAL_TC0_PRESCALER 0
/* /*
* Timer 0 IRQ handling here. * Timer 0 IRQ handling here.
*/ */
@ -44,18 +42,6 @@ static CH_IRQ_HANDLER(T0IrqHandler) {
CH_IRQ_EPILOGUE(); CH_IRQ_EPILOGUE();
} }
/*
* Digital I/O ports static configuration as defined in @p board.h.
*/
static const LPC214xFIOConfig config =
{
VAL_PINSEL0,
VAL_PINSEL1,
VAL_PINSEL2,
{VAL_FIO0PIN, VAL_FIO0DIR},
{VAL_FIO1PIN, VAL_FIO1DIR}
};
/* /*
* Early initialization code. * Early initialization code.
* This initialization is performed just after reset before BSS and DATA * This initialization is performed just after reset before BSS and DATA

View File

@ -20,8 +20,6 @@
#ifndef _BOARD_H_ #ifndef _BOARD_H_
#define _BOARD_H_ #define _BOARD_H_
#include "lpc214x.h"
#define BOARD_OLIMEX_LCP_P2148 #define BOARD_OLIMEX_LCP_P2148
/* /*
@ -32,8 +30,6 @@
#define CCLK 48000000 #define CCLK 48000000
#define PCLK 12000000 #define PCLK 12000000
#define VAL_TC0_PRESCALER 0
/* /*
* Pins configuration for Olimex LPC-P2148. * Pins configuration for Olimex LPC-P2148.
* *

View File

@ -24,10 +24,10 @@
* The driver also generates an event when the sound is done and the buzzer * The driver also generates an event when the sound is done and the buzzer
* goes silent. * goes silent.
*/ */
#include <ch.h>
#include "lpc214x.h" #include "ch.h"
#include "board.h" #include "hal.h"
#include "buzzer.h" #include "buzzer.h"
EventSource BuzzerSilentEventSource; EventSource BuzzerSilentEventSource;

View File

@ -17,15 +17,13 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <ch.h> #include "ch.h"
#include <pal.h> #include "hal.h"
#include <serial.h> #include "test.h"
#include <test.h> #include "evtimer.h"
#include "board.h"
#include "mmcsd.h" #include "mmcsd.h"
#include "buzzer.h" #include "buzzer.h"
#include "evtimer.h"
#define BOTH_BUTTONS (PAL_PORT_BIT(PA_BUTTON1) | PAL_PORT_BIT(PA_BUTTON2)) #define BOTH_BUTTONS (PAL_PORT_BIT(PA_BUTTON1) | PAL_PORT_BIT(PA_BUTTON2))

View File

@ -17,12 +17,10 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <ch.h> #include "ch.h"
#include <pal.h> #include "hal.h"
#include "board.h"
#include "lpc214x_ssp.h" #include "lpc214x_ssp.h"
#include "mmcsd.h" #include "mmcsd.h"
EventSource MMCInsertEventSource, MMCRemoveEventSource; EventSource MMCInsertEventSource, MMCRemoveEventSource;

View File

@ -24,7 +24,7 @@
* @{ * @{
*/ */
#include "ch.h"" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "lpc214x_ssp.h" #include "lpc214x_ssp.h"