overhauled documentation

includes minor refactoring in example code and modification of how the
generic and the tinygecko specific vector.h go together (bringing it in
line with stm32/f1's memorymap.h)
This commit is contained in:
chrysn
2012-02-26 03:40:18 +01:00
parent 08918902ab
commit 2275ed7b0c
10 changed files with 132 additions and 38 deletions

View File

@@ -19,6 +19,7 @@
##
LIBNAME = libopencm3_efm32tinygecko
FAMILY = TINYGECKO
PREFIX ?= arm-none-eabi
#PREFIX ?= arm-elf
@@ -26,7 +27,7 @@ CC = $(PREFIX)-gcc
AR = $(PREFIX)-ar
CFLAGS = -Os -g -Wall -Wextra -I../../../include -fno-common \
-mcpu=cortex-m3 -mthumb -Wstrict-prototypes \
-ffunction-sections -fdata-sections -MD -DSTM32F1
-ffunction-sections -fdata-sections -MD -D$(FAMILY)
# ARFLAGS = rcsv
ARFLAGS = rcs
OBJS = vector.o devicerevision.o

View File

@@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libopencm3/efm32/tinygecko/vector.h>
#include <libopencm3/efm32/vector.h>
#define WEAK __attribute__ ((weak))