mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
b4f29035ce
Native CAN device was not properly ported to periph_can interface. This commit fixes this by renaming all needed structures and files so auto_init_can can initialize the native device. FEATURES_PROVIDED is also updated for native.
28 lines
832 B
Makefile
28 lines
832 B
Makefile
ifeq (FreeBSD,$(OS))
|
|
DISABLE_LIBSTDCPP ?= 1
|
|
endif
|
|
|
|
FEATURES_PROVIDED += arch_32bit
|
|
FEATURES_PROVIDED += arch_native
|
|
FEATURES_PROVIDED += cpp
|
|
ifneq ($(DISABLE_LIBSTDCPP),1)
|
|
# libstdc++ on FreeBSD is broken (does not work with -m32)
|
|
# Override with "export DISABLE_LIBSTDCPP=0"
|
|
FEATURES_PROVIDED += libstdcpp
|
|
endif
|
|
FEATURES_PROVIDED += periph_cpuid
|
|
FEATURES_PROVIDED += periph_eeprom
|
|
FEATURES_PROVIDED += periph_hwrng
|
|
FEATURES_PROVIDED += periph_pm
|
|
FEATURES_PROVIDED += periph_pwm
|
|
FEATURES_PROVIDED += ssp
|
|
|
|
ifeq ($(OS),Linux)
|
|
# Access to hardware SPI bus is only supported on Linux hosts
|
|
FEATURES_PROVIDED += periph_spi
|
|
# Hardware GPIO access is only available on Linux hosts
|
|
FEATURES_PROVIDED += periph_gpio periph_gpio_irq
|
|
# CAN is only supported on Linux through socketCAN
|
|
FEATURES_PROVIDED += periph_can
|
|
endif
|