lib: disable most libraries since they need tuning to be F4 compatible

This commit is contained in:
King Kévin 2020-11-24 15:56:00 +01:00
parent 9751880813
commit 35c441355d
27 changed files with 35 additions and 7 deletions

View File

@ -7,6 +7,7 @@
* @warning all calls are blocking
*/
#pragma once
#error not converted for STM32F4
/** setup communication with SD card
* @return if card has been initialized correctly

View File

@ -6,6 +6,7 @@
* @note peripherals used: I2C
*/
#pragma once
#error not converted for STM32F4
/** I²C return codes */
enum i2c_master_rc {

View File

@ -5,6 +5,7 @@
* @date 2018
*/
#pragma once
#error not converted for STM32F4
#include "libopencm3/cm3/nvic.h"
#include "libopencm3/cm3/vector.h"

View File

@ -6,6 +6,7 @@
* @note peripherals used: timer channel @ref ir_nec_timer
*/
#pragma once
#error not converted for STM32F4
/** set when an IR NEC code has been received */
extern volatile bool ir_nec_code_received_flag;

View File

@ -6,6 +6,7 @@
* @note peripherals used: GPIO @ref lcd_hd44780_gpio, I²C @ref lcd_hd44780_i2c
*/
#pragma once
#error not converted for STM32F4
#include <libopencm3/stm32/i2c.h> // I²C definitions
/** @defgroup lcd_hd44780_i2c I²C peripheral used to control backpack adapter for the HD44780

View File

@ -7,6 +7,7 @@
* @warning all calls are blocking
*/
#pragma once
#error not converted for STM32F4
/** setup communication with MAX7219 IC
* @param[in] displays number of displays in the chain

View File

@ -6,6 +6,7 @@
* @note peripherals used: SPI @ref led_sk6812rgbw_spi, DMA
*/
#pragma once
#error not converted for STM32F4
/** number of LEDs on the SK6812RGBW strip */
#define LED_SK6812RGBW_LEDS (16 * 2)

View File

@ -7,6 +7,7 @@
* @warning all calls are blocking
*/
#pragma once
#error not converted for STM32F4
/** display brightness levels
*/

View File

@ -6,6 +6,7 @@
* @note peripherals used: SPI @ref led_ws2812b_spi, DMA
*/
#pragma once
#error not converted for STM32F4
/** number of LEDs on the WS2812B strip */
#define LED_WS2812B_LEDS 48

View File

@ -1,4 +1,4 @@
/** library to communicate using microwore as master
/** library to communicate using microwire as master
* @file
* @author King Kévin <kingkevin@cuvoodoo.info>
* @copyright SPDX-License-Identifier: GPL-3.0-or-later
@ -9,6 +9,7 @@
* @warning this library implements the M93Cx8 EEPROM operation codes. Other microwire-based ICs might use different ones.
*/
#pragma once
#error not converted for STM32F4
/** setup microwire peripheral
* @param[in] frequency clock frequency in Hz

View File

@ -1,10 +1,12 @@
/** SSD1306 OLED library (API)
/** SSD1306 OLED library
* @file
* @author King Kévin <kingkevin@cuvoodoo.info>
* @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2018-2019
* @note peripherals used: I2C @ref oled_ssd1306_i2c
*/
#pragma once
#error not converted for STM32F4
/** setup OLED display
* @param[in] slave_addr I²C slave address of SSD1306 device (least significant 7-bit)

View File

@ -7,6 +7,7 @@
* @note overdrive mode is not provided
*/
#pragma once
#error not converted for STM32F4
/** setup 1-wire peripheral
*/

View File

@ -7,6 +7,7 @@
* @note overdrive mode is not supported
*/
#pragma once
#error not converted for STM32F4
/** set when a function command code has been received
* @note needs to be cleared by user

View File

@ -1,4 +1,4 @@
/** library to send data using ESP8266 WiFi SoC (API)
/** library to send data using ESP8266 WiFi SoC
* @file
* @author King Kévin <kingkevin@cuvoodoo.info>
* @copyright SPDX-License-Identifier: GPL-3.0-or-later
@ -6,6 +6,7 @@
* @note peripherals used: USART @ref radio_esp8266_usart
*/
#pragma once
#error not converted for STM32F4
/** a response has been returned by the radio */
extern volatile bool radio_esp8266_activity;

View File

@ -7,6 +7,7 @@
* @note the interrupts and corresponding DIO should be handled directly by the user
*/
#pragma once
#error not converted for STM32F4
/** register addresses */
enum radio_sx172x_register_t {

View File

@ -6,6 +6,7 @@
* @note peripherals used: GPIO @ref rtc_dcf77_gpio, timer @ref rtc_dcf77_timer
*/
#pragma once
#error not converted for STM32F4
/** set when time information has been received */
extern volatile bool rtc_dcf77_time_flag;

View File

@ -1,4 +1,4 @@
/** library to communicate with the Maxim DS1307 I2C RTC IC (API)
/** library to communicate with the Maxim DS1307 I2C RTC IC
* @file
* @author King Kévin <kingkevin@cuvoodoo.info>
* @copyright SPDX-License-Identifier: GPL-3.0-or-later
@ -6,6 +6,7 @@
* @note peripherals used: I²C
*/
#pragma once
#error not converted for STM32F4
/** setup communication with RTC IC
* configure the I2C port defined in the sources

View File

@ -6,6 +6,7 @@
* @note peripherals used: SPI @ref sensor_as3935_spi, GPIO @ref sensor_as3935_gpio
*/
#pragma once
#error not converted for STM32F4
/** a interrupt has been received */
extern volatile bool sensor_as3935_interrupt;

View File

@ -6,6 +6,7 @@
* @note peripherals used: timer channel @ref sensor_dht11_timer (add external pull-up resistor)
*/
#pragma once
#error not converted for STM32F4
/** a measurement response has been received */
extern volatile bool sensor_dht11_measurement_received;

View File

@ -6,6 +6,7 @@
* @note peripherals used: timer channel @ref sensor_dht22_timer (add external pull-up resistor)
*/
#pragma once
#error not converted for STM32F4
/** a measurement response has been received */
extern volatile bool sensor_dht22_measurement_received;

View File

@ -1,4 +1,4 @@
/** library for Maxim DS18B20 digital temperature sensor (using 1-Wire protocol) (API)
/** library for Maxim DS18B20 digital temperature sensor (using 1-Wire protocol)
* @file
* @author King Kévin <kingkevin@cuvoodoo.info>
* @copyright SPDX-License-Identifier: GPL-3.0-or-later

View File

@ -6,6 +6,7 @@
* @note peripherals used: USART @ref sensor_pzem_usart, timer @ref sensor_pzem_timer
*/
#pragma once
#error not converted for STM32F4
/** a measurement response has been received */
extern volatile bool sensor_pzem_measurement_received;

View File

@ -6,6 +6,7 @@
* @note peripherals used: USART @ref sensor_sdm120_usart , GPIO @ref sensor_sdm120_gpio , timer @ref sensor_sdm120_timer
*/
#pragma once
#error not converted for STM32F4
/** a measurement response has been received */
extern volatile bool sensor_sdm120_measurement_received;

View File

@ -5,6 +5,8 @@
* @date 2016-2020
* @note peripherals used: GPIO @ref uart_soft_gpio, timer @ref uart_soft_timer
*/
#pragma once
#error not converted for STM32F4
/** if data has been received from UART port and is available to be read */
extern volatile bool uart_soft_received[4];

View File

@ -1,4 +1,4 @@
/** library for enhanced USART communication (API)
/** library for enhanced USART communication
* @file
* @author King Kévin <kingkevin@cuvoodoo.info>
* @copyright SPDX-License-Identifier: GPL-3.0-or-later
@ -8,6 +8,7 @@
* @remark 9-bit raw communication is not supported since this is not common and can be done without this library
*/
#pragma once
#error not converted for STM32F4
/** enhanced USART setting for the additional parity bit*/
enum usart_enhanced_parity_t {

View File

@ -1,10 +1,11 @@
/** library for USB CDC ACM communication (API)
/** library for USB CDC ACM communication
* @file
* @author King Kévin <kingkevin@cuvoodoo.info>
* @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2016-2019
*/
#pragma once
#error not converted for STM32F4
/** flag set to true when user is connected to USB CDC ACM port (e.g. when a terminal is opened) */
extern volatile bool usb_cdcacm_connecting;

View File

@ -7,6 +7,7 @@
* @note peripherals used: SPI @ref vfd_hv518_spi , GPIO @ref vfd_hv518_gpio , timer @ref vfd_hv518_timer
*/
#pragma once
#error not converted for STM32F4
/** number HV518 VFD drivers */
#define VFD_DRIVERS 3