VitroIO SDK
Software development kit for Vitro Shard.
Loading...
Searching...
No Matches
consts.h
Go to the documentation of this file.
1
#ifndef VITROIO_SDK_CONSTS_H
2
#define VITROIO_SDK_CONSTS_H
3
15
#define VITROIO_CONSTS_ENVIRONMENT_REQUIRED_FLASH_SIZE 0x28
16
17
#define VITROIO_REGION_A_FLASH_OFFSET 0x10800
18
#define VITROIO_REGION_B_FLASH_OFFSET 0x88000
19
// Sectors sizes may differ for other targets
20
#define VITROIO_REGION_FLASH_SECTORS 239
21
22
#define VITROIO_ENVIRONMENT_FLASH_OFFSET 0x10000
23
#define VITROIO_ENVIRONMENT_FLASH_SECTORS 1
// 1*2048=2048 (0x800)
24
25
#define DEBUG 0
26
34
#define UART_DEBUG_TX PC_12
35
#define UART_DEBUG_RX PD_2
36
37
#define UART_USER_TX PA_0
38
#define UART_USER_RX PA_1
39
40
#define UART_RS232_TX PA_2
41
#define UART_RS232_RX PA_3
42
43
#define UART_RS485_DE PB_1
44
#define UART_RS485_TX PB_10
45
#define UART_RS485_RX PB_11
46
47
#define CAN_RX PB_8
48
#define CAN_TX PB_9
49
50
#define I2C1_SDA PB_7
51
#define I2C1_SCL PB_6
52
53
#define I2C3_SDA PC_1
54
#define I2C3_SCL PC_0
55
56
#define SPI1_NSS PA_4
57
#define SPI1_SCK PA_5
58
#define SPI1_MISO PA_6
59
#define SPI1_MOSI PA_7
60
61
#define USB_OTG_FS_DP PA_12
62
#define USB_OTG_FS_DM PA_11
63
#define USB_OTG_FS_VBUS PA_9
64
#define USB_OTG_PPWR PC_6
65
#define USB_OTG_PRDY PB_13
66
#define USB_OTG_OVRCR PB_12
67
68
#define ADC1_IN1 PC_0
69
#define ADC1_IN2 PC_1
70
#define ADC1_IN5 PA_0
71
#define ADC1_IN6 PA_1
72
#define ADC1_IN9 PA_4
73
#define ADC1_IN10 PA_5
74
#define ADC1_IN11 PA_6
75
#define ADC1_IN12 PA_7
76
77
#define GPIO_PC10 PC_10
78
#define GPIO_PC11 PC_11
79
80
#define HARD_3V3_EN_N_PC3 PC_3
81
82
#endif
// VITROIO_SDK_CONSTS_H
Vitro-SDK-Lib
vitroio-sdk
consts.h
Generated by
1.9.5