mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-11-09 16:41:21 +08:00
HAL_Chibios: added hardware flow control for UARTs
implement RTS in software and CTS in hardware
This commit is contained in:
1 parent
9916a93919
commit
41be81af34
5 files changed
+218
-69
No files matched your search
@@ -57,6 +57,9 @@ static struct gpio_entry *gpio_by_pin_num(uint8_t pin_num)
|
||||
{
|
||||
for (uint8_t i=0; i<ARRAY_SIZE(_gpio_tab); i++) {
|
||||
if (pin_num == _gpio_tab[i].pin_num) {
|
||||
if (!_gpio_tab[i].enabled) {
|
||||
return NULL;
|
||||
}
|
||||
return &_gpio_tab[i];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user