mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/esp32: module esp_can removed
CAN controller driver for ESP32 is no longer realized as separate module.
This commit is contained in:
parent
04b92683e4
commit
e0f1ab0a16
@ -77,7 +77,7 @@ void print_board_config (void)
|
||||
uart_print_config();
|
||||
#endif
|
||||
|
||||
#ifdef MODULE_ESP_CAN
|
||||
#ifdef MODULE_PERIPH_CAN
|
||||
can_print_config();
|
||||
#endif
|
||||
|
||||
|
@ -1,5 +1 @@
|
||||
ifneq (,$(filter can,$(USEMODULE)))
|
||||
USEMODULE += esp_can
|
||||
endif
|
||||
|
||||
include $(RIOTBOARD)/common/esp32/Makefile.dep
|
||||
|
@ -11,9 +11,7 @@ FEATURES_PROVIDED += periph_spi
|
||||
|
||||
# unique features of the board
|
||||
FEATURES_PROVIDED += periph_eth # Ethernet MAC (EMAC)
|
||||
# FEATURES_PROVIDED += periph_can # CAN peripheral interface
|
||||
FEATURES_PROVIDED += esp_can # Do not use periph_can but esp_can while common init
|
||||
# is not updated
|
||||
FEATURES_PROVIDED += periph_can # CAN peripheral interface
|
||||
FEATURES_PROVIDED += periph_ir # IR peripheral interface
|
||||
|
||||
FEATURES_PROVIDED += arduino
|
||||
|
@ -10,10 +10,6 @@ ifneq (, $(filter esp_cxx, $(USEMODULE)))
|
||||
DIRS += cxx
|
||||
endif
|
||||
|
||||
ifneq (, $(filter esp_can, $(USEMODULE)))
|
||||
DIRS += esp-can
|
||||
endif
|
||||
|
||||
ifneq (, $(filter esp_eth, $(USEMODULE)))
|
||||
DIRS += esp-eth
|
||||
endif
|
||||
|
@ -1,3 +0,0 @@
|
||||
MODULE=esp_can
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
@ -1,28 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2018 Gunar Schorcht
|
||||
*
|
||||
* This file is subject to the terms and conditions of the GNU Lesser
|
||||
* General Public License v2.1. See the file LICENSE in the top level
|
||||
* directory for more details.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @defgroup cpu_esp32_esp_can ESP32 CAN device driver
|
||||
* @ingroup cpu_esp32
|
||||
* @brief CAN device driver implementation for ESP32
|
||||
* @author Gunar Schorcht <gunar@schorcht.net>
|
||||
|
||||
The ESP32 intregates a CAN controller which is compatible with the NXP SJA1000 CAN controller. Thus, it is CAN 2.0B specification compliant and supports two message formats:
|
||||
|
||||
- Base frame format (11-bit ID)
|
||||
- Extended frame format (29-bit ID)
|
||||
|
||||
@note
|
||||
- ESP32 CAN does not support CAN-FD and is not CAN-FD tolerant.
|
||||
- ESP32 CAN does not support SJA1000's sleep mode and wake-up functionality.
|
||||
|
||||
As with the SJA1000, the ESP32 CAN controller provides only the data link layer and physical layer signaling sublayer. Therefore, depending on the physical layer requirements, an external transceiver module is required which converts the CAN-RX and CAN-TX signals of the ESP32 into CAN_H and CAN_L bus signals, e.g., the MCP2551 or SN65HVD23X transceiver for compatibility with ISO 11898-2.
|
||||
|
||||
The ```esp_can``` module realizes a low-level CAN driver interface for the ESP32 CAN controller and provides a CAN DLL device that can be used in RIOT's CAN protocol stack. It uses the ESP32 CAN controller in SJA1000 PeliCAN mode. Please refer the [SJA1000 Datasheet](https://www.nxp.com/documents/data_sheet/SJA1000.pdf) for detailed information about the CAN controller and its programming.
|
||||
|
||||
*/
|
File diff suppressed because it is too large
Load Diff
@ -1,33 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2018 Gunar Schorcht
|
||||
*
|
||||
* This file is subject to the terms and conditions of the GNU Lesser
|
||||
* General Public License v2.1. See the file LICENSE in the top level
|
||||
* directory for more details.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @ingroup cpu_esp32_esp_can
|
||||
* @brief CAN device driver implementation for ESP32
|
||||
*
|
||||
* This module realizes the low-level CAN driver interface for the ESP32 CAN
|
||||
* controller which is compatible with the NXP SJA1000 CAN controller.
|
||||
*
|
||||
* @author Gunar Schorcht <gunar@schorcht.net>
|
||||
* @file
|
||||
* @{
|
||||
*/
|
||||
|
||||
#ifndef ESP_CAN_H
|
||||
#define ESP_CAN_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* ESP_CAN_H */
|
||||
/** @} */
|
@ -58,9 +58,4 @@ void auto_init_candev(void)
|
||||
extern void auto_init_periph_can(void);
|
||||
auto_init_periph_can();
|
||||
#endif
|
||||
|
||||
#ifdef MODULE_ESP_CAN
|
||||
extern void auto_init_esp_can(void);
|
||||
auto_init_esp_can();
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user