mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-03 06:28:32 -04:00
HAL_ChibiOS: mark SDIO and SDMMC IO as pullup
this is needed for boards such as PixhackV3 which don't have hardware pullups. Thanks to Hongle for reporting this.
This commit is contained in:
parent
692c9a15df
commit
271bbbd8d1
@ -280,6 +280,7 @@ class generic_pin(object):
|
||||
v = 'FLOATING'
|
||||
if self.is_CS():
|
||||
v = "PULLUP"
|
||||
# generate pullups for UARTs
|
||||
if (self.type.startswith('USART') or
|
||||
self.type.startswith('UART')) and (
|
||||
(self.label.endswith('_TX') or
|
||||
@ -287,6 +288,15 @@ class generic_pin(object):
|
||||
self.label.endswith('_CTS') or
|
||||
self.label.endswith('_RTS'))):
|
||||
v = "PULLUP"
|
||||
# generate pullups for SDIO and SDMMC
|
||||
if (self.type.startswith('SDIO') or
|
||||
self.type.startswith('SDMMC')) and (
|
||||
(self.label.endswith('_D0') or
|
||||
self.label.endswith('_D1') or
|
||||
self.label.endswith('_D2') or
|
||||
self.label.endswith('_D3') or
|
||||
self.label.endswith('_CMD'))):
|
||||
v = "PULLUP"
|
||||
for e in self.extra:
|
||||
if e in values:
|
||||
v = e
|
||||
|
Loading…
Reference in New Issue
Block a user