mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-30 00:41:17 +01:00
This makes use of the new bug modeling to declare all platforms that can use newlib and have no reentrancy hooks as affected by the non-thread-safe stdio bug. (Which is every platform but ESP* and AVR, the former because the reentrancy hooks are provided, the latter because we do not and never will support newlib on them.) Building on that, the mpaland-printf package is used when newlib is used and the bug is present. This way we can rely on the stdio being thread-safe on every platform and not causing random crashes at run time. Co-authored-by: mguetschow <mikolai.guetschow@tu-dresden.de>
30 lines
895 B
Makefile
30 lines
895 B
Makefile
CPU_ARCH = msp430
|
|
CPU_CORE = msp430
|
|
|
|
ifneq (,$(filter msp430f2% msp430g2%,$(CPU_MODEL)))
|
|
CPU_FAM := msp430_f2xx_g2xx
|
|
FEATURES_PROVIDED += periph_gpio_ll_input_pull_down
|
|
FEATURES_PROVIDED += periph_gpio_ll_input_pull_up
|
|
FEATURES_PROVIDED += periph_spi_reconfigure
|
|
endif
|
|
|
|
ifneq (,$(filter msp430f1%,$(CPU_MODEL)))
|
|
CPU_FAM := msp430_x1xx
|
|
endif
|
|
|
|
FEATURES_PROVIDED += arch_16bit
|
|
FEATURES_PROVIDED += arch_msp430
|
|
FEATURES_PROVIDED += bug_newlib_broken_stdio
|
|
FEATURES_PROVIDED += cpu_$(CPU_FAM)
|
|
FEATURES_PROVIDED += dbgpin
|
|
FEATURES_PROVIDED += newlib
|
|
FEATURES_PROVIDED += periph_flashpage
|
|
FEATURES_PROVIDED += periph_flashpage_in_address_space
|
|
FEATURES_PROVIDED += periph_flashpage_pagewise
|
|
FEATURES_PROVIDED += periph_pm
|
|
FEATURES_PROVIDED += periph_timer_query_freqs
|
|
|
|
FEATURES_PROVIDED += periph_gpio_ll
|
|
FEATURES_PROVIDED += periph_gpio_ll_irq
|
|
FEATURES_PROVIDED += periph_gpio_ll_switch_dir
|