Moving nvic code to common, adding F1 and F2 specific user interrupt definition headers.

This commit is contained in:
Fergus Noble
2011-09-15 16:26:39 -07:00
parent 97413a83f8
commit 3a426b34aa
5 changed files with 228 additions and 71 deletions

View File

@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libopencm3/stm32/f1/nvic.h>
#include <libopencm3/stm32/nvic.h>
void nvic_enable_irq(u8 irqn)
{

View File

@@ -28,7 +28,7 @@ CFLAGS = -Os -g -Wall -Wextra -I../../include -fno-common \
-ffunction-sections -fdata-sections -MD -DSTM32F2
# ARFLAGS = rcsv
ARFLAGS = rcs
OBJS = vector.o gpio.o systick.o i2c.o spi.o
OBJS = vector.o gpio.o systick.o i2c.o spi.o nvic.o
#VPATH += ../usb
VPATH += ../stm32_common