Proyecto ABInBev para la tarjeta Guaria 1/2.

Committer:
fmanzano_dtk
Date:
Thu Jul 07 16:17:25 2022 +0000
Revision:
19:5580a9a54ad5
Parent:
1:9e821e640117
Sincronizacion;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
fmanzano_dtk 1:9e821e640117 1 /**
fmanzano_dtk 1:9e821e640117 2 * @file ics5_pinout.hpp
fmanzano_dtk 1:9e821e640117 3 * @author Felícito Manzano (felicito.manzano@detektor.com.sv)
fmanzano_dtk 1:9e821e640117 4 * @brief ics5_rev5
fmanzano_dtk 1:9e821e640117 5 * @version 0.1
fmanzano_dtk 1:9e821e640117 6 * @date 2020-09-22
fmanzano_dtk 1:9e821e640117 7 *
fmanzano_dtk 1:9e821e640117 8 * @copyright Copyright (c) 2020
fmanzano_dtk 1:9e821e640117 9 *
fmanzano_dtk 1:9e821e640117 10 */
fmanzano_dtk 1:9e821e640117 11
fmanzano_dtk 1:9e821e640117 12 #ifndef __ICS5_PINOUT_H
fmanzano_dtk 1:9e821e640117 13 #define __ICS5_PINOUT_H
fmanzano_dtk 1:9e821e640117 14
fmanzano_dtk 1:9e821e640117 15 #define ICS_BOARD_ID 11
fmanzano_dtk 1:9e821e640117 16
fmanzano_dtk 1:9e821e640117 17
fmanzano_dtk 1:9e821e640117 18 /**
fmanzano_dtk 1:9e821e640117 19 * @brief
fmanzano_dtk 1:9e821e640117 20 *
fmanzano_dtk 1:9e821e640117 21 */
fmanzano_dtk 1:9e821e640117 22 #if (ICS_BOARD_ID == 12)
fmanzano_dtk 1:9e821e640117 23 //UART
fmanzano_dtk 1:9e821e640117 24 #define BLE_TX PA_9 //USART1 - BLUETOOTH
fmanzano_dtk 1:9e821e640117 25 #define BLE_RX PA_10
fmanzano_dtk 1:9e821e640117 26 #define TTL_TX PA_2 //USART2
fmanzano_dtk 1:9e821e640117 27 #define TTL_RX PA_3
fmanzano_dtk 1:9e821e640117 28 #define RS232_CH1_TX PD_8 //USART3
fmanzano_dtk 1:9e821e640117 29 #define RS232_CH1_RX PD_9
fmanzano_dtk 1:9e821e640117 30 #define RS232_CH2_TX PC_12 //USART5
fmanzano_dtk 1:9e821e640117 31 #define RS232_CH2_RX PE_7
fmanzano_dtk 1:9e821e640117 32 #define RS485_TX PC_6 //USART6
fmanzano_dtk 1:9e821e640117 33 #define RS485_RX PC_7
fmanzano_dtk 1:9e821e640117 34 #define TTL_VOICE_TX PA_0 //USART4
fmanzano_dtk 1:9e821e640117 35 #define TTL_VOICE_RX PA_1
fmanzano_dtk 1:9e821e640117 36
fmanzano_dtk 1:9e821e640117 37 // INPUT
fmanzano_dtk 1:9e821e640117 38 #define INPUT1_POSITIVE PA_7
fmanzano_dtk 1:9e821e640117 39 #define INPUT2_NEGATIVE PB_0
fmanzano_dtk 1:9e821e640117 40 #define INPUT3_NEGATIVE PB_1
fmanzano_dtk 1:9e821e640117 41 #define INPUT4_NEGATIVE PF_10
fmanzano_dtk 1:9e821e640117 42 #define INPUT5_NEGATIVE PA_4
fmanzano_dtk 1:9e821e640117 43 #define INPUT6_NEGATIVE PA_5
fmanzano_dtk 1:9e821e640117 44 #define INPUT7_NEGATIVE PA_6
fmanzano_dtk 1:9e821e640117 45 #define INPUT8_NEGATIVE PB_3
fmanzano_dtk 1:9e821e640117 46
fmanzano_dtk 1:9e821e640117 47 // OUTPUT
fmanzano_dtk 1:9e821e640117 48 #define OUTPUT1_NEGATIVE PB_13
fmanzano_dtk 1:9e821e640117 49 #define OUTPUT2_NEGATIVE PB_14
fmanzano_dtk 1:9e821e640117 50 #define OUTPUT3_NEGATIVE PB_15
fmanzano_dtk 1:9e821e640117 51 #define OUTPUT4_NEGATIVE PC_0
fmanzano_dtk 1:9e821e640117 52 //#define OUTPUT5_NEGATIVE PB_5
fmanzano_dtk 1:9e821e640117 53 //#define OUTPUT6_NEGATIVE PA_15
fmanzano_dtk 1:9e821e640117 54 //#define OUTPUT7_NEGATIVE PA_8
fmanzano_dtk 1:9e821e640117 55
fmanzano_dtk 1:9e821e640117 56 // BSP
fmanzano_dtk 1:9e821e640117 57 #define USER_BUTTON PC_13
fmanzano_dtk 1:9e821e640117 58 #define USER_LED1 PB_4
fmanzano_dtk 1:9e821e640117 59 #define USER_LED2 PB_12
fmanzano_dtk 1:9e821e640117 60
fmanzano_dtk 1:9e821e640117 61 // BLUETOOTH
fmanzano_dtk 1:9e821e640117 62 #define BT_STATE PA_15
fmanzano_dtk 1:9e821e640117 63 #define BT_RESET PB_5
fmanzano_dtk 1:9e821e640117 64
fmanzano_dtk 1:9e821e640117 65 // VOICE
fmanzano_dtk 1:9e821e640117 66 #define VOICE_BUSY PC_1
fmanzano_dtk 1:9e821e640117 67
fmanzano_dtk 1:9e821e640117 68 // CAN
fmanzano_dtk 1:9e821e640117 69 #define STBY_CAN PD_3
fmanzano_dtk 1:9e821e640117 70 #define CAN1_TX PD_1
fmanzano_dtk 1:9e821e640117 71 #define CAN1_RX PD_0
fmanzano_dtk 1:9e821e640117 72 #define MP2155_ENABLE PB_10
fmanzano_dtk 1:9e821e640117 73
fmanzano_dtk 1:9e821e640117 74 // I2C
fmanzano_dtk 1:9e821e640117 75 #define I2C_SDA_EE PB_9
fmanzano_dtk 1:9e821e640117 76 #define I2C_SCL_EE PB_8
fmanzano_dtk 1:9e821e640117 77 #define I2C_SDA_QW PC_9
fmanzano_dtk 1:9e821e640117 78 #define I2C_SCL_QW PA_8
fmanzano_dtk 1:9e821e640117 79
fmanzano_dtk 1:9e821e640117 80 // SPI
fmanzano_dtk 1:9e821e640117 81 #define SPI_SCK PE_2
fmanzano_dtk 1:9e821e640117 82 #define SPI_SS PE_4
fmanzano_dtk 1:9e821e640117 83 #define SPI_MISO PE_5
fmanzano_dtk 1:9e821e640117 84 #define SPI_MOSI PE_6
fmanzano_dtk 1:9e821e640117 85
fmanzano_dtk 1:9e821e640117 86 // USB
fmanzano_dtk 1:9e821e640117 87 #define USB_DP PA_12
fmanzano_dtk 1:9e821e640117 88 #define USB_DM PA_11
fmanzano_dtk 1:9e821e640117 89
fmanzano_dtk 1:9e821e640117 90 //GPIO
fmanzano_dtk 1:9e821e640117 91 #define GPIO01 PD_6
fmanzano_dtk 1:9e821e640117 92 #define GPIO02 PD_7
fmanzano_dtk 1:9e821e640117 93 #define GPIO03 PB_11
fmanzano_dtk 1:9e821e640117 94 #define GPIO04 PF_14
fmanzano_dtk 1:9e821e640117 95 #define GPIO05 PD_15
fmanzano_dtk 1:9e821e640117 96 #define GPIO06 PE_15
fmanzano_dtk 1:9e821e640117 97 #define GPIO07 PD_12
fmanzano_dtk 1:9e821e640117 98 #define GPIO08 PG_0
fmanzano_dtk 1:9e821e640117 99 #define GPIO09 PF_11
fmanzano_dtk 1:9e821e640117 100 #define GPIO10 PG_2
fmanzano_dtk 1:9e821e640117 101 #define GPIO11 PG_3
fmanzano_dtk 1:9e821e640117 102 #define GPIO12 PG_4
fmanzano_dtk 1:9e821e640117 103 #define GPIO13 PG_5
fmanzano_dtk 1:9e821e640117 104 #define GPIO14 PG_6
fmanzano_dtk 1:9e821e640117 105 #define GPIO15 PE_0
fmanzano_dtk 1:9e821e640117 106 #define GPIO16 PG_8
fmanzano_dtk 1:9e821e640117 107 #define GPIO17 PE_1
fmanzano_dtk 1:9e821e640117 108 #define GPIO18 PG_10
fmanzano_dtk 1:9e821e640117 109 #define GPIO19 PG_11
fmanzano_dtk 1:9e821e640117 110 #define GPIO20 PG_12
fmanzano_dtk 1:9e821e640117 111 #define GPIO21 PE_3
fmanzano_dtk 1:9e821e640117 112
fmanzano_dtk 1:9e821e640117 113
fmanzano_dtk 1:9e821e640117 114 #elif (ICS_BOARD_ID == 11)
fmanzano_dtk 1:9e821e640117 115 //UART
fmanzano_dtk 1:9e821e640117 116 #define BLE_TX PA_9 //USART1 - BLUETOOTH
fmanzano_dtk 1:9e821e640117 117 #define BLE_RX PA_10
fmanzano_dtk 1:9e821e640117 118 #define TTL_TX PA_2 //USART2
fmanzano_dtk 1:9e821e640117 119 #define TTL_RX PA_3
fmanzano_dtk 1:9e821e640117 120 #define RS232_CH1_TX PB_10 //USART3
fmanzano_dtk 1:9e821e640117 121 #define RS232_CH1_RX PB_11
fmanzano_dtk 1:9e821e640117 122 #define RS232_CH2_TX PC_12 //USART5
fmanzano_dtk 1:9e821e640117 123 #define RS232_CH2_RX PE_7
fmanzano_dtk 1:9e821e640117 124 #define RS485_TX PC_6 //USART6
fmanzano_dtk 1:9e821e640117 125 #define RS485_RX PC_7
fmanzano_dtk 1:9e821e640117 126 #define TTL_VOICE_TX PA_0 //USART4
fmanzano_dtk 1:9e821e640117 127 #define TTL_VOICE_RX PA_1
fmanzano_dtk 1:9e821e640117 128
fmanzano_dtk 1:9e821e640117 129 // INPUT
fmanzano_dtk 1:9e821e640117 130 #define INPUT1_POSITIVE PA_7
fmanzano_dtk 1:9e821e640117 131 #define INPUT2_NEGATIVE PB_0
fmanzano_dtk 1:9e821e640117 132 #define INPUT3_NEGATIVE PB_1
fmanzano_dtk 1:9e821e640117 133 #define INPUT4_NEGATIVE PF_10
fmanzano_dtk 1:9e821e640117 134 #define INPUT5_NEGATIVE PA_4
fmanzano_dtk 1:9e821e640117 135 #define INPUT6_NEGATIVE PA_5
fmanzano_dtk 1:9e821e640117 136 #define INPUT7_NEGATIVE PA_6
fmanzano_dtk 1:9e821e640117 137 #define INPUT8_NEGATIVE PB_3
fmanzano_dtk 1:9e821e640117 138 // OUTPUT
fmanzano_dtk 1:9e821e640117 139 #define OUTPUT1_NEGATIVE PB_13
fmanzano_dtk 1:9e821e640117 140 #define OUTPUT2_NEGATIVE PB_14
fmanzano_dtk 1:9e821e640117 141 #define OUTPUT3_NEGATIVE PB_15
fmanzano_dtk 1:9e821e640117 142 #define OUTPUT4_NEGATIVE PC_0
fmanzano_dtk 1:9e821e640117 143 //#define OUTPUT5_NEGATIVE PB_5
fmanzano_dtk 1:9e821e640117 144 //#define OUTPUT6_NEGATIVE PA_15
fmanzano_dtk 1:9e821e640117 145 //#define OUTPUT7_NEGATIVE PA_8
fmanzano_dtk 1:9e821e640117 146
fmanzano_dtk 1:9e821e640117 147 // BSP
fmanzano_dtk 1:9e821e640117 148 #define USER_BUTTON PC_13
fmanzano_dtk 1:9e821e640117 149 #define USER_LED1 PB_4
fmanzano_dtk 1:9e821e640117 150 #define USER_LED2 PB_12
fmanzano_dtk 1:9e821e640117 151
fmanzano_dtk 1:9e821e640117 152 // BLUETOOTH
fmanzano_dtk 1:9e821e640117 153 #define BT_STATE PA_15
fmanzano_dtk 1:9e821e640117 154 #define BT_RESET PB_5
fmanzano_dtk 1:9e821e640117 155
fmanzano_dtk 1:9e821e640117 156 // VOICE
fmanzano_dtk 1:9e821e640117 157 #define VOICE_BUSY PC_1
fmanzano_dtk 1:9e821e640117 158
fmanzano_dtk 1:9e821e640117 159 // CAN
fmanzano_dtk 1:9e821e640117 160 #define STBY_CAN PD_3
fmanzano_dtk 1:9e821e640117 161 #define CAN1_TX PD_1
fmanzano_dtk 1:9e821e640117 162 #define CAN1_RX PD_0
fmanzano_dtk 1:9e821e640117 163
fmanzano_dtk 1:9e821e640117 164 // I2C
fmanzano_dtk 1:9e821e640117 165 #define I2C_SDA_EE PB_9
fmanzano_dtk 1:9e821e640117 166 #define I2C_SCL_EE PB_8
fmanzano_dtk 1:9e821e640117 167 #define I2C_SDA_QW PC_9
fmanzano_dtk 1:9e821e640117 168 #define I2C_SCL_QW PA_8
fmanzano_dtk 1:9e821e640117 169
fmanzano_dtk 1:9e821e640117 170 // SPI
fmanzano_dtk 1:9e821e640117 171 #define SPI_SCK PE_2
fmanzano_dtk 1:9e821e640117 172 #define SPI_SS PE_4
fmanzano_dtk 1:9e821e640117 173 #define SPI_MISO PE_5
fmanzano_dtk 1:9e821e640117 174 #define SPI_MOSI PE_6
fmanzano_dtk 1:9e821e640117 175
fmanzano_dtk 1:9e821e640117 176 // USB
fmanzano_dtk 1:9e821e640117 177 #define USB_DP PA_12
fmanzano_dtk 1:9e821e640117 178 #define USB_DM PA_11
fmanzano_dtk 1:9e821e640117 179
fmanzano_dtk 1:9e821e640117 180 #elif (ICS_BOARD_ID == 5)
fmanzano_dtk 1:9e821e640117 181 //UART
fmanzano_dtk 1:9e821e640117 182 #define BLE_TX PA_9 //USART1
fmanzano_dtk 1:9e821e640117 183 #define BLE_RX PA_10
fmanzano_dtk 1:9e821e640117 184 #define TTL_1_TX PA_9 //USART1
fmanzano_dtk 1:9e821e640117 185 #define TTL_1_RX PA_10
fmanzano_dtk 1:9e821e640117 186 #define TTL_2_TX PA_2 //USART2
fmanzano_dtk 1:9e821e640117 187 #define TTL_2_RX PA_3
fmanzano_dtk 1:9e821e640117 188 #define RS232_CH1_TX PA_2 //USART2
fmanzano_dtk 1:9e821e640117 189 #define RS232_CH1_RX PA_3
fmanzano_dtk 1:9e821e640117 190 #define RS232_CH2_TX PB_10 //USART3
fmanzano_dtk 1:9e821e640117 191 #define RS232_CH2_RX PB_11
fmanzano_dtk 1:9e821e640117 192 #define RS485_TX PB_10 //USART3
fmanzano_dtk 1:9e821e640117 193 #define RS485_RX PB_11
fmanzano_dtk 1:9e821e640117 194 #define TTL_4_TX PA_0 //USART4
fmanzano_dtk 1:9e821e640117 195 #define TTL_4_RX PA_1
fmanzano_dtk 1:9e821e640117 196 #define TTL_5_TX PB_3 //USART5
fmanzano_dtk 1:9e821e640117 197 #define TTL_5_RX PB_4
fmanzano_dtk 1:9e821e640117 198 // INPUT
fmanzano_dtk 1:9e821e640117 199 #define INPUT1_POSITIVE PA_7
fmanzano_dtk 1:9e821e640117 200 #define INPUT2_NEGATIVE PB_0
fmanzano_dtk 1:9e821e640117 201 #define INPUT3_NEGATIVE PB_1
fmanzano_dtk 1:9e821e640117 202 #define INPUT4_NEGATIVE PB_2
fmanzano_dtk 1:9e821e640117 203 #define INPUT5_NEGATIVE PA_4
fmanzano_dtk 1:9e821e640117 204 #define INPUT6_NEGATIVE PA_5
fmanzano_dtk 1:9e821e640117 205 // OUTPUT
fmanzano_dtk 1:9e821e640117 206 #define OUTPUT1_NEGATIVE PA_12
fmanzano_dtk 1:9e821e640117 207 #define OUTPUT2_NEGATIVE PA_11
fmanzano_dtk 1:9e821e640117 208 #define OUTPUT3_NEGATIVE PB_7
fmanzano_dtk 1:9e821e640117 209 #define OUTPUT4_NEGATIVE PB_6
fmanzano_dtk 1:9e821e640117 210 #define OUTPUT5_NEGATIVE PB_5
fmanzano_dtk 1:9e821e640117 211 #define OUTPUT6_NEGATIVE PA_15
fmanzano_dtk 1:9e821e640117 212 #define OUTPUT7_NEGATIVE PA_8
fmanzano_dtk 1:9e821e640117 213 // BSP
fmanzano_dtk 1:9e821e640117 214 #define USER_BUTTON PC_13
fmanzano_dtk 1:9e821e640117 215 #define USER_LED2 PB_14
fmanzano_dtk 1:9e821e640117 216 #define USER_LED3 PB_15
fmanzano_dtk 1:9e821e640117 217 // BLUETOOTH
fmanzano_dtk 1:9e821e640117 218 #define BT_STATE PB_13
fmanzano_dtk 1:9e821e640117 219 #define BT_LED PB_12
fmanzano_dtk 1:9e821e640117 220 // 1-WIRE
fmanzano_dtk 1:9e821e640117 221 #define ONE_WIRE PA_6
fmanzano_dtk 1:9e821e640117 222 // I2C
fmanzano_dtk 1:9e821e640117 223 #define I2C_SCL PB_8
fmanzano_dtk 1:9e821e640117 224 #define I2C_SDA PB_9
fmanzano_dtk 1:9e821e640117 225
fmanzano_dtk 1:9e821e640117 226
fmanzano_dtk 1:9e821e640117 227 /**
fmanzano_dtk 1:9e821e640117 228 * @brief
fmanzano_dtk 1:9e821e640117 229 *
fmanzano_dtk 1:9e821e640117 230 */
fmanzano_dtk 1:9e821e640117 231 #elif (ICS_BOARD_ID == 3)
fmanzano_dtk 1:9e821e640117 232 //UART
fmanzano_dtk 1:9e821e640117 233 #define BLE_TX PA_9 //USART1 ==> AVL FMU130
fmanzano_dtk 1:9e821e640117 234 #define BLE_RX PA_10
fmanzano_dtk 1:9e821e640117 235 #define TTL_1_TX PA_9 //USART1
fmanzano_dtk 1:9e821e640117 236 #define TTL_1_RX PA_10
fmanzano_dtk 1:9e821e640117 237 #define TTL_2_TX PA_2 //USART2 ==> Lector de Huellas
fmanzano_dtk 1:9e821e640117 238 #define TTL_2_RX PA_3
fmanzano_dtk 1:9e821e640117 239 #define RS232_CH1_TX PA_2 //USART2
fmanzano_dtk 1:9e821e640117 240 #define RS232_CH1_RX PA_3
fmanzano_dtk 1:9e821e640117 241 #define RS232_CH2_TX PB_10 //USART3
fmanzano_dtk 1:9e821e640117 242 #define RS232_CH2_RX PB_11
fmanzano_dtk 1:9e821e640117 243 #define RS485_TX PB_10 //USART3
fmanzano_dtk 1:9e821e640117 244 #define RS485_RX PB_11
fmanzano_dtk 1:9e821e640117 245 #define TTL_4_TX PA_0 //USART4 ==> N/C Parlante
fmanzano_dtk 1:9e821e640117 246 #define TTL_4_RX PA_1
fmanzano_dtk 1:9e821e640117 247 #define TTL_5_TX PB_3 //USART5 ==> PC DEbug
fmanzano_dtk 1:9e821e640117 248 #define TTL_5_TX PB_4
fmanzano_dtk 1:9e821e640117 249 // INPUT
fmanzano_dtk 1:9e821e640117 250 #define INPUT1_POSITIVE PA_15
fmanzano_dtk 1:9e821e640117 251 #define INPUT2_NEGATIVE PA_6
fmanzano_dtk 1:9e821e640117 252 #define INPUT3_NEGATIVE PA_7
fmanzano_dtk 1:9e821e640117 253 #define INPUT4_NEGATIVE PA_5
fmanzano_dtk 1:9e821e640117 254 #define INPUT5_NEGATIVE PA_8
fmanzano_dtk 1:9e821e640117 255 // OUTPUTS
fmanzano_dtk 1:9e821e640117 256 #define OUTPUT1_NEGATIVE PB_9
fmanzano_dtk 1:9e821e640117 257 #define OUTPUT2_NEGATIVE PB_8
fmanzano_dtk 1:9e821e640117 258 #define OUTPUT3_NEGATIVE PB_7
fmanzano_dtk 1:9e821e640117 259 #define OUTPUT4_NEGATIVE PB_6
fmanzano_dtk 1:9e821e640117 260 #define OUTPUT5_NEGATIVE PB_5
fmanzano_dtk 1:9e821e640117 261 #define OUTPUT6_NEGATIVE PB_4
fmanzano_dtk 1:9e821e640117 262 #define OUTPUT7_NEGATIVE PB_3
fmanzano_dtk 1:9e821e640117 263 // BSP
fmanzano_dtk 1:9e821e640117 264 #define USER_BUTTON PC_13
fmanzano_dtk 1:9e821e640117 265 #define USER_LED2 PA_4
fmanzano_dtk 1:9e821e640117 266 #define USER_LED3 PB_0
fmanzano_dtk 1:9e821e640117 267 // 1-WIRE
fmanzano_dtk 1:9e821e640117 268 #define ONE_WIRE PB_1
fmanzano_dtk 1:9e821e640117 269 #define ONE_WIRE2 PB_2
fmanzano_dtk 1:9e821e640117 270 // TTL
fmanzano_dtk 1:9e821e640117 271 #define TTL_IO1 PA_11
fmanzano_dtk 1:9e821e640117 272 #define TTL_IO2 PA_12
fmanzano_dtk 1:9e821e640117 273 #define RF_TTL_DIN0 PA_8
fmanzano_dtk 1:9e821e640117 274 #define RF_TTL_DIN1 PB_15
fmanzano_dtk 1:9e821e640117 275 #define RF_TTL_DIN2 PB_14
fmanzano_dtk 1:9e821e640117 276 #define RF_TTL_DIN3 PB_13
fmanzano_dtk 1:9e821e640117 277 #define RF_TTL_DIN_VT PB_12
fmanzano_dtk 1:9e821e640117 278 // BLUETOOTH
fmanzano_dtk 1:9e821e640117 279 #define BT_STATE PB_13
fmanzano_dtk 1:9e821e640117 280 #define BT_LED PB_12
fmanzano_dtk 1:9e821e640117 281
fmanzano_dtk 1:9e821e640117 282
fmanzano_dtk 1:9e821e640117 283 /**
fmanzano_dtk 1:9e821e640117 284 * @brief
fmanzano_dtk 1:9e821e640117 285 *
fmanzano_dtk 1:9e821e640117 286 */
fmanzano_dtk 1:9e821e640117 287 #elif (ICS_BOARD_ID == 303)
fmanzano_dtk 1:9e821e640117 288 /* ******************************************** */
fmanzano_dtk 1:9e821e640117 289 /* *** PRUEBAS CON NUCLEO F303K8 *** */
fmanzano_dtk 1:9e821e640117 290 /* ******************************************** */
fmanzano_dtk 1:9e821e640117 291 #define TTL_1_TX PA_2 //USART1
fmanzano_dtk 1:9e821e640117 292 #define TTL_1_RX PA_15
fmanzano_dtk 1:9e821e640117 293 #define RS232_CH1_TX PA_2 // USART1
fmanzano_dtk 1:9e821e640117 294 #define RS232_CH1_RX PA_15
fmanzano_dtk 1:9e821e640117 295 #define TTL_2_TX PA_9 //USART2
fmanzano_dtk 1:9e821e640117 296 #define TTL_2_RX PA_10
fmanzano_dtk 1:9e821e640117 297 #define RS232_CH2_TX PA_9
fmanzano_dtk 1:9e821e640117 298 #define RS232_CH2_RX PA_10
fmanzano_dtk 1:9e821e640117 299 #define RS485_TX PA_9
fmanzano_dtk 1:9e821e640117 300 #define RS485_RX PA_10
fmanzano_dtk 1:9e821e640117 301 #define INPUT1_POSITIVE PA_12
fmanzano_dtk 1:9e821e640117 302 #define INPUT2_NEGATIVE PB_0
fmanzano_dtk 1:9e821e640117 303 #define INPUT3_NEGATIVE PB_7
fmanzano_dtk 1:9e821e640117 304 #define INPUT4_NEGATIVE PB_6
fmanzano_dtk 1:9e821e640117 305 #define OUTPUT1_NEGATIVE PB_1
fmanzano_dtk 1:9e821e640117 306 #define OUTPUT2_NEGATIVE PF_0
fmanzano_dtk 1:9e821e640117 307 #define OUTPUT3_NEGATIVE PF_1
fmanzano_dtk 1:9e821e640117 308 #define OUTPUT4_NEGATIVE PA_8
fmanzano_dtk 1:9e821e640117 309 #define OUTPUT5_NEGATIVE PA_11
fmanzano_dtk 1:9e821e640117 310 #define OUTPUT6_NEGATIVE PB_5
fmanzano_dtk 1:9e821e640117 311 #define OUTPUT7_NEGATIVE PB_4
fmanzano_dtk 1:9e821e640117 312 #define USER_LED2 PB_3 // LED BSP
fmanzano_dtk 1:9e821e640117 313
fmanzano_dtk 1:9e821e640117 314
fmanzano_dtk 1:9e821e640117 315 /**
fmanzano_dtk 1:9e821e640117 316 * @brief
fmanzano_dtk 1:9e821e640117 317 *
fmanzano_dtk 1:9e821e640117 318 */
fmanzano_dtk 1:9e821e640117 319 #elif (ICS_BOARD_ID == 91)
fmanzano_dtk 1:9e821e640117 320 /* ******************************************** */
fmanzano_dtk 1:9e821e640117 321 /* *** PRUEBAS CON NUCLEO F091RC *** */
fmanzano_dtk 1:9e821e640117 322 /* ******************************************** */
fmanzano_dtk 1:9e821e640117 323 //UART
fmanzano_dtk 1:9e821e640117 324 #define BLE_TX PC_10 //USART1
fmanzano_dtk 1:9e821e640117 325 #define BLE_RX PC_11
fmanzano_dtk 1:9e821e640117 326 #define TTL_1_TX PC_10 //USART1
fmanzano_dtk 1:9e821e640117 327 #define TTL_1_RX PC_11
fmanzano_dtk 1:9e821e640117 328 #define TTL_2_TX PC_12 //USART2
fmanzano_dtk 1:9e821e640117 329 #define TTL_2_RX PD_2
fmanzano_dtk 1:9e821e640117 330 #define RS232_CH1_TX PC_12 //USART2
fmanzano_dtk 1:9e821e640117 331 #define RS232_CH1_RX PD_2
fmanzano_dtk 1:9e821e640117 332 #define RS232_CH2_TX PC_0 //USART3
fmanzano_dtk 1:9e821e640117 333 #define RS232_CH2_RX PC_1
fmanzano_dtk 1:9e821e640117 334 #define RS485_TX PC_0 //USART3
fmanzano_dtk 1:9e821e640117 335 #define RS485_RX PC_1
fmanzano_dtk 1:9e821e640117 336 #define TTL_4_TX PC_8 //USART4
fmanzano_dtk 1:9e821e640117 337 #define TTL_4_RX PC_9
fmanzano_dtk 1:9e821e640117 338 #define TTL_5_TX PA_2 //USART5
fmanzano_dtk 1:9e821e640117 339 #define TTL_5_RX PA_3
fmanzano_dtk 1:9e821e640117 340 // INPUT
fmanzano_dtk 1:9e821e640117 341 #define INPUT1_POSITIVE PC_4
fmanzano_dtk 1:9e821e640117 342 #define INPUT2_NEGATIVE PB_13
fmanzano_dtk 1:9e821e640117 343 #define INPUT3_NEGATIVE PB_14
fmanzano_dtk 1:9e821e640117 344 #define INPUT4_NEGATIVE PB_15
fmanzano_dtk 1:9e821e640117 345 #define INPUT5_NEGATIVE PB_1
fmanzano_dtk 1:9e821e640117 346 #define INPUT6_NEGATIVE PB_2
fmanzano_dtk 1:9e821e640117 347 // OUTPUT
fmanzano_dtk 1:9e821e640117 348 #define OUTPUT1_NEGATIVE PC_3
fmanzano_dtk 1:9e821e640117 349 #define OUTPUT2_NEGATIVE PC_2
fmanzano_dtk 1:9e821e640117 350 #define OUTPUT3_NEGATIVE PF_1
fmanzano_dtk 1:9e821e640117 351 #define OUTPUT4_NEGATIVE PF_0
fmanzano_dtk 1:9e821e640117 352 #define OUTPUT5_NEGATIVE PC_15
fmanzano_dtk 1:9e821e640117 353 #define OUTPUT6_NEGATIVE PC_14
fmanzano_dtk 1:9e821e640117 354 #define OUTPUT7_NEGATIVE PB_7
fmanzano_dtk 1:9e821e640117 355 // BSP
fmanzano_dtk 1:9e821e640117 356 #define USER_BUTTON PC_13
fmanzano_dtk 1:9e821e640117 357 #define USER_LED2 PA_5
fmanzano_dtk 1:9e821e640117 358
fmanzano_dtk 1:9e821e640117 359 // BLUETOOTH
fmanzano_dtk 1:9e821e640117 360 #define BT_STATE PB_0
fmanzano_dtk 1:9e821e640117 361 #define BT_LED PA_4
fmanzano_dtk 1:9e821e640117 362
fmanzano_dtk 1:9e821e640117 363
fmanzano_dtk 1:9e821e640117 364 #endif
fmanzano_dtk 1:9e821e640117 365 #endif //__ICS5_PINOUT_H