git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1390 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
3ff9afd048
commit
06f43125b3
|
@ -57,7 +57,7 @@ CSRC = ${PORTSRC} \
|
|||
${TESTSRC} \
|
||||
${HALSRC} \
|
||||
${PLATFORMSRC} \
|
||||
${CHIBIOS}/os/io/platforms/LPC214x/lpc214x_ssp.c \
|
||||
${CHIBIOS}/os/hal/platforms/LPC214x/lpc214x_ssp.c \
|
||||
${CHIBIOS}/os/various/evtimer.c \
|
||||
board.c buzzer.c mmcsd.c main.c
|
||||
|
||||
|
|
|
@ -17,17 +17,15 @@
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <ch.h>
|
||||
#include <pal.h>
|
||||
#include <serial.h>
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
|
||||
#include "vic.h"
|
||||
#include "lpc214x_ssp.h"
|
||||
|
||||
#include "board.h"
|
||||
#include "mmcsd.h"
|
||||
#include "buzzer.h"
|
||||
|
||||
#define VAL_TC0_PRESCALER 0
|
||||
|
||||
/*
|
||||
* Timer 0 IRQ handling here.
|
||||
*/
|
||||
|
@ -44,18 +42,6 @@ static CH_IRQ_HANDLER(T0IrqHandler) {
|
|||
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.
|
||||
* This initialization is performed just after reset before BSS and DATA
|
||||
|
|
|
@ -20,8 +20,6 @@
|
|||
#ifndef _BOARD_H_
|
||||
#define _BOARD_H_
|
||||
|
||||
#include "lpc214x.h"
|
||||
|
||||
#define BOARD_OLIMEX_LCP_P2148
|
||||
|
||||
/*
|
||||
|
@ -32,8 +30,6 @@
|
|||
#define CCLK 48000000
|
||||
#define PCLK 12000000
|
||||
|
||||
#define VAL_TC0_PRESCALER 0
|
||||
|
||||
/*
|
||||
* Pins configuration for Olimex LPC-P2148.
|
||||
*
|
||||
|
|
|
@ -24,10 +24,10 @@
|
|||
* The driver also generates an event when the sound is done and the buzzer
|
||||
* goes silent.
|
||||
*/
|
||||
#include <ch.h>
|
||||
|
||||
#include "lpc214x.h"
|
||||
#include "board.h"
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
|
||||
#include "buzzer.h"
|
||||
|
||||
EventSource BuzzerSilentEventSource;
|
||||
|
|
|
@ -17,15 +17,13 @@
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <ch.h>
|
||||
#include <pal.h>
|
||||
#include <serial.h>
|
||||
#include <test.h>
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "test.h"
|
||||
#include "evtimer.h"
|
||||
|
||||
#include "board.h"
|
||||
#include "mmcsd.h"
|
||||
#include "buzzer.h"
|
||||
#include "evtimer.h"
|
||||
|
||||
#define BOTH_BUTTONS (PAL_PORT_BIT(PA_BUTTON1) | PAL_PORT_BIT(PA_BUTTON2))
|
||||
|
||||
|
|
|
@ -17,12 +17,10 @@
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <ch.h>
|
||||
#include <pal.h>
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
|
||||
#include "board.h"
|
||||
#include "lpc214x_ssp.h"
|
||||
|
||||
#include "mmcsd.h"
|
||||
|
||||
EventSource MMCInsertEventSource, MMCRemoveEventSource;
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
* @{
|
||||
*/
|
||||
|
||||
#include "ch.h""
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
|
||||
#include "lpc214x_ssp.h"
|
||||
|
|
Loading…
Reference in New Issue