We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue raised here: https://www.stm32duino.com/viewtopic.php?t=2060
Script used to update all hal_conf_default files:
import fileinput import re from pathlib import Path script_path = Path(__file__).parent.resolve() stm32_list = [] # series dir_pattern = re.compile(r"^STM32(.*)xx$", re.IGNORECASE) for file in script_path.iterdir(): res = dir_pattern.match(file.name) if res: stm32_list.append(res.group(1)) stm32_list.sort() conf_defaults = [] for serie in stm32_list: serie_path = script_path / f"STM32{serie}xx" conf_defaults.append(serie_path / f"stm32{serie.lower()}xx_hal_conf_default.h") regex_module = re.compile(r"#define\s+(USE_HAL_\w+_REGISTER_CALLBACKS)") for conf_default in conf_defaults: for line in fileinput.input(conf_default, inplace=True): m = regex_module.search(line) if m: print(f"#if !defined({m.group(1)})") print(line, end="") if m: print("#endif")
The text was updated successfully, but these errors were encountered:
feat: allow USE_HAL_PPP_REGISTER_CALLBACKS redefinition
c9ee49e
Fixes stm32duino#2079 Signed-off-by: Frederic Pillon <[email protected]>
987519a
Fixes #2079 Signed-off-by: Frederic Pillon <[email protected]>
Successfully merging a pull request may close this issue.
Issue raised here:
https://www.stm32duino.com/viewtopic.php?t=2060
Script used to update all hal_conf_default files:
The text was updated successfully, but these errors were encountered: