Skip to content

Commit 816e962

Browse files
author
harbaum
committed
Complain if yet unsupported output drivers are selected
1 parent dc4298e commit 816e962

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

ftduino/libraries/Ftduino/Ftduino.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <avr/pgmspace.h>
1010
#include <avr/interrupt.h>
1111

12+
#define IN_FTDUINO_LIB
1213
#include "Ftduino.h"
1314
#include "adc_table.h"
1415

ftduino/libraries/Ftduino/Ftduino.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99

1010
#include "Arduino.h"
1111

12+
#ifdef IN_FTDUINO_LIB
13+
#if !defined(OUTPUT_DRIVER_MC33879A) && !defined(OUTPUT_DRIVER_AUTO)
14+
#error "Only the MC33879A or AUTO output drivers are currently supported!"
15+
#endif
16+
#endif
17+
1218
#define STRINGIFY(name) #name
1319
#define CLASS_IRQ(name, vector) \
1420
static void name(void) asm(STRINGIFY(vector)) \

0 commit comments

Comments
 (0)