Add assert macros to aid in debugging.

Adds libopencm3/cm3/assert.h header that provides assertion check macros
similar to those provided by the standard C library.

Thanks to Nicolas Schodet for help.
This commit is contained in:
Tomaz Solc
2012-09-24 12:54:53 +02:00
parent 7851515c5c
commit fc4047e4b4
12 changed files with 191 additions and 19 deletions

View File

@@ -28,8 +28,8 @@ CFLAGS = -O0 -g -Wall -Wextra -I../../include -fno-common \
-ffunction-sections -fdata-sections -MD
# ARFLAGS = rcsv
ARFLAGS = rcs
OBJS = gpio.o vector.o
OBJS = gpio.o vector.o assert.o
# VPATH += ../usb
VPATH += ../cm3
include ../Makefile.include