aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabien Poussin <fabien.poussin@gmail.com>2019-11-07 10:48:52 +0100
committerFabien Poussin <fabien.poussin@gmail.com>2019-11-07 10:48:52 +0100
commite3a3a24047717af33b098266e11c2e4e5102206a (patch)
treed56d5a9e2df71f95e67794c74b521ad3a147142d
parentd1aad8853600f3ce2cfbffeaea8e50150e2b6dd8 (diff)
downloadChibiOS-Contrib-e3a3a24047717af33b098266e11c2e4e5102206a.tar.gz
ChibiOS-Contrib-e3a3a24047717af33b098266e11c2e4e5102206a.tar.bz2
ChibiOS-Contrib-e3a3a24047717af33b098266e11c2e4e5102206a.zip
Adding RNG device to mx2confHEADmaster
-rwxr-xr-xtools/mx2conf.py15
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)