Skip to content

Commit d43594f

Browse files
committed
wiring.h include avr/io.h and WProgram.h include stdlib.h and string.h
1 parent e751b61 commit d43594f

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

targets/arduino/WProgram.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
#include <avr/io.h>
1+
#include <stdlib.h>
2+
#include <string.h>
3+
4+
#include <avr/interrupt.h>
5+
#include <avr/signal.h>
26

37
#include "wiring.h"
48
#include "HardwareSerial.h"
59

6-
#include <avr/interrupt.h>
7-
#include <avr/signal.h>

targets/arduino/wiring.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
#ifndef Wiring_h
2626
#define Wiring_h
2727

28+
#include <avr/io.h>
29+
2830
#ifdef __cplusplus
2931
extern "C"{
3032
#endif

0 commit comments

Comments
 (0)