Moving ARDUINO_MAIN from main.cpp to wiring_digital.c and hiding PA, PB, etc.
http://code.google.com/p/arduino/issues/detail?id=677 http://code.google.com/p/arduino/issues/detail?id=691
This commit is contained in:
parent
85d70c4314
commit
8d48010edf
|
@ -148,6 +148,7 @@ extern const uint8_t PROGMEM digital_pin_to_timer_PGM[];
|
||||||
#define NOT_A_PIN 0
|
#define NOT_A_PIN 0
|
||||||
#define NOT_A_PORT 0
|
#define NOT_A_PORT 0
|
||||||
|
|
||||||
|
#ifdef ARDUINO_MAIN
|
||||||
#define PA 1
|
#define PA 1
|
||||||
#define PB 2
|
#define PB 2
|
||||||
#define PC 3
|
#define PC 3
|
||||||
|
@ -159,6 +160,7 @@ extern const uint8_t PROGMEM digital_pin_to_timer_PGM[];
|
||||||
#define PJ 10
|
#define PJ 10
|
||||||
#define PK 11
|
#define PK 11
|
||||||
#define PL 12
|
#define PL 12
|
||||||
|
#endif
|
||||||
|
|
||||||
#define NOT_ON_TIMER 0
|
#define NOT_ON_TIMER 0
|
||||||
#define TIMER0A 1
|
#define TIMER0A 1
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
#define ARDUINO_MAIN
|
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
$Id: wiring.c 248 2007-02-03 15:36:30Z mellis $
|
$Id: wiring.c 248 2007-02-03 15:36:30Z mellis $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define ARDUINO_MAIN
|
||||||
#include "wiring_private.h"
|
#include "wiring_private.h"
|
||||||
#include "pins_arduino.h"
|
#include "pins_arduino.h"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue