busvoodoo_global: define dongle IO pins
This commit is contained in:
parent
162cffc5d8
commit
b8bce07b84
|
@ -67,10 +67,17 @@ const char* busvoodoo_global_pinout_io[10] = {NULL, NULL, NULL, NULL, NULL, NULL
|
||||||
const char* busvoodoo_global_pinout_rscan[5] = {NULL, NULL, NULL, NULL, NULL};
|
const char* busvoodoo_global_pinout_rscan[5] = {NULL, NULL, NULL, NULL, NULL};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if BUSVOODOO_HARDWARE_VERSION != 2
|
||||||
const char* busvoodoo_io_names[13] = {"I2C_SMBA/SPI_NSS/I2S_WS/UART1_CK", "SDIO_CMD", "UART1_CTS/SPI_SCK/I2S_CK", "SDIO_D3/UART2_RX", "I2C_SDA/UART1_RX", "SDIO_D0", "SPI_MOSI/I2S_SD", "SDIO_CK", "I2C_SCL/UART1_TX", "SDIO_D1", "I2S_MCK", "UART1_RTS/SPI_MISO", "SDIO_D2/UART2_TX"};
|
const char* busvoodoo_io_names[13] = {"I2C_SMBA/SPI_NSS/I2S_WS/UART1_CK", "SDIO_CMD", "UART1_CTS/SPI_SCK/I2S_CK", "SDIO_D3/UART2_RX", "I2C_SDA/UART1_RX", "SDIO_D0", "SPI_MOSI/I2S_SD", "SDIO_CK", "I2C_SCL/UART1_TX", "SDIO_D1", "I2S_MCK", "UART1_RTS/SPI_MISO", "SDIO_D2/UART2_TX"};
|
||||||
const uint32_t busvoodoo_io_ports[13] = {GPIOB, GPIOD, GPIOB, GPIOC, GPIOB, GPIOC, GPIOB, GPIOC, GPIOB, GPIOC, GPIOC, GPIOB, GPIOC};
|
const uint32_t busvoodoo_io_ports[13] = {GPIOB, GPIOD, GPIOB, GPIOC, GPIOB, GPIOC, GPIOB, GPIOC, GPIOB, GPIOC, GPIOC, GPIOB, GPIOC};
|
||||||
const uint32_t busvoodoo_io_pins[13] = {GPIO12, GPIO2, GPIO13, GPIO11, GPIO11, GPIO8, GPIO15, GPIO12, GPIO10, GPIO9, GPIO6, GPIO14, GPIO10};
|
const uint32_t busvoodoo_io_pins[13] = {GPIO12, GPIO2, GPIO13, GPIO11, GPIO11, GPIO8, GPIO15, GPIO12, GPIO10, GPIO9, GPIO6, GPIO14, GPIO10};
|
||||||
const uint8_t busvoodoo_io_groups[13] = {6, 6, 4, 4, 1, 1, 5, 5, 2, 2, 3, 3, 3};
|
const uint8_t busvoodoo_io_groups[13] = {6, 6, 4, 4, 1, 1, 5, 5, 2, 2, 3, 3, 3};
|
||||||
|
#else
|
||||||
|
const char* busvoodoo_io_names[8] = {"I2C_SDA/UART_RX", "I2C_SCL/UART_TX", "UART_RTS/SPI_MISO", "UART_CTS/SPI_SCK", "SPI_MOSI", "I2C_SMBA/SPI_NSS/UART_CK", "ICP_RX", "ICP_TX"};
|
||||||
|
const uint32_t busvoodoo_io_ports[8] = {GPIOB, GPIOB, GPIOB, GPIOB, GPIOB, GPIOB, GPIOA, GPIOA};
|
||||||
|
const uint32_t busvoodoo_io_pins[8] = {GPIO11, GPIO10, GPIO14, GPIO13, GPIO15, GPIO12, GPIO10, GPIO9};
|
||||||
|
const uint8_t busvoodoo_io_groups[8] = {1, 2, 3, 4, 5, 6, 1, 2};
|
||||||
|
#endif
|
||||||
|
|
||||||
bool busvoodoo_full = false;
|
bool busvoodoo_full = false;
|
||||||
char busvoodoo_version = '0';
|
char busvoodoo_version = '0';
|
||||||
|
|
|
@ -143,10 +143,17 @@ struct busvoodoo_mode_t {
|
||||||
/** @defgroup busvoodoo_io I/O connector pin definition
|
/** @defgroup busvoodoo_io I/O connector pin definition
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
#if BUSVOODOO_HARDWARE_VERSION != 2
|
||||||
extern const char* busvoodoo_io_names[13]; /**< I/O individual signal names */
|
extern const char* busvoodoo_io_names[13]; /**< I/O individual signal names */
|
||||||
extern const uint32_t busvoodoo_io_ports[13]; /**< port of individual signals */
|
extern const uint32_t busvoodoo_io_ports[13]; /**< port of individual signals */
|
||||||
extern const uint32_t busvoodoo_io_pins[13]; /**< pin of individual signals */
|
extern const uint32_t busvoodoo_io_pins[13]; /**< pin of individual signals */
|
||||||
extern const uint8_t busvoodoo_io_groups[13]; /**< which I/O pin (group) does the signal belong to */
|
extern const uint8_t busvoodoo_io_groups[13]; /**< which I/O pin (group) does the signal belong to */
|
||||||
|
#else
|
||||||
|
extern const char* busvoodoo_io_names[8]; /**< I/O individual signal names */
|
||||||
|
extern const uint32_t busvoodoo_io_ports[8]; /**< port of individual signals */
|
||||||
|
extern const uint32_t busvoodoo_io_pins[8]; /**< pin of individual signals */
|
||||||
|
extern const uint8_t busvoodoo_io_groups[8]; /**< which I/O pin (group) does the signal belong to */
|
||||||
|
#endif
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/** is the BusVoodoo board fully populated (with HV voltage regulator, RS-232, RS-485, CAN transceiver on the back side) */
|
/** is the BusVoodoo board fully populated (with HV voltage regulator, RS-232, RS-485, CAN transceiver on the back side) */
|
||||||
|
|
Loading…
Reference in New Issue