Host/Core/pins_arduino.h
Go to the documentation of this file.
1 /****
2  * Sming Framework Project - Open Source framework for high efficiency native ESP8266 development.
3  * Created 2015 by Skurydin Alexey
4  * http://github.com/SmingHub/Sming
5  * All files of the Sming Core are provided under the LGPL v3 license.
6  *
7  * pins_arduino.h
8  *
9  ****/
10 
11 #pragma once
12 
13 const uint16_t A0 = 9999;
14 
15 //#define NOT_A_PIN 0
16 //#define NOT_A_PORT 0
17 //#define NOT_ON_TIMER 0
18 //
19 //#define PA 1
20 //#define PB 2
21 //#define PC 3
22 
23 using GPIO_REG_TYPE = uint32_t;
24 
25 // We use maximum compatibility to standard Arduino logic.
26 
27 //#define digitalPinToPort(pin) (0)
28 //#define digitalPinToBitMask(pin) (1UL << (pin))
29 //#define digitalPinToTimer(pin) (NOT_ON_TIMER)
30 //#define portOutputRegister(port) ((volatile uint32_t*)&GPO)
31 //#define portInputRegister(port) ((volatile uint32_t*)&GPI)
32 //#define portModeRegister(port) ((volatile uint32_t*)&GPE)
const uint16_t A0
Definition: Host/Core/pins_arduino.h:13
uint32_t GPIO_REG_TYPE
Definition: Host/Core/pins_arduino.h:23