rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
iomcu_pins.h
Go to the documentation of this file.
1
22#ifndef RCBENCH_IOMCU_PINS_H
23#define RCBENCH_IOMCU_PINS_H
24
25#include "out_bind.h"
26
36#define IOMCU_BOARD_ID ((uint16_t)OUTBIND_BOARD_PICO_HEADER)
37
46#define IOMCU_HEARTBEAT_PIN 3
47
60#define IOMCU_CAN_SPI spi1
61#define IOMCU_CAN_PIN_SCK 10
62#define IOMCU_CAN_PIN_MOSI 11
63#define IOMCU_CAN_PIN_MISO 12
64#define IOMCU_CAN_PIN_CS 9
65#define IOMCU_CAN_PIN_INT 8
66#define IOMCU_CAN_CRYSTAL_HZ 16000000u
71#define IOMCU_CAN_SPI_HZ 10000000u
72
79#define IOMCU_CAN_BITRATE 1000000u
80
91#define IOMCU_RESERVED_PINS \
92 ((1ull << IOMCU_HEARTBEAT_PIN) \
93 | (1ull << IOMCU_CAN_PIN_SCK) \
94 | (1ull << IOMCU_CAN_PIN_MOSI) \
95 | (1ull << IOMCU_CAN_PIN_MISO) \
96 | (1ull << IOMCU_CAN_PIN_CS) \
97 | (1ull << IOMCU_CAN_PIN_INT))
98
99#endif /* RCBENCH_IOMCU_PINS_H */
Binding a protocol to pins: what the operator chooses, and the OUTPUTS page that comes out of it.