diff options
| author | Fabien Poussin <fabien.poussin@gmail.com> | 2019-11-07 10:48:52 +0100 | 
|---|---|---|
| committer | Fabien Poussin <fabien.poussin@gmail.com> | 2019-11-07 10:48:52 +0100 | 
| commit | e3a3a24047717af33b098266e11c2e4e5102206a (patch) | |
| tree | d56d5a9e2df71f95e67794c74b521ad3a147142d | |
| parent | d1aad8853600f3ce2cfbffeaea8e50150e2b6dd8 (diff) | |
| download | ChibiOS-Contrib-master.tar.gz ChibiOS-Contrib-master.tar.bz2 ChibiOS-Contrib-master.zip | |
| -rwxr-xr-x | tools/mx2conf.py | 15 | 
1 files changed, 8 insertions, 7 deletions
| diff --git a/tools/mx2conf.py b/tools/mx2conf.py index 771ecbf..5afc869 100755 --- a/tools/mx2conf.py +++ b/tools/mx2conf.py @@ -16,11 +16,11 @@ ALWAYS = ('PAL', 'EXTI')  # In case IPs don't match hal names, or if you want to override (ie: use SERIAL instead of UART driver)  HAL_TRANSLATE = ( -    ('USB', 'USB_OTG_FS'),  -    ('USB', 'USB_OTG_HS'),  -    ('SDC', 'SDMMC'),  -    ('TRNG', 'RNG'),  -    ('WSPI', 'QUADSPI'),  +    ('USB', 'USB_OTG_FS'), +    ('USB', 'USB_OTG_HS'), +    ('SDC', 'SDMMC'), +    ('TRNG', 'RNG'), +    ('WSPI', 'QUADSPI'),      ('WDG', 'IWDG'),      ('UART', 'USART')  ) @@ -34,7 +34,8 @@ DRIVER_TRANSLATE = (      ('ICU', 'TIM'),      ('GPT', 'TIM'),      ('WDG', 'IWDG'), -    ('WSPI', 'QUADSPI') +    ('WSPI', 'QUADSPI'), +    ('RNG', 'RNG')  )  RCC_TRANSLATE = ( @@ -111,7 +112,7 @@ def update_hal(source, drivers):          if line.startswith(match):              if "TRUE" in line:                  source[i] = line.replace('TRUE', 'FALSE') -             +          for d in drivers:              source[i] = set_boolean_define(source[i], match, d, True) | 
