Electric Potato
Well-known member
Hey all, I'm trying to run copyFromSD and I'm getting an error from DMAchannel.h:
C:\Program Files\Arduino\hardware\teensy\avr\cores\teensy3/DMAChannel.h:46:1: error: expected unqualified-id before 'extern'
extern "C" {
^
C:\Program Files\Arduino\hardware\teensy\avr\cores\teensy3/DMAChannel.h:46:1: error: expected constructor, destructor, or type conversion before 'extern'
Error compiling for board Teensy 3.2 / 3.1.
This is the line where it fails in DMAchannel.h:
#ifdef __cplusplus
extern "C" {
#endif
extern uint16_t dma_channel_allocated_mask;
#ifdef __cplusplus
}
#endif
It used to work fine in the past, now I'm running Arduino 1.8.5 and Teensyduino 1.42. Thanks for any help!
C:\Program Files\Arduino\hardware\teensy\avr\cores\teensy3/DMAChannel.h:46:1: error: expected unqualified-id before 'extern'
extern "C" {
^
C:\Program Files\Arduino\hardware\teensy\avr\cores\teensy3/DMAChannel.h:46:1: error: expected constructor, destructor, or type conversion before 'extern'
Error compiling for board Teensy 3.2 / 3.1.
This is the line where it fails in DMAchannel.h:
#ifdef __cplusplus
extern "C" {
#endif
extern uint16_t dma_channel_allocated_mask;
#ifdef __cplusplus
}
#endif
It used to work fine in the past, now I'm running Arduino 1.8.5 and Teensyduino 1.42. Thanks for any help!