HAL_Chibios: added hardware flow control for UARTs

implement RTS in software and CTS in hardware
This commit is contained in:
Andrew Tridgell committed 2018-01-15 11:46:02 +11:00
1 parent 9916a93919
commit 41be81af34
5 files changed
+218 -69

No files matched your search

+3
View File
@@ -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];
}
}