From 35c441355dfdba16830edf83f2c8035802b6fc62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Tue, 24 Nov 2020 15:56:00 +0100 Subject: [PATCH] lib: disable most libraries since they need tuning to be F4 compatible --- lib/flash_sdcard.h | 1 + lib/i2c_master.h | 1 + lib/interrupt.h | 1 + lib/ir_nec.h | 1 + lib/lcd_hd44780.h | 1 + lib/led_max7219.h | 1 + lib/led_sk6812rgbw.h | 1 + lib/led_tm1637.h | 1 + lib/led_ws2812b.h | 1 + lib/microwire_master.h | 3 ++- lib/oled_ssd1306.h | 4 +++- lib/onewire_master.h | 1 + lib/onewire_slave.h | 1 + lib/radio_esp8266.h | 3 ++- lib/radio_sx172x.h | 1 + lib/rtc_dcf77.h | 1 + lib/rtc_ds1307.h | 3 ++- lib/sensor_as3935.h | 1 + lib/sensor_dht11.h | 1 + lib/sensor_dht22.h | 1 + lib/sensor_ds18b20.h | 2 +- lib/sensor_pzem.h | 1 + lib/sensor_sdm120.h | 1 + lib/uart_soft.h | 2 ++ lib/usart_enhanced.h | 3 ++- lib/usb_cdcacm.h | 3 ++- lib/vfd_hv518.h | 1 + 27 files changed, 35 insertions(+), 7 deletions(-) diff --git a/lib/flash_sdcard.h b/lib/flash_sdcard.h index ed7d66e..5082275 100644 --- a/lib/flash_sdcard.h +++ b/lib/flash_sdcard.h @@ -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 diff --git a/lib/i2c_master.h b/lib/i2c_master.h index 9067741..b42749f 100644 --- a/lib/i2c_master.h +++ b/lib/i2c_master.h @@ -6,6 +6,7 @@ * @note peripherals used: I2C */ #pragma once +#error not converted for STM32F4 /** I²C return codes */ enum i2c_master_rc { diff --git a/lib/interrupt.h b/lib/interrupt.h index 1a5df9a..5270298 100644 --- a/lib/interrupt.h +++ b/lib/interrupt.h @@ -5,6 +5,7 @@ * @date 2018 */ #pragma once +#error not converted for STM32F4 #include "libopencm3/cm3/nvic.h" #include "libopencm3/cm3/vector.h" diff --git a/lib/ir_nec.h b/lib/ir_nec.h index 41ec31a..2716a01 100644 --- a/lib/ir_nec.h +++ b/lib/ir_nec.h @@ -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; diff --git a/lib/lcd_hd44780.h b/lib/lcd_hd44780.h index 97eaa60..2f8a0a7 100644 --- a/lib/lcd_hd44780.h +++ b/lib/lcd_hd44780.h @@ -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 // I²C definitions /** @defgroup lcd_hd44780_i2c I²C peripheral used to control backpack adapter for the HD44780 diff --git a/lib/led_max7219.h b/lib/led_max7219.h index 91d987f..1dc9b4f 100644 --- a/lib/led_max7219.h +++ b/lib/led_max7219.h @@ -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 diff --git a/lib/led_sk6812rgbw.h b/lib/led_sk6812rgbw.h index 3f99956..f38dcef 100644 --- a/lib/led_sk6812rgbw.h +++ b/lib/led_sk6812rgbw.h @@ -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) diff --git a/lib/led_tm1637.h b/lib/led_tm1637.h index e26657d..6559234 100644 --- a/lib/led_tm1637.h +++ b/lib/led_tm1637.h @@ -7,6 +7,7 @@ * @warning all calls are blocking */ #pragma once +#error not converted for STM32F4 /** display brightness levels */ diff --git a/lib/led_ws2812b.h b/lib/led_ws2812b.h index ada608d..ed1f726 100644 --- a/lib/led_ws2812b.h +++ b/lib/led_ws2812b.h @@ -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 diff --git a/lib/microwire_master.h b/lib/microwire_master.h index d895de4..d2899e7 100644 --- a/lib/microwire_master.h +++ b/lib/microwire_master.h @@ -1,4 +1,4 @@ -/** library to communicate using microwore as master +/** library to communicate using microwire as master * @file * @author King Kévin * @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 diff --git a/lib/oled_ssd1306.h b/lib/oled_ssd1306.h index b0b0fe2..f645a5d 100644 --- a/lib/oled_ssd1306.h +++ b/lib/oled_ssd1306.h @@ -1,10 +1,12 @@ -/** SSD1306 OLED library (API) +/** SSD1306 OLED library * @file * @author King Kévin * @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) diff --git a/lib/onewire_master.h b/lib/onewire_master.h index fe18c62..75b85c2 100644 --- a/lib/onewire_master.h +++ b/lib/onewire_master.h @@ -7,6 +7,7 @@ * @note overdrive mode is not provided */ #pragma once +#error not converted for STM32F4 /** setup 1-wire peripheral */ diff --git a/lib/onewire_slave.h b/lib/onewire_slave.h index 9a152aa..72836b7 100644 --- a/lib/onewire_slave.h +++ b/lib/onewire_slave.h @@ -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 diff --git a/lib/radio_esp8266.h b/lib/radio_esp8266.h index ab99beb..c515495 100644 --- a/lib/radio_esp8266.h +++ b/lib/radio_esp8266.h @@ -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 * @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; diff --git a/lib/radio_sx172x.h b/lib/radio_sx172x.h index 7c15699..7d8f248 100644 --- a/lib/radio_sx172x.h +++ b/lib/radio_sx172x.h @@ -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 { diff --git a/lib/rtc_dcf77.h b/lib/rtc_dcf77.h index 3d37844..224df1c 100644 --- a/lib/rtc_dcf77.h +++ b/lib/rtc_dcf77.h @@ -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; diff --git a/lib/rtc_ds1307.h b/lib/rtc_ds1307.h index 9eebdc2..96f1b69 100644 --- a/lib/rtc_ds1307.h +++ b/lib/rtc_ds1307.h @@ -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 * @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 diff --git a/lib/sensor_as3935.h b/lib/sensor_as3935.h index 73cebc4..00507e8 100644 --- a/lib/sensor_as3935.h +++ b/lib/sensor_as3935.h @@ -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; diff --git a/lib/sensor_dht11.h b/lib/sensor_dht11.h index 78a1924..47e33f4 100644 --- a/lib/sensor_dht11.h +++ b/lib/sensor_dht11.h @@ -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; diff --git a/lib/sensor_dht22.h b/lib/sensor_dht22.h index 41bd8ba..5c39576 100644 --- a/lib/sensor_dht22.h +++ b/lib/sensor_dht22.h @@ -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; diff --git a/lib/sensor_ds18b20.h b/lib/sensor_ds18b20.h index b2a5abe..3755f26 100644 --- a/lib/sensor_ds18b20.h +++ b/lib/sensor_ds18b20.h @@ -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 * @copyright SPDX-License-Identifier: GPL-3.0-or-later diff --git a/lib/sensor_pzem.h b/lib/sensor_pzem.h index 1562a4e..da791c2 100644 --- a/lib/sensor_pzem.h +++ b/lib/sensor_pzem.h @@ -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; diff --git a/lib/sensor_sdm120.h b/lib/sensor_sdm120.h index e537813..b5b149e 100644 --- a/lib/sensor_sdm120.h +++ b/lib/sensor_sdm120.h @@ -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; diff --git a/lib/uart_soft.h b/lib/uart_soft.h index 4557039..7626993 100644 --- a/lib/uart_soft.h +++ b/lib/uart_soft.h @@ -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]; diff --git a/lib/usart_enhanced.h b/lib/usart_enhanced.h index 4cf147e..41b0353 100644 --- a/lib/usart_enhanced.h +++ b/lib/usart_enhanced.h @@ -1,4 +1,4 @@ -/** library for enhanced USART communication (API) +/** library for enhanced USART communication * @file * @author King Kévin * @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 { diff --git a/lib/usb_cdcacm.h b/lib/usb_cdcacm.h index ffc0289..6fba418 100644 --- a/lib/usb_cdcacm.h +++ b/lib/usb_cdcacm.h @@ -1,10 +1,11 @@ -/** library for USB CDC ACM communication (API) +/** library for USB CDC ACM communication * @file * @author King Kévin * @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; diff --git a/lib/vfd_hv518.h b/lib/vfd_hv518.h index f61de15..bac93db 100644 --- a/lib/vfd_hv518.h +++ b/lib/vfd_hv518.h @@ -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