Unverified Commit 057eac66 authored by a sapuppo's avatar a sapuppo Committed by GitHub

new industrial boards namino rosso / namino arancio (#8582)

* new industrial boards namino rosso / namino arancio

* added missing definitions
parent c814a234
This diff is collapsed.
//
// Copyright (c) 2023 Namino Team, version: 1.0.19 @ 2023-07-24
//
//
#ifndef Pins_Arduino_h
#define Pins_Arduino_h
#include <stdint.h>
#include "soc/soc_caps.h"
#define USB_VID 0x303a
#define USB_PID 0x1001
#define NAMINO_ARANCIO_BOARD
#define NUM_DIGITAL_PINS SOC_GPIO_PIN_COUNT // GPIO 0..48
#define NUM_ANALOG_INPUTS 20 // GPIO 1..20
#define EXTERNAL_NUM_INTERRUPTS NUM_DIGITAL_PINS // All GPIOs
#define analogInputToDigitalPin(p) (((p)<NUM_ANALOG_INPUTS)?(analogChannelToDigitalPin(p)):-1)
#define digitalPinToInterrupt(p) (((p)<NUM_DIGITAL_PINS)?(p):NOT_AN_INTERRUPT)
#define digitalPinHasPWM(p) (p < NUM_DIGITAL_PINS)
/* Begin Pins on ESP32-S3-WROOM-1U-N4R8 */
static const uint8_t GPIO4 = 4;
static const uint8_t GPIO5 = 5;
static const uint8_t GPIO6 = 6;
static const uint8_t GPIO7 = 7;
static const uint8_t GPIO15 = 15;
static const uint8_t GPIO16 = 16;
static const uint8_t GPIO17 = 17;
static const uint8_t GPIO18 = 18;
static const uint8_t GPIO8 = 8;
static const uint8_t GPIO19 = 19;
static const uint8_t GPIO20 = 20;
static const uint8_t GPIO3 = 3;
static const uint8_t GPIO46 = 46;
static const uint8_t GPIO9 = 9;
static const uint8_t GPIO10 = 10;
static const uint8_t GPIO11 = 11;
static const uint8_t GPIO12 = 12;
static const uint8_t GPIO13 = 13;
static const uint8_t GPIO14 = 14;
static const uint8_t GPIO21 = 21;
static const uint8_t GPIO47 = 47;
static const uint8_t GPIO48 = 48;
static const uint8_t GPIO45 = 45;
static const uint8_t GPIO0 = 0;
static const uint8_t GPIO35 = 35;
static const uint8_t GPIO36 = 36;
static const uint8_t GPIO37 = 37;
static const uint8_t GPIO38 = 38;
static const uint8_t GPIO39 = 39;
static const uint8_t GPIO40 = 40;
static const uint8_t GPIO41 = 41;
static const uint8_t GPIO42 = 42;
static const uint8_t GPIO44 = 44;
static const uint8_t GPIO43 = 43;
static const uint8_t GPIO2 = 2;
static const uint8_t GPIO1 = 1;
static const uint8_t RESET_ADD_ON = GPIO46;
static const uint8_t SS = GPIO10;
static const uint8_t MOSI = GPIO11;
static const uint8_t MISO = GPIO13;
static const uint8_t SCK = GPIO12;
// SPI SD CARD
static const uint8_t CS_SDCARD = GPIO2;
// prog pins
static const uint8_t BOOT_MODE = GPIO47;
static const uint8_t ISP_TX = GPIO17;
static const uint8_t ISP_RX = GPIO18;
static const uint8_t NM_RESET = GPIO48;
/* End Pins on ESP32-S3-WROOM-1U-N4R8 */
/* Begin Analog Pins on ESP32-S3-WROOM-1U-N4R8 */
static const uint8_t ADC1_CH3 = GPIO4;
static const uint8_t ADC1_CH4 = GPIO5;
static const uint8_t ADC1_CH5 = GPIO6;
static const uint8_t ADC1_CH6 = GPIO7;
static const uint8_t ADC2_CH4 = GPIO15;
static const uint8_t ADC2_CH5 = GPIO16;
static const uint8_t ADC2_CH6 = GPIO17;
static const uint8_t ADC2_CH7 = GPIO18;
static const uint8_t ADC1_CH7 = GPIO8;
static const uint8_t ADC2_CH8 = GPIO19;
static const uint8_t ADC2_CH9 = GPIO20;
static const uint8_t ADC1_CH2 = GPIO3;
static const uint8_t ADC1_CH8 = GPIO9;
static const uint8_t ADC1_CH9 = GPIO10;
static const uint8_t ADC2_CH0 = GPIO11;
static const uint8_t ADC2_CH1 = GPIO12;
static const uint8_t ADC2_CH2 = GPIO13;
static const uint8_t ADC2_CH3 = GPIO14;
static const uint8_t ADC1_CH1 = GPIO2;
static const uint8_t ADC1_CH0 = GPIO1;
/* End Analog Pins on ESP32-S3-WROOM-1U-N4R8 */
/* Begin Touch Pins on ESP32-S3-WROOM-1U-N4R8 */
static const uint8_t TOUCH4 = GPIO4;
static const uint8_t TOUCH5 = GPIO5;
static const uint8_t TOUCH6 = GPIO6;
static const uint8_t TOUCH7 = GPIO7;
static const uint8_t TOUCH8 = GPIO8;
static const uint8_t TOUCH3 = GPIO3;
static const uint8_t TOUCH9 = GPIO9;
static const uint8_t TOUCH10 = GPIO10;
static const uint8_t TOUCH11 = GPIO11;
static const uint8_t TOUCH12 = GPIO12;
static const uint8_t TOUCH13 = GPIO13;
static const uint8_t TOUCH14 = GPIO14;
static const uint8_t TOUCH2 = GPIO2;
static const uint8_t TOUCH1 = GPIO1;
/* End Touch Pins on ESP32-S3-WROOM-1U-N4R8 */
static const uint8_t TX = GPIO17;
static const uint8_t RX = GPIO18;
static const uint8_t SDA = GPIO1;
static const uint8_t SCL = GPIO0;
static const uint8_t NAMINO_ARANCIO_I2C_SDA = SDA;
static const uint8_t NAMINO_ARANCIO_I2C_SCL = SCL;
static const uint8_t NM_I2C_SDA = SDA;
static const uint8_t NM_I2C_SCL = SCL;
static const uint8_t A0 = ADC1_CH0;
static const uint8_t A1 = ADC1_CH1;
static const uint8_t A2 = ADC1_CH2;
static const uint8_t A3 = ADC1_CH3;
static const uint8_t A4 = ADC1_CH4;
static const uint8_t A5 = ADC1_CH5;
static const uint8_t A6 = ADC1_CH6;
static const uint8_t A7 = ADC1_CH7;
static const uint8_t A8 = ADC2_CH0;
static const uint8_t A9 = ADC2_CH1;
static const uint8_t A10 = ADC2_CH2;
static const uint8_t A11 = ADC2_CH3;
static const uint8_t A12 = ADC2_CH4;
static const uint8_t A13 = ADC2_CH5;
static const uint8_t A14 = ADC2_CH6;
static const uint8_t A15 = ADC2_CH7;
static const uint8_t DAC1 = 0;
static const uint8_t DAC2 = 0;
/* Begin Arduino naming */
static const uint8_t RESET_ARDUINO = GPIO46;
static const uint8_t PC0 = GPIO3;
static const uint8_t PC1 = GPIO4;
static const uint8_t PC2 = GPIO5;
static const uint8_t PC3 = GPIO6;
static const uint8_t PC4 = GPIO7;
static const uint8_t PC5 = GPIO8;
static const uint8_t PB5 = GPIO35;
static const uint8_t PB4 = GPIO36;
static const uint8_t PB3 = GPIO37;
static const uint8_t PB2 = GPIO38;
static const uint8_t PB1 = GPIO39;
static const uint8_t PB0 = GPIO40;
static const uint8_t PD7 = GPIO41;
static const uint8_t PD6 = GPIO42;
static const uint8_t PD5 = GPIO21;
static const uint8_t PD4 = GPIO16;
static const uint8_t PD3 = GPIO14;
static const uint8_t PD2 = GPIO9;
static const uint8_t PD1 = GPIO17;
static const uint8_t PD0 = GPIO18;
/* End Arduino naming */
/* Begin alternate naming */
static const uint8_t J1_io0 = SCL;
static const uint8_t J2_35 = PB5;
static const uint8_t J2_36 = PB4;
static const uint8_t J2_37 = PB3;
static const uint8_t J2_38 = PB2;
static const uint8_t J2_39 = PB1;
static const uint8_t J2_40 = PB0;
static const uint8_t J3_io8 = PD7;
static const uint8_t J3_7 = PD6;
static const uint8_t J3_21 = PD5;
static const uint8_t J3_16 = PD4;
static const uint8_t J3_14 = PD3;
static const uint8_t J3_9 = PD2;
static const uint8_t J3_17 = TX;
static const uint8_t J3_18 = RX;
static const uint8_t J4_cs_io2 = CS_SDCARD;
static const uint8_t J4_sclk = SCK;
static const uint8_t J4_mosi = MOSI;
static const uint8_t J4_miso = MISO;
static const uint8_t J9_io3 = PC0;
static const uint8_t J9_4 = PC1;
static const uint8_t J9_5 = PC2;
static const uint8_t J9_6 = PC3;
static const uint8_t J9_7 = PC4;
static const uint8_t J9_8 = PC5;
static const uint8_t J10_enc_A = 0;
static const uint8_t J10_enc_B = 0;
static const uint8_t J10_sw = 0;
/* End alternate naming */
#endif /* Pins_Arduino_h */
//
// Copyright (c) 2023 Namino Team, version: 1.0.19 @ 2023-07-24
//
//
#ifndef Pins_Arduino_h
#define Pins_Arduino_h
#include <stdint.h>
#include "soc/soc_caps.h"
#define USB_VID 0x303a
#define USB_PID 0x1001
#define NAMINO_ROSSO_BOARD
#define NUM_DIGITAL_PINS SOC_GPIO_PIN_COUNT // GPIO 0..48
#define NUM_ANALOG_INPUTS 20 // GPIO 1..20
#define EXTERNAL_NUM_INTERRUPTS NUM_DIGITAL_PINS // All GPIOs
#define analogInputToDigitalPin(p) (((p)<NUM_ANALOG_INPUTS)?(analogChannelToDigitalPin(p)):-1)
#define digitalPinToInterrupt(p) (((p)<NUM_DIGITAL_PINS)?(p):NOT_AN_INTERRUPT)
#define digitalPinHasPWM(p) (p < NUM_DIGITAL_PINS)
/* Begin Pins on ESP32-S3-WROOM-1U-N4R8 */
static const uint8_t GPIO4 = 4;
static const uint8_t GPIO5 = 5;
static const uint8_t GPIO6 = 6;
static const uint8_t GPIO7 = 7;
static const uint8_t GPIO15 = 15;
static const uint8_t GPIO16 = 16;
static const uint8_t GPIO17 = 17;
static const uint8_t GPIO18 = 18;
static const uint8_t GPIO8 = 8;
static const uint8_t GPIO19 = 19;
static const uint8_t GPIO20 = 20;
static const uint8_t GPIO3 = 3;
static const uint8_t GPIO46 = 46;
static const uint8_t GPIO9 = 9;
static const uint8_t GPIO10 = 10;
static const uint8_t GPIO11 = 11;
static const uint8_t GPIO12 = 12;
static const uint8_t GPIO13 = 13;
static const uint8_t GPIO14 = 14;
static const uint8_t GPIO21 = 21;
static const uint8_t GPIO47 = 47;
static const uint8_t GPIO48 = 48;
static const uint8_t GPIO45 = 45;
static const uint8_t GPIO0 = 0;
static const uint8_t GPIO35 = 35;
static const uint8_t GPIO36 = 36;
static const uint8_t GPIO37 = 37;
static const uint8_t GPIO38 = 38;
static const uint8_t GPIO39 = 39;
static const uint8_t GPIO40 = 40;
static const uint8_t GPIO41 = 41;
static const uint8_t GPIO42 = 42;
static const uint8_t GPIO44 = 44;
static const uint8_t GPIO43 = 43;
static const uint8_t GPIO2 = 2;
static const uint8_t GPIO1 = 1;
static const uint8_t RESET_ADD_ON = GPIO46;
static const uint8_t SS = GPIO10;
static const uint8_t MOSI = GPIO11;
static const uint8_t MISO = GPIO13;
static const uint8_t SCK = GPIO12;
// SPI SD CARD
static const uint8_t CS_SDCARD = GPIO2;
// prog pins
static const uint8_t BOOT_MODE = GPIO47;
static const uint8_t ISP_TX = GPIO17;
static const uint8_t ISP_RX = GPIO18;
static const uint8_t NM_RESET = GPIO48;
/* End Pins on ESP32-S3-WROOM-1U-N4R8 */
/* Begin Analog Pins on ESP32-S3-WROOM-1U-N4R8 */
static const uint8_t ADC1_CH3 = GPIO4;
static const uint8_t ADC1_CH4 = GPIO5;
static const uint8_t ADC1_CH5 = GPIO6;
static const uint8_t ADC1_CH6 = GPIO7;
static const uint8_t ADC2_CH4 = GPIO15;
static const uint8_t ADC2_CH5 = GPIO16;
static const uint8_t ADC2_CH6 = GPIO17;
static const uint8_t ADC2_CH7 = GPIO18;
static const uint8_t ADC1_CH7 = GPIO8;
static const uint8_t ADC2_CH8 = GPIO19;
static const uint8_t ADC2_CH9 = GPIO20;
static const uint8_t ADC1_CH2 = GPIO3;
static const uint8_t ADC1_CH8 = GPIO9;
static const uint8_t ADC1_CH9 = GPIO10;
static const uint8_t ADC2_CH0 = GPIO11;
static const uint8_t ADC2_CH1 = GPIO12;
static const uint8_t ADC2_CH2 = GPIO13;
static const uint8_t ADC2_CH3 = GPIO14;
static const uint8_t ADC1_CH1 = GPIO2;
static const uint8_t ADC1_CH0 = GPIO1;
/* End Analog Pins on ESP32-S3-WROOM-1U-N4R8 */
/* Begin Touch Pins on ESP32-S3-WROOM-1U-N4R8 */
static const uint8_t TOUCH4 = GPIO4;
static const uint8_t TOUCH5 = GPIO5;
static const uint8_t TOUCH6 = GPIO6;
static const uint8_t TOUCH7 = GPIO7;
static const uint8_t TOUCH8 = GPIO8;
static const uint8_t TOUCH3 = GPIO3;
static const uint8_t TOUCH9 = GPIO9;
static const uint8_t TOUCH10 = GPIO10;
static const uint8_t TOUCH11 = GPIO11;
static const uint8_t TOUCH12 = GPIO12;
static const uint8_t TOUCH13 = GPIO13;
static const uint8_t TOUCH14 = GPIO14;
static const uint8_t TOUCH2 = GPIO2;
static const uint8_t TOUCH1 = GPIO1;
/* End Touch Pins on ESP32-S3-WROOM-1U-N4R8 */
static const uint8_t TX = GPIO17;
static const uint8_t RX = GPIO18;
static const uint8_t SDA = GPIO1;
static const uint8_t SCL = GPIO0;
static const uint8_t NAMINO_ARANCIO_I2C_SDA = SDA;
static const uint8_t NAMINO_ARANCIO_I2C_SCL = SCL;
static const uint8_t NM_I2C_SDA = SDA;
static const uint8_t NM_I2C_SCL = SCL;
static const uint8_t A0 = ADC1_CH0;
static const uint8_t A1 = ADC1_CH1;
static const uint8_t A2 = ADC1_CH2;
static const uint8_t A3 = ADC1_CH3;
static const uint8_t A4 = ADC1_CH4;
static const uint8_t A5 = ADC1_CH5;
static const uint8_t A6 = ADC1_CH6;
static const uint8_t A7 = ADC1_CH7;
static const uint8_t A8 = ADC2_CH0;
static const uint8_t A9 = ADC2_CH1;
static const uint8_t A10 = ADC2_CH2;
static const uint8_t A11 = ADC2_CH3;
static const uint8_t A12 = ADC2_CH4;
static const uint8_t A13 = ADC2_CH5;
static const uint8_t A14 = ADC2_CH6;
static const uint8_t A15 = ADC2_CH7;
static const uint8_t DAC1 = 0;
static const uint8_t DAC2 = 0;
/* Begin Arduino naming */
static const uint8_t RESET_ARDUINO = GPIO46;
static const uint8_t PC0 = GPIO3;
static const uint8_t PC1 = GPIO4;
static const uint8_t PC2 = GPIO5;
static const uint8_t PC3 = GPIO6;
static const uint8_t PC4 = GPIO7;
static const uint8_t PC5 = GPIO8;
static const uint8_t PB5 = GPIO35;
static const uint8_t PB4 = GPIO36;
static const uint8_t PB3 = GPIO37;
static const uint8_t PB2 = GPIO38;
static const uint8_t PB1 = GPIO39;
static const uint8_t PB0 = GPIO40;
static const uint8_t PD7 = GPIO41;
static const uint8_t PD6 = GPIO42;
static const uint8_t PD5 = GPIO21;
static const uint8_t PD4 = GPIO16;
static const uint8_t PD3 = GPIO14;
static const uint8_t PD2 = GPIO9;
static const uint8_t PD1 = GPIO17;
static const uint8_t PD0 = GPIO18;
/* End Arduino naming */
/* Begin alternate naming */
static const uint8_t J1_io0 = SCL;
static const uint8_t J2_35 = PB5;
static const uint8_t J2_36 = PB4;
static const uint8_t J2_37 = PB3;
static const uint8_t J2_38 = PB2;
static const uint8_t J2_39 = PB1;
static const uint8_t J2_40 = PB0;
static const uint8_t J3_io8 = PD7;
static const uint8_t J3_7 = PD6;
static const uint8_t J3_21 = PD5;
static const uint8_t J3_16 = PD4;
static const uint8_t J3_14 = PD3;
static const uint8_t J3_9 = PD2;
static const uint8_t J3_17 = TX;
static const uint8_t J3_18 = RX;
static const uint8_t J4_cs_io2 = CS_SDCARD;
static const uint8_t J4_sclk = SCK;
static const uint8_t J4_mosi = MOSI;
static const uint8_t J4_miso = MISO;
static const uint8_t J9_io3 = PC0;
static const uint8_t J9_4 = PC1;
static const uint8_t J9_5 = PC2;
static const uint8_t J9_6 = PC3;
static const uint8_t J9_7 = PC4;
static const uint8_t J9_8 = PC5;
static const uint8_t J10_enc_A = 0;
static const uint8_t J10_enc_B = 0;
static const uint8_t J10_sw = 0;
/* End alternate naming */
#endif /* Pins_Arduino_h */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment