forked from espressif/arduino-esp32
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(3rd party board): Adding ViraLink IoT Gate Boards (espressif#9841)
* feat(board): Adding ViraLink IoT Gate Boards * feat(board): Adding ViraLink IoT Gate Boards * feat(board): Adding ViraLink IoT Gate Boards * feat(board): Adding ViraLink IoT Gate Boards added spi pins * feat(board): Adding ViraLink IoT Gate Boards added spi pins * ci(pre-commit): Apply automatic fixes --------- Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
- Loading branch information
1 parent
777d0d7
commit 09b30e9
Showing
3 changed files
with
292 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,46 @@ | ||
#ifndef Pins_Arduino_h | ||
#define Pins_Arduino_h | ||
|
||
#include <stdint.h> | ||
|
||
static const uint8_t LED_BUILTIN = 5; | ||
#define BUILTIN_LED LED_BUILTIN | ||
#define LED_BUILTIN LED_BUILTIN | ||
|
||
static const uint8_t RESET_KEY = 0; | ||
|
||
static const uint8_t RS485_TX = 32; | ||
static const uint8_t RS485_RX = 35; | ||
|
||
static const uint8_t SDA = 4; | ||
static const uint8_t SCL = 16; | ||
|
||
static const uint8_t BUZZER = 12; | ||
static const uint8_t RELAY1_PIN = 2; | ||
static const uint8_t RELAY2_PIN = 13; | ||
static const uint8_t RELAY3_PIN = 14; | ||
static const uint8_t RELAY4_PIN = 33; | ||
|
||
static const uint8_t Wiegand1_D0 = 15; | ||
static const uint8_t Wiegand1_D1 = 34; | ||
|
||
static const uint8_t Wiegand2_D0 = 39; | ||
static const uint8_t Wiegand2_D1 = 36; | ||
|
||
static const uint8_t ETH_CLK_OUT = 17; | ||
|
||
static const uint8_t EMAC_MDIO = 18; | ||
static const uint8_t EMAC_TXD0 = 19; | ||
static const uint8_t EMAC_TX_EN = 21; | ||
static const uint8_t EMAC_TXD1 = 22; | ||
static const uint8_t EMAC_MDC = 23; | ||
static const uint8_t EMAC_RXD0 = 25; | ||
static const uint8_t EMAC_RXD1 = 26; | ||
static const uint8_t EMAC_RXD_DV = 27; | ||
|
||
static const uint8_t SS = -1; | ||
static const uint8_t MOSI = -1; | ||
static const uint8_t SCK = -1; | ||
static const uint8_t MISO = -1; | ||
|
||
#endif /* Pins_Arduino_h */ |
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,50 @@ | ||
#ifndef Pins_Arduino_h | ||
#define Pins_Arduino_h | ||
|
||
#include <stdint.h> | ||
|
||
static const uint8_t RESET_KEY = 0; | ||
|
||
static const uint8_t RF433 = 5; | ||
|
||
static const uint8_t RS485_TX = 32; | ||
static const uint8_t RS485_RX = 35; | ||
|
||
static const uint8_t GSM1_TX = 15; | ||
static const uint8_t GSM1_RX = 34; | ||
|
||
static const uint8_t GSM2_TX = 32; | ||
static const uint8_t GSM2_RX = 35; | ||
|
||
static const uint8_t GSM_PWR = 33; | ||
|
||
static const uint8_t SDA = 4; | ||
static const uint8_t SCL = 16; | ||
|
||
static const uint8_t EXT1 = 12; | ||
static const uint8_t EXT2 = 13; | ||
static const uint8_t PCF1_INT = 14; | ||
|
||
static const uint8_t Wiegand1_D0 = 15; | ||
static const uint8_t Wiegand1_D1 = 34; | ||
|
||
static const uint8_t Wiegand2_D0 = 39; | ||
static const uint8_t Wiegand2_D1 = 36; | ||
|
||
static const uint8_t ETH_CLK_OUT = 17; | ||
|
||
static const uint8_t EMAC_MDIO = 18; | ||
static const uint8_t EMAC_TXD0 = 19; | ||
static const uint8_t EMAC_TX_EN = 21; | ||
static const uint8_t EMAC_TXD1 = 22; | ||
static const uint8_t EMAC_MDC = 23; | ||
static const uint8_t EMAC_RXD0 = 25; | ||
static const uint8_t EMAC_RXD1 = 26; | ||
static const uint8_t EMAC_RXD_DV = 27; | ||
|
||
static const uint8_t SS = -1; | ||
static const uint8_t MOSI = -1; | ||
static const uint8_t SCK = -1; | ||
static const uint8_t MISO = -1; | ||
|
||
#endif /* Pins_Arduino_h */ |