forked from espressif/esp-idf
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First addition of ESP320 support (espressif#19)
* First addition of ESP320 support * Updated maximum data size.
- Loading branch information
1 parent
4865ed0
commit bd1dcb8
Showing
2 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#ifndef Pins_Arduino_h | ||
#define Pins_Arduino_h | ||
|
||
|
||
#define digitalPinToPort(pin) (0) | ||
#define digitalPinToBitMask(pin) (1UL << (pin)) | ||
#define digitalPinToTimer(pin) (0) | ||
#define portOutputRegister(port) | ||
#define portInputRegister(port) | ||
#define portModeRegister(port) | ||
|
||
#define NOT_A_PIN -1 | ||
#define NOT_A_PORT -1 | ||
#define NOT_AN_INTERRUPT -1 | ||
#define NOT_ON_TIMER 0 | ||
|
||
#define EXTERNAL_NUM_INTERRUPTS 11 | ||
#define NUM_DIGITAL_PINS 12 | ||
#define NUM_ANALOG_INPUTS 5 | ||
|
||
#define analogInputToDigitalPin(p) | ||
#define digitalPinToInterrupt(p) | ||
#define digitalPinHasPWM(p) | ||
|
||
static const uint8_t SDA = 2; | ||
static const uint8_t SCL = 14; | ||
|
||
static const uint8_t SS = 15; | ||
static const uint8_t MOSI = 13; | ||
static const uint8_t MISO = 12; | ||
static const uint8_t SCK = 14; | ||
|
||
#endif /* Pins_Arduino_h */ |