VitroIO SDK
Software development kit for Vitro Shard.
Loading...
Searching...
No Matches
consts.h File Reference

The file contains constants of vitro-shard-sdk for user usage. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define VITROIO_CONSTS_ENVIRONMENT_REQUIRED_FLASH_SIZE   0x28
 Defines required flash memory size in bytes for storing environment variables. More...
 
#define VITROIO_REGION_A_FLASH_OFFSET   0x10800
 
#define VITROIO_REGION_B_FLASH_OFFSET   0x88000
 
#define VITROIO_REGION_FLASH_SECTORS   239
 
#define VITROIO_ENVIRONMENT_FLASH_OFFSET   0x10000
 
#define VITROIO_ENVIRONMENT_FLASH_SECTORS   1
 
#define DEBUG   0
 
#define UART_DEBUG_TX   PC_12
 
#define UART_DEBUG_RX   PD_2
 
#define UART_USER_TX   PA_0
 
#define UART_USER_RX   PA_1
 
#define UART_RS232_TX   PA_2
 
#define UART_RS232_RX   PA_3
 
#define UART_RS485_DE   PB_1
 
#define UART_RS485_TX   PB_10
 
#define UART_RS485_RX   PB_11
 
#define CAN_RX   PB_8
 
#define CAN_TX   PB_9
 
#define I2C1_SDA   PB_7
 
#define I2C1_SCL   PB_6
 
#define I2C3_SDA   PC_1
 
#define I2C3_SCL   PC_0
 
#define SPI1_NSS   PA_4
 
#define SPI1_SCK   PA_5
 
#define SPI1_MISO   PA_6
 
#define SPI1_MOSI   PA_7
 
#define USB_OTG_FS_DP   PA_12
 
#define USB_OTG_FS_DM   PA_11
 
#define USB_OTG_FS_VBUS   PA_9
 
#define USB_OTG_PPWR   PC_6
 
#define USB_OTG_PRDY   PB_13
 
#define USB_OTG_OVRCR   PB_12
 
#define ADC1_IN1   PC_0
 
#define ADC1_IN2   PC_1
 
#define ADC1_IN5   PA_0
 
#define ADC1_IN6   PA_1
 
#define ADC1_IN9   PA_4
 
#define ADC1_IN10   PA_5
 
#define ADC1_IN11   PA_6
 
#define ADC1_IN12   PA_7
 
#define GPIO_PC10   PC_10
 
#define GPIO_PC11   PC_11
 
#define HARD_3V3_EN_N_PC3   PC_3
 

Detailed Description

The file contains constants of vitro-shard-sdk for user usage.

Macro Definition Documentation

◆ ADC1_IN1

#define ADC1_IN1   PC_0

◆ ADC1_IN10

#define ADC1_IN10   PA_5

◆ ADC1_IN11

#define ADC1_IN11   PA_6

◆ ADC1_IN12

#define ADC1_IN12   PA_7

◆ ADC1_IN2

#define ADC1_IN2   PC_1

◆ ADC1_IN5

#define ADC1_IN5   PA_0

◆ ADC1_IN6

#define ADC1_IN6   PA_1

◆ ADC1_IN9

#define ADC1_IN9   PA_4

◆ CAN_RX

#define CAN_RX   PB_8

◆ CAN_TX

#define CAN_TX   PB_9

◆ DEBUG

#define DEBUG   0

◆ GPIO_PC10

#define GPIO_PC10   PC_10

◆ GPIO_PC11

#define GPIO_PC11   PC_11

◆ HARD_3V3_EN_N_PC3

#define HARD_3V3_EN_N_PC3   PC_3

◆ I2C1_SCL

#define I2C1_SCL   PB_6

◆ I2C1_SDA

#define I2C1_SDA   PB_7

◆ I2C3_SCL

#define I2C3_SCL   PC_0

◆ I2C3_SDA

#define I2C3_SDA   PC_1

◆ SPI1_MISO

#define SPI1_MISO   PA_6

◆ SPI1_MOSI

#define SPI1_MOSI   PA_7

◆ SPI1_NSS

#define SPI1_NSS   PA_4

◆ SPI1_SCK

#define SPI1_SCK   PA_5

◆ UART_DEBUG_RX

#define UART_DEBUG_RX   PD_2

◆ UART_DEBUG_TX

#define UART_DEBUG_TX   PC_12

Variables listed below contains Shard V2 pinout adjusted to its design. Names are compatible with schematics. When you create your own application include const.h header file and use defined names rather than pin names directly.

◆ UART_RS232_RX

#define UART_RS232_RX   PA_3

◆ UART_RS232_TX

#define UART_RS232_TX   PA_2

◆ UART_RS485_DE

#define UART_RS485_DE   PB_1

◆ UART_RS485_RX

#define UART_RS485_RX   PB_11

◆ UART_RS485_TX

#define UART_RS485_TX   PB_10

◆ UART_USER_RX

#define UART_USER_RX   PA_1

◆ UART_USER_TX

#define UART_USER_TX   PA_0

◆ USB_OTG_FS_DM

#define USB_OTG_FS_DM   PA_11

◆ USB_OTG_FS_DP

#define USB_OTG_FS_DP   PA_12

◆ USB_OTG_FS_VBUS

#define USB_OTG_FS_VBUS   PA_9

◆ USB_OTG_OVRCR

#define USB_OTG_OVRCR   PB_12

◆ USB_OTG_PPWR

#define USB_OTG_PPWR   PC_6

◆ USB_OTG_PRDY

#define USB_OTG_PRDY   PB_13

◆ VITROIO_CONSTS_ENVIRONMENT_REQUIRED_FLASH_SIZE

#define VITROIO_CONSTS_ENVIRONMENT_REQUIRED_FLASH_SIZE   0x28

Defines required flash memory size in bytes for storing environment variables.

◆ VITROIO_ENVIRONMENT_FLASH_OFFSET

#define VITROIO_ENVIRONMENT_FLASH_OFFSET   0x10000

◆ VITROIO_ENVIRONMENT_FLASH_SECTORS

#define VITROIO_ENVIRONMENT_FLASH_SECTORS   1

◆ VITROIO_REGION_A_FLASH_OFFSET

#define VITROIO_REGION_A_FLASH_OFFSET   0x10800

◆ VITROIO_REGION_B_FLASH_OFFSET

#define VITROIO_REGION_B_FLASH_OFFSET   0x88000

◆ VITROIO_REGION_FLASH_SECTORS

#define VITROIO_REGION_FLASH_SECTORS   239