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

master
gdisirio 2009-12-18 21:00:27 +00:00
parent b07970d18c
commit ce5974e5de
9 changed files with 61 additions and 29 deletions

View File

@ -20,6 +20,13 @@
#ifndef _BOARD_H_
#define _BOARD_H_
/*
* Setup for the Olimex LCP-P2148 proto board.
*/
/*
* Board identifier.
*/
#define BOARD_OLIMEX_AVR_CAN
/*

View File

@ -0,0 +1,5 @@
# List of all the board related files.
BOARDSRC = ${CHIBIOS}/boards/OLIMEX_AVR_CAN/board.c
# Required include directories
BOARDINC = ${CHIBIOS}/boards/OLIMEX_AVR_CAN

View File

@ -20,6 +20,13 @@
#ifndef _BOARD_H_
#define _BOARD_H_
/*
* Setup for the Olimex LCP-P2148 proto board.
*/
/*
* Board identifier.
*/
#define BOARD_OLIMEX_AVR_MT_128
/* PA7 RLY DS B5 B4 B3 B2 B1

View File

@ -0,0 +1,5 @@
# List of all the board related files.
BOARDSRC = ${CHIBIOS}/boards/OLIMEX_AVR_MT_128/board.c
# Required include directories
BOARDINC = ${CHIBIOS}/boards/OLIMEX_AVR_MT_128

View File

@ -81,21 +81,23 @@ OBJDIR = .
# Imported source files
CHIBIOS = ../..
include ${CHIBIOS}/os/hal/hal.mk
include ${CHIBIOS}/os/hal/platforms/AVR/platform.mk
include ${CHIBIOS}/os/ports/GCC/AVR/port.mk
include ${CHIBIOS}/os/kernel/kernel.mk
include ${CHIBIOS}/test/test.mk
include $(CHIBIOS)/boards/OLIMEX_AVR_CAN/board.mk
include $(CHIBIOS)/os/hal/platforms/AVR/platform.mk
include $(CHIBIOS)/os/hal/hal.mk
include $(CHIBIOS)/os/ports/GCC/AVR/port.mk
include $(CHIBIOS)/os/kernel/kernel.mk
include $(CHIBIOS)/test/test.mk
# List C source files here. (C dependencies are automatically generated.)
SRC = ${PORTSRC} \
${KERNSRC} \
${TESTSRC} \
${HALSRC} \
${PLATFORMSRC} \
${CHIBIOS}/os/various/evtimer.c \
board.c main.c
SRC = $(PORTSRC) \
$(KERNSRC) \
$(TESTSRC) \
$(HALSRC) \
$(PLATFORMSRC) \
$(BOARDSRC) \
$(CHIBIOS)/os/various/evtimer.c \
main.c
# List C++ source files here. (C dependencies are automatically generated.)
@ -129,8 +131,9 @@ DEBUG = dwarf-2
# Each directory must be seperated by a space.
# Use forward slashes for directory separators.
# For a directory that has spaces, enclose it in quotes.
EXTRAINCDIRS = $(PORTINC) $(KERNINC) $(TESTINC) $(HALINC) $(PLATFORMINC) \
${CHIBIOS}/os/various
EXTRAINCDIRS = $(PORTINC) $(KERNINC) $(TESTINC) \
$(HALINC) $(PLATFORMINC) $(BOARDINC) \
$(CHIBIOS)/os/various
# Compiler flag to set the C Standard level.

View File

@ -81,21 +81,23 @@ OBJDIR = .
# Imported source files
CHIBIOS = ../..
include ${CHIBIOS}/os/hal/hal.mk
include ${CHIBIOS}/os/hal/platforms/AVR/platform.mk
include ${CHIBIOS}/os/ports/GCC/AVR/port.mk
include ${CHIBIOS}/os/kernel/kernel.mk
include ${CHIBIOS}/test/test.mk
include $(CHIBIOS)/boards/OLIMEX_AVR_MT_128/board.mk
include $(CHIBIOS)/os/hal/platforms/AVR/platform.mk
include $(CHIBIOS)/os/hal/hal.mk
include $(CHIBIOS)/os/ports/GCC/AVR/port.mk
include $(CHIBIOS)/os/kernel/kernel.mk
include $(CHIBIOS)/test/test.mk
# List C source files here. (C dependencies are automatically generated.)
SRC = ${PORTSRC} \
${KERNSRC} \
${TESTSRC} \
${HALSRC} \
${PLATFORMSRC} \
${CHIBIOS}/os/various/evtimer.c \
lcd.c board.c main.c
SRC = $(PORTSRC) \
$(KERNSRC) \
$(TESTSRC) \
$(HALSRC) \
$(PLATFORMSRC) \
$(BOARDSRC) \
$(CHIBIOS)/os/various/evtimer.c \
lcd.c main.c
# List C++ source files here. (C dependencies are automatically generated.)
@ -129,8 +131,9 @@ DEBUG = dwarf-2
# Each directory must be seperated by a space.
# Use forward slashes for directory separators.
# For a directory that has spaces, enclose it in quotes.
EXTRAINCDIRS = $(PORTINC) $(KERNINC) $(TESTINC) $(HALINC) $(PLATFORMINC) \
${CHIBIOS}/os/various
EXTRAINCDIRS = $(PORTINC) $(KERNINC) $(TESTINC) \
$(HALINC) $(PLATFORMINC) $(BOARDINC) \
$(CHIBIOS)/os/various
# Compiler flag to set the C Standard level.

View File

@ -9,9 +9,11 @@
- NEW: Added custom mode settings to the STM32 PAL driver:
- PAL_MODE_STM32_ALTERNATE_PUSHPULL
- PAL_MODE_STM32_ALTERNATE_OPENDRAIN
- NEW: Included all the board-specific files into a new directories structure
under ./boards, this allows to not duplicate the board files into each demo.
- CHANGE: Changes to the PWM driver model, made it simpler.
- CHANGE: The STM32 device drivers now no more configure the I/O pins on
initialization. Pins mush be configured in board.h, the change was required
initialization. Pins must be configured in board.h, the change was required
in order to support the STM32 AFIO remapping feature.
*** 1.3.5 ***