From 2a9af51efed2ba7d751b3fbdc0143f865d83c893 Mon Sep 17 00:00:00 2001 From: Jakub Luzny Date: Fri, 17 Jul 2020 11:43:08 +0200 Subject: [PATCH] docs/extra-build-config.md: Document CAN_OSCILLATOR variable Add instructions how to use CAN_OSCILLATOR variable and declare support for the Waveshare RS485 CAN HAT. Signed-off-by: Jakub Luzny --- docs/extra-build-config.md | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/docs/extra-build-config.md b/docs/extra-build-config.md index 641dc0a..a8c662a 100644 --- a/docs/extra-build-config.md +++ b/docs/extra-build-config.md @@ -252,21 +252,27 @@ When using device tree kernels, set this variable to enable the 802.15.4 hat: See: -## Enable CAN with Pican2 +## Enable CAN -In order to use Pican2 CAN module, set the following variables: +In order to use CAN with an MCP2515-based module, set the following variables: ENABLE_SPI_BUS = "1" ENABLE_CAN = "1" -See: +In case of dual CAN module (e.g. PiCAN2 Duo), set following variables instead: -In order to use Pican2 Duo CAN module, set the following variables: - - ENABLE_SPI_BUS = "1" + ENABLE_SPI_BUS = "1" ENABLE_DUAL_CAN = "1" -See: +Some modules may require setting the frequency of the crystal oscillator used on the particular board. The frequency is usually marked on the package of the crystal. By default, it is set to 16 MHz. To change that to 8 MHz, the following variable also has to be set: + + CAN_OSCILLATOR="8000000" + +Tested modules: + +* PiCAN2 (16 MHz crystal): +* WaveShare RS485 CAN HAT (8 MHz or 12 MHz crystal): +* PiCAN2 Duo (16 MHz crystal): ## Enable infrared