Sming Framework API
(1.2.0-1082-g40d412e2)
Toggle main menu visibility
Sming
Arch
Esp8266
Core
Esp8266/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
// File name selected for compatibility
12
13
#pragma once
14
15
#include "
esp8266_peri.h
"
16
17
extern
const
unsigned
int
A0
;
// Single ESP8266EX analog input pin (TOUT) 10 bit, 0..1v
18
19
#define NOT_A_PIN 0
20
#define NOT_A_PORT 0
21
#define NOT_ON_TIMER 0
22
23
#define PA 1
24
#define PB 2
25
#define PC 3
26
27
#define GPIO_REG_TYPE uint32_t
28
29
// We use maximum compatibility to standard Arduino logic.
30
31
#define digitalPinToPort(pin) (0)
32
#define digitalPinToBitMask(pin) (1UL << (pin))
33
#define digitalPinToTimer(pin) (NOT_ON_TIMER)
34
#define portOutputRegister(port) ((volatile uint32_t*)&GPO)
35
#define portInputRegister(port) ((volatile uint32_t*)&GPI)
36
#define portModeRegister(port) ((volatile uint32_t*)&GPE)
esp8266_peri.h
A0
const unsigned int A0
Definition:
Host/Core/pins_arduino.h:13
Generated by
1.8.13