From e0678e9eb4a1fb2701aab6d236c132aa9575913f Mon Sep 17 00:00:00 2001 From: Francisco Molina Date: Wed, 20 Oct 2021 13:43:40 +0200 Subject: [PATCH] boards/fox: remove support Remove support of unavailable BOARD. --- boards/fox/Kconfig | 28 ------ boards/fox/Makefile | 3 - boards/fox/Makefile.dep | 9 -- boards/fox/Makefile.features | 14 --- boards/fox/Makefile.include | 12 --- boards/fox/board.c | 31 ------- boards/fox/dist/openocd.cfg | 16 ---- boards/fox/doc.txt | 136 ---------------------------- boards/fox/include/board.h | 109 ---------------------- boards/fox/include/periph_conf.h | 151 ------------------------------- 10 files changed, 509 deletions(-) delete mode 100644 boards/fox/Kconfig delete mode 100644 boards/fox/Makefile delete mode 100644 boards/fox/Makefile.dep delete mode 100644 boards/fox/Makefile.features delete mode 100644 boards/fox/Makefile.include delete mode 100644 boards/fox/board.c delete mode 100644 boards/fox/dist/openocd.cfg delete mode 100644 boards/fox/doc.txt delete mode 100644 boards/fox/include/board.h delete mode 100644 boards/fox/include/periph_conf.h diff --git a/boards/fox/Kconfig b/boards/fox/Kconfig deleted file mode 100644 index ce5d6abb1a..0000000000 --- a/boards/fox/Kconfig +++ /dev/null @@ -1,28 +0,0 @@ -# Copyright (c) 2020 Inria -# -# 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. -# - -config BOARD - default "fox" if BOARD_FOX - -config BOARD_FOX - bool - default y - select CPU_MODEL_STM32F103RE - - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - # Clock configuration - select BOARD_HAS_HSE - select BOARD_HAS_LSE - -source "$(RIOTBOARD)/common/stm32/Kconfig" diff --git a/boards/fox/Makefile b/boards/fox/Makefile deleted file mode 100644 index f8fcbb53a0..0000000000 --- a/boards/fox/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -MODULE = board - -include $(RIOTBASE)/Makefile.base diff --git a/boards/fox/Makefile.dep b/boards/fox/Makefile.dep deleted file mode 100644 index 8ce4e4b22d..0000000000 --- a/boards/fox/Makefile.dep +++ /dev/null @@ -1,9 +0,0 @@ -ifneq (,$(filter netdev_default,$(USEMODULE))) - USEMODULE += at86rf231 -endif - -ifneq (,$(filter saul_default,$(USEMODULE))) - USEMODULE += lps331ap - USEMODULE += l3g4200d - USEMODULE += lsm303dlhc -endif diff --git a/boards/fox/Makefile.features b/boards/fox/Makefile.features deleted file mode 100644 index 6ddb3db5fc..0000000000 --- a/boards/fox/Makefile.features +++ /dev/null @@ -1,14 +0,0 @@ -CPU = stm32 -CPU_MODEL = stm32f103re - -# Put defined MCU peripherals here (in alphabetical order) -FEATURES_PROVIDED += periph_i2c -FEATURES_PROVIDED += periph_rtc -FEATURES_PROVIDED += periph_rtt -FEATURES_PROVIDED += periph_spi -FEATURES_PROVIDED += periph_timer -FEATURES_PROVIDED += periph_uart - -# fox board provides a custom default Kconfig clock configuration. The same as -# iotlab boards. -KCONFIG_ADD_CONFIG += $(RIOTBOARD)/common/iotlab/clock.config diff --git a/boards/fox/Makefile.include b/boards/fox/Makefile.include deleted file mode 100644 index 200c4867ba..0000000000 --- a/boards/fox/Makefile.include +++ /dev/null @@ -1,12 +0,0 @@ -# Include shared STM32 headers -INCLUDES += -I$(RIOTBOARD)/common/stm32/include - -# set default port depending on operating system -PORT_LINUX ?= /dev/ttyUSB1 -PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbserial*))) - -# this board uses openocd -PROGRAMMER ?= openocd - -# openocd programmer is supported -PROGRAMMERS_SUPPORTED += openocd diff --git a/boards/fox/board.c b/boards/fox/board.c deleted file mode 100644 index 54a44608ee..0000000000 --- a/boards/fox/board.c +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (C) 2014 Freie Universität Berlin - * - * 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 boards_fox - * @{ - * - * @file - * @brief Board specific implementations for the fox board - * - * @author Thomas Eichinger - * - * @} - */ - -#include "board.h" -#include "periph/gpio.h" - -void board_init(void) -{ - /* initialize the boards LEDs and turn them off */ - gpio_init(LED0_PIN, GPIO_OUT); - gpio_init(LED1_PIN, GPIO_OUT); - gpio_set(LED0_PIN); - gpio_set(LED1_PIN); -} diff --git a/boards/fox/dist/openocd.cfg b/boards/fox/dist/openocd.cfg deleted file mode 100644 index 6b7b7a59d0..0000000000 --- a/boards/fox/dist/openocd.cfg +++ /dev/null @@ -1,16 +0,0 @@ -jtag_khz 1000 - -# comstick ftdi device -interface ft2232 -ft2232_layout "usbjtag" -ft2232_device_desc "HiKoB FOX JTAG" -ft2232_vid_pid 0x0403 0x6010 - -jtag_nsrst_delay 100 -jtag_ntrst_delay 100 - -# use combined on interfaces or targets that can't set TRST/SRST separately -reset_config trst_and_srst - -source [find target/stm32f1x.cfg] -$_TARGETNAME configure -rtos auto diff --git a/boards/fox/doc.txt b/boards/fox/doc.txt deleted file mode 100644 index 16a78b8f71..0000000000 --- a/boards/fox/doc.txt +++ /dev/null @@ -1,136 +0,0 @@ -/** -@defgroup boards_fox fox -@ingroup boards -@brief Support for the fox board - -## Components - -| MCU | [ST2M32F103REY](http://www.st.com/web/catalog/mmc/FM141/SC1169/SS1031/LN1565/PF164485) – 32-bits | -|:------------- |:------------------------------------------------------------------------------------------------- | -| RAM | 64KiB | -| Flash | 512KiB | -| radio chipset | [AT86RF231](http://www.atmel.com/images/doc8111.pdf) | -| | a IEEE802.15.4-compliant radio at 2.4 GHz | - -## Implementation Status - -| Device | ID | Supported | Comments | -|:----------------- |:------------- |:----------|:------------------------- | -| MCU | [STM23F103REY](http://www.st.com/st-web-ui/static/active/en/resource/technical/document/reference_manual/CD00171190.pdf) | partly | Energy saving modes not fully utilized | -| Low-level driver | GPIO | yes | | -| | PWM | no | | -| | UART | full | | -| | I2C | yes | | -| | SPI | yes | one SPI device for now | -| | USB | no | | -| | RTT | yes | in progress | -| | RNG | no | no HW module | -| | Timer | full | | -| Radio Chip | AT86RF231 | partly | will be remodelled soon | - - -##### Note on at86rf231 radio driver - -The current implementation of the radio driver for the at86rf231 chip uses -the basic operation modes. This gives -you basic sending and receiving functionality but no hardware address -filtering and no auto-ACKs etc. Due to the fact this radio device is an IEEE -802.15.4 compliant device it supports radio channels from 11 to 26. When trying -to set a channel out of range the driver returns an error and prints a message -with `DEVELHELP` enabled. - -## Toolchains - -See [ARM Family](https://github.com/RIOT-OS/RIOT/wiki/Family:-ARM) - -Working: -* [gcc-arm-embedded](https://github.com/RIOT-OS/RIOT/wiki/Family:-ARM#gcc- -arm-embedded-toolchain) -* [gcc-linaro](https://github.com/RIOT-OS/RIOT/wiki/Family:-ARM#linaro- -toolchain) - -### Programming and Debugging - -In order to program (flash) and debug the node you need -[OpenOCD](http://openocd.sourceforge.net/) and an ARM version of gdb (`arm-none- -eabi-gdb`), which provided by most toolchains. Most Linux distributions provide -also a package for OpenOCD. The required configuration files are provided by -RIOT. -When starting the debugger with `make debug BOARD=fox` GDB connects to -openocd, loads the elf-file and puts the MCU into halt state. Before setting -breakpoints it is sometimes needed to use the following workflow -``` -bash -monitor reset run -monitor reset halt -b -c -``` -For best debugging experience also change the `-Os` flag in -`Makefile.inlcude`'s `CFLAGS` variable to `-O0`. - -## Debugging - -For debugging you need to open a terminal. Here you simply have to call `make -debug` - assuming that the current directory is your application directory. It -establishes an openocd connection to the device and starts gdb connected to the -openocd instance. For example, it should look something like this -``` -[user@host RIOT]$ cd examples/default/ -[user@host default]$ BOARD=fox make -Building application default for fox w/ MCU stm32f1. -... -[user@hostdefault]$ BOARD=fox make debug -RIOT/boards/hikob-common/dist/debug.sh RIOT/boards/fox/dist/gdb.conf -RIOT/examples/default/bin/fox/default.elf -Open On-Chip Debugger 0.8.0 (2014-07-27-20:18) -Licensed under GNU GPL v2 -For bug reports, read - http://openocd.sourceforge.net/doc/doxygen/bugs.html -GNU gdb (GNU Tools for ARM Embedded Processors) 7.4.1.20140401-cvs -Copyright (C) 2012 Free Software Foundation, Inc. -License GPLv3+: GNU GPL version 3 or later -This is free software: you are free to change and redistribute it. -There is NO WARRANTY, to the extent permitted by law. Type "show copying" -and "show warranty" for details. -This GDB was configured as "--host=x86_64-apple-darwin10 --target=arm-none- -eabi". -For bug reporting instructions, please see: -... -Reading symbols from RIOT/examples/default/bin/fox/default.elf...done. -idle_thread (arg=) at RIOT/core/kernel_init.c:67 -67 lpm_set(LPM_IDLE); -JTAG tap: stm32f1x.cpu tap/device found: 0x3ba00477 (mfg: 0x23b, part: -0xba00, ver: 0x3) -JTAG tap: stm32f1x.bs tap/device found: 0x06414041 (mfg: 0x020, part: 0x6414, -ver: 0x0) -target state: halted -target halted due to debug-request, current mode: Thread -xPSR: 0x01000000 pc: 0x0800027c msp: 0x20002200 -Loading section .text, size 0x6df4 lma 0x8000000 -Loading section .ARM.exidx, size 0x8 lma 0x8006df4 -Loading section .relocate, size 0x120 lma 0x8006dfc -Start address 0x8000000, load size 28444 -Transfer rate: 11 KB/sec, 7111 bytes/write. -(gdb) c -Continuing. -``` - -The node will reboot and you can continue to use `gdb` like you're used to. -In some cases it -seems necessary to prepend a `monitor reset run` before executing continue. -In general you can -use openocd commands prepended by `monitor`. -In the case the node crashes it can be reset with the following sequence -``` -Bash -(gdb) monitor reset halt -(gdb) monitor reset run -``` - -## Troubleshooting - -For terminal output on OS X (`make term`) you need to install a driver: -http://www.ftdichip.com/Drivers/VCP.htm -http://www.ftdichip.com/Drivers/VCP.htm - */ diff --git a/boards/fox/include/board.h b/boards/fox/include/board.h deleted file mode 100644 index a7ae72450d..0000000000 --- a/boards/fox/include/board.h +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright (C) 2014-2015 Freie Universität Berlin - * - * 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 boards_fox - * @{ - * - * @file - * @brief Board specific definitions for the fox board - * - * @author Alaeddine Weslati - * @author Thomas Eichinger - * @author Oliver Hahm - * @author Hauke Petersen - */ - -#ifndef BOARD_H -#define BOARD_H - -#include - -#include "cpu.h" -#include "periph_conf.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @name Xtimer configuration - * - * Tell the xtimer that we use a 16-bit peripheral timer - * @{ - */ -#define XTIMER_WIDTH (16) -/** @} */ - -/** - * @name Define the interface to the AT86RF231 radio - * - * {spi bus, spi speed, cs pin, int pin, reset pin, sleep pin} - * @{ - */ -#define AT86RF2XX_PARAM_CS GPIO_PIN(PORT_A, 1) -#define AT86RF2XX_PARAM_INT GPIO_PIN(PORT_C, 2) -#define AT86RF2XX_PARAM_SLEEP GPIO_PIN(PORT_A, 0) -#define AT86RF2XX_PARAM_RESET GPIO_PIN(PORT_C, 1) -/** @} */ - -/** - * @name Define the interface to the LPS331AP pressure sensor - * @{ - */ -#define LPSXXX_PARAM_ADDR (0x5C) -/** @} */ - -/** - * @name Define the interface for the L3G4200D gyroscope - * @{ - */ -#define L3G4200D_PARAM_INT2 GPIO_PIN(PORT_B, 8) -#define L3G4200D_PARAM_INT1 GPIO_PIN(PORT_B, 11) -/** @} */ - -/** - * @name Define the interface to the LSM303DLHC accelerometer and magnetometer - * @{ - */ -#define LSM303DLHC_PARAM_ACC_ADDR (0x25) -#define LSM303DLHC_PARAM_MAG_ADDR (0x30) -#define LSM303DLHC_PARAM_ACC_PIN GPIO_PIN(PORT_B, 9) -#define LSM303DLHC_PARAM_MAG_PIN GPIO_PIN(PORT_A, 9) -/** @} */ - -/** - * @name LED pin definitions and handlers - * @{ - */ -#define LED0_PIN GPIO_PIN(PORT_B, 10) -#define LED1_PIN GPIO_PIN(PORT_B, 12) - -#define LED0_MASK (1 << 10) -#define LED1_MASK (1 << 12) - -#define LED0_ON (GPIOB->ODR &= ~LED0_MASK) -#define LED0_OFF (GPIOB->ODR |= LED0_MASK) -#define LED0_TOGGLE (GPIOB->ODR ^= LED0_MASK) - -#define LED1_ON (GPIOB->ODR &= ~LED1_MASK) -#define LED1_OFF (GPIOB->ODR |= LED1_MASK) -#define LED1_TOGGLE (GPIOB->ODR ^= LED1_MASK) -/** @} */ - -/** - * @brief Initialize board specific hardware, including clock, LEDs and std-IO - */ -void board_init(void); - -#ifdef __cplusplus -} -#endif - -#endif /* BOARD_H */ -/** @} */ diff --git a/boards/fox/include/periph_conf.h b/boards/fox/include/periph_conf.h deleted file mode 100644 index 52cc9a8e79..0000000000 --- a/boards/fox/include/periph_conf.h +++ /dev/null @@ -1,151 +0,0 @@ -/* - * Copyright (C) 2014 Freie Universität Berlin - * - * 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 boards_fox - * @{ - * - * @file - * @brief Peripheral MCU configuration for the fox board - * - * @author Thomas Eichinger - */ - -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - -/* This board provides an LSE */ -#ifndef CONFIG_BOARD_HAS_LSE -#define CONFIG_BOARD_HAS_LSE 1 -#endif - -/* HSE is clocked at 16MHz */ -#ifndef CONFIG_BOARD_HAS_HSE -#define CONFIG_BOARD_HAS_HSE 1 -#endif -#define CLOCK_HSE MHZ(16) - -#include "periph_cpu.h" -#include "clk_conf.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @name Timer configuration - * @{ - */ -static const timer_conf_t timer_config[] = { - { - .dev = TIM2, - .max = 0x0000ffff, - .rcc_mask = RCC_APB1ENR_TIM2EN, - .bus = APB1, - .irqn = TIM2_IRQn - }, - { - .dev = TIM3, - .max = 0x0000ffff, - .rcc_mask = RCC_APB1ENR_TIM3EN, - .bus = APB1, - .irqn = TIM3_IRQn - } -}; - -#define TIMER_0_ISR isr_tim2 -#define TIMER_1_ISR isr_tim3 - -#define TIMER_NUMOF ARRAY_SIZE(timer_config) -/** @} */ - -/** - * @name UART configuration - * @{ - */ -static const uart_conf_t uart_config[] = { - { - .dev = USART2, - .rcc_mask = RCC_APB1ENR_USART2EN, - .rx_pin = GPIO_PIN(PORT_A, 3), - .tx_pin = GPIO_PIN(PORT_A, 2), - .bus = APB1, - .irqn = USART2_IRQn - }, - { - .dev = USART1, - .rcc_mask = RCC_APB2ENR_USART1EN, - .rx_pin = GPIO_PIN(PORT_A, 10), - .tx_pin = GPIO_PIN(PORT_A, 9), - .bus = APB2, - .irqn = USART1_IRQn - } -}; - -#define UART_0_ISR (isr_usart2) -#define UART_1_ISR (isr_usart1) - -#define UART_NUMOF ARRAY_SIZE(uart_config) -/** @} */ - -/** - * @name SPI configuration - * @{ - */ -static const spi_conf_t spi_config[] = { - { - .dev = SPI2, - .mosi_pin = GPIO_PIN(PORT_B, 15), - .miso_pin = GPIO_PIN(PORT_B, 14), - .sclk_pin = GPIO_PIN(PORT_B, 13), - .cs_pin = GPIO_UNDEF, - .rccmask = RCC_APB1ENR_SPI2EN, - .apbbus = APB1 - } -}; - -#define SPI_NUMOF ARRAY_SIZE(spi_config) -/** @} */ - -/** - * @name Real time counter configuration - * @{ - */ -#ifndef RTT_FREQUENCY -#define RTT_FREQUENCY (RTT_MAX_FREQUENCY) /* in Hz */ -#endif -/** @} */ - -/** - * @name I2C configuration - * @{ - */ -static const i2c_conf_t i2c_config[] = { - { - .dev = I2C1, - .speed = I2C_SPEED_NORMAL, - .scl_pin = GPIO_PIN(PORT_B, 6), - .sda_pin = GPIO_PIN(PORT_B, 7), - .bus = APB1, - .rcc_mask = RCC_APB1ENR_I2C1EN, - .clk = CLOCK_APB1, - .irqn = I2C1_EV_IRQn - } -}; - -#define I2C_0_ISR isr_i2c1_ev - -#define I2C_NUMOF ARRAY_SIZE(i2c_config) -/** @} */ - -#ifdef __cplusplus -} -#endif - -#endif /* PERIPH_CONF_H */ -/** @} */