Skip to content

Commit dee1cc2

Browse files
authored
Merge pull request #50 from arduino/fix-missing-include-nano-compat
Fix: Add missing include "NANO_compat.h"
2 parents 7df9f21 + ebc7933 commit dee1cc2

File tree

5 files changed

+12
-9
lines changed

5 files changed

+12
-9
lines changed

Diff for: cores/arduino/Arduino.h

+3
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ bool isDoubleBondedActive(uint8_t pin);
143143
#ifdef UNO_WIFI_REV2_328MODE
144144
#include <UNO_compat.h>
145145
#endif
146+
#ifdef AVR_NANO_4809_328MODE
147+
#include <NANO_compat.h>
148+
#endif
146149
#if defined(HAVE_HWSERIAL0) && defined(HAVE_CDCSERIAL)
147150
#error "Targets with both UART0 and CDC serial not supported"
148151
#endif

Diff for: cores/arduino/NANO_Compat.cpp renamed to cores/arduino/NANO_compat.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1717
*/
1818

19-
#include "NANO_Compat.h"
19+
#include "NANO_compat.h"
2020

2121
#ifdef AVR_NANO_4809_328MODE
2222

File renamed without changes.

Diff for: cores/test/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ set(TEST_TARGET testArduinoCore-megaavr)
2525

2626
set(TEST_SRCS
2727
src/test_main.cpp
28-
../arduino/NANO_Compat.cpp
28+
../arduino/NANO_compat.cpp
2929
)
3030

3131
##########################################################################

Diff for: cores/test/src/test_main.cpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
#define CATCH_CONFIG_MAIN
2020
#include <catch2/catch.hpp>
2121

22-
#include "../../arduino/NANO_Compat.h"
22+
#include "../../arduino/NANO_compat.h"
2323

2424
/*****************************************************************************/
2525

26-
SCENARIO("Testing Arduino Nano 4809 DDRB compatibility class", "NANO_Compat::DDRBClass") {
26+
SCENARIO("Testing Arduino Nano 4809 DDRB compatibility class", "NANO_compat::DDRBClass") {
2727
PORT_t portb, porte;
2828

2929
DDRBClass DDRB(&portb, &porte);
@@ -63,7 +63,7 @@ SCENARIO("Testing Arduino Nano 4809 DDRB compatibility class", "NANO_Compat::DDR
6363

6464
/*****************************************************************************/
6565

66-
SCENARIO("Testing Arduino Nano 4809 PORTB compatibility class", "NANO_Compat::PORTBClass") {
66+
SCENARIO("Testing Arduino Nano 4809 PORTB compatibility class", "NANO_compat::PORTBClass") {
6767
PORT_t portb, porte;
6868

6969
PORTBClass PORTB(&portb, &porte);
@@ -103,7 +103,7 @@ SCENARIO("Testing Arduino Nano 4809 PORTB compatibility class", "NANO_Compat::PO
103103

104104
/*****************************************************************************/
105105

106-
SCENARIO("Testing Arduino Nano 4809 DDRC compatibility class", "NANO_Compat::DDRCClass") {
106+
SCENARIO("Testing Arduino Nano 4809 DDRC compatibility class", "NANO_compat::DDRCClass") {
107107
PORT_t porta, portd;
108108

109109
DDRCClass DDRC(&porta, &portd);
@@ -149,7 +149,7 @@ SCENARIO("Testing Arduino Nano 4809 DDRC compatibility class", "NANO_Compat::DDR
149149

150150
/*****************************************************************************/
151151

152-
SCENARIO("Testing Arduino Nano 4809 PORTC compatibility class", "NANO_Compat::PORTCClass") {
152+
SCENARIO("Testing Arduino Nano 4809 PORTC compatibility class", "NANO_compat::PORTCClass") {
153153
PORT_t porta, portd;
154154

155155
PORTCClass PORTC(&porta, &portd);
@@ -195,7 +195,7 @@ SCENARIO("Testing Arduino Nano 4809 PORTC compatibility class", "NANO_Compat::PO
195195

196196
/*****************************************************************************/
197197

198-
SCENARIO("Testing Arduino Nano 4809 DDRD compatibility class", "NANO_Compat::DDRDClass") {
198+
SCENARIO("Testing Arduino Nano 4809 DDRD compatibility class", "NANO_compat::DDRDClass") {
199199
PORT_t porta, portb, portc, portf;
200200

201201
DDRDClass DDRD(&porta, &portb, &portc, &portf);
@@ -245,7 +245,7 @@ SCENARIO("Testing Arduino Nano 4809 DDRD compatibility class", "NANO_Compat::DDR
245245

246246
/*****************************************************************************/
247247

248-
SCENARIO("Testing Arduino Nano 4809 PORTD compatibility class", "NANO_Compat::PORTDClass") {
248+
SCENARIO("Testing Arduino Nano 4809 PORTD compatibility class", "NANO_compat::PORTDClass") {
249249
PORT_t porta, portb, portc, portf;
250250

251251
PORTDClass PORTD(&porta, &portb, &portc, &portf);

0 commit comments

Comments
 (0)