Commit Graph

272 Commits

Author SHA1 Message Date
King Kévin ff5fbc847d DFU: fix DP pull down 2020-12-11 00:00:25 +01:00
King Kévin 51e0bfd188 DFU: minor, remove unused/duplicate code 2020-12-11 00:00:25 +01:00
King Kévin c411d552a1 DFU: set serial to match STM32 DFU bootloader 2020-12-11 00:00:25 +01:00
King Kévin 40ee01ce67 usb_dfu: update to work with F4 2020-12-11 00:00:25 +01:00
King Kévin 87af738378 flash_internal: remove F1 flash utilities, add F4 section utility
compared to the STM32F1, the STM32F4 does not used 1 KB flash pages.
F4 uses variable large (>= 16 KB) flash sections.
this makes using the last page (128 KB instead of 1KB) for EEPROM highly inefficient.
caching such large pages before reprogramming small portion is also no doable (there is not enough RAM).
thus almost all F1 utilities are not applicable anymore.
to help erasing the right section, a utility to get the section from an address is added.
2020-12-11 00:00:25 +01:00
King Kévin e4ce622f15 terminal: minor, fix doc 2020-12-11 00:00:25 +01:00
King Kévin aff4275478 lib: disable most libraries since they need tuning to be F4 compatible 2020-12-11 00:00:25 +01:00
King Kévin 952d947c1b oled_text: add library to show text on SSD1306 OLED display 2020-12-10 20:16:02 +01:00
King Kévin 353b11e710 font: add graphical font library 2020-12-10 20:16:02 +01:00
King Kévin 974ca75027 sensor_max1247: add library to read ADC values from MAX1247 2020-12-10 20:16:02 +01:00
King Kévin c085f2d292 sensor_ds18b20: fix set precision for single device 2020-12-10 20:16:02 +01:00
King Kévin 58ef5f3d1b sensor_ds18b20: minor, add spacing around operator 2020-12-10 20:16:02 +01:00
King Kévin 6574a65ea6 led_sk6812rgbw: extended version of WS2812B library, supporting 4th color, using bit banding, removing need of timer 2020-10-11 12:51:05 +02:00
King Kévin 620e46938e led_tm1637: allow the display to be upside down 2020-10-11 12:51:05 +02:00
King Kévin 9b522b4228 led_ws2812b: minorx, fix comment 2020-10-11 12:51:05 +02:00
King Kévin 2f251e0ad7 led_tm1637: fix updating (both command and data need to be sent every time 2020-10-11 12:51:05 +02:00
King Kévin 5a028c23c4 flash_internal: probe_write only tests over advertized flash (works also with linker info) 2020-06-24 11:58:03 +02:00
King Kévin 60279d0a52 print: fix hex padding (and add spaces) 2020-06-24 11:57:59 +02:00
King Kévin 8566a4043b uart_soft: use new pin definition, fix multi-uart support, use masking instead of mod 2020-06-24 11:57:54 +02:00
King Kévin 97d197237c uart: replace mod with masking 2020-06-24 11:57:51 +02:00
King Kévin e054774544 flash_internal: don't used unreliable MCUID to figure out flash page size 2020-06-24 11:57:35 +02:00
King Kévin 8142854522 flash_internal: replace probe size with more accurate probe_read and probe_write 2020-06-24 11:57:28 +02:00
King Kévin 55c6319928 print: fix padding on hex printing 2020-06-24 11:57:13 +02:00
King Kévin 3b7179d49a print: minor, add spaces around operators 2020-06-24 11:57:08 +02:00
King Kévin 60a1859008 usb_cdcacm: add flush method to wait for empty buffer 2020-06-24 11:57:04 +02:00
King Kévin e71515bcce replace header license with SPDX statement 2020-06-10 19:04:41 +02:00
King Kévin 28604a43fd uart: improve setup, blocking transmission, and flushing 2020-06-10 19:04:27 +02:00
King Kévin 5ab9402644 as3935: fix IRQ setup 2020-06-10 19:04:27 +02:00
King Kévin 6fa46ee86c sx172x: add library to communicate with semtech SX127x LoRa module 2020-06-10 19:04:27 +02:00
King Kévin 9417cbf392 vfd_hv518: minor, fix spacing 2020-03-23 11:41:08 +01:00
King Kévin a689229acb usb_dfu: fix U_ID decoding 2020-03-15 14:03:52 +01:00
King Kévin 3cec6dfb79 usb_cdcacm: fix U_ID decoding 2020-03-15 14:02:55 +01:00
King Kévin e9f7e574ba led_ws2812b: use open drain data signal 2020-03-09 09:56:00 +01:00
King Kévin 9b9751e79d led_ws2812b: improve set LED speed 2020-03-09 09:55:52 +01:00
King Kévin cfbe9234b1 led_ws2812b: replace transmit with continous circlar DMA transfer 2020-03-09 09:55:42 +01:00
King Kévin 607ba7e9b7 led_ws2812b: replace timer with SPI being master 2020-03-09 09:55:36 +01:00
King Kévin 1ac92ec4ac flash_internal: add function to probe actual flash size 2020-03-08 18:17:37 +01:00
King Kévin 2b3b4431e2 flash_internal: improve page size detection 2020-03-08 18:17:03 +01:00
King Kévin 699e46521f oled_ssd1306: fix writing to display 2020-02-27 19:46:48 +01:00
King Kévin 4b1651a1a3 i2c_master: fix writing function to cope with read function now including a stop 2020-02-27 13:09:10 +01:00
King Kévin 29226246f6 i2c_master: improve sending stop and integrated it into read function 2020-02-27 13:08:55 +01:00
King Kévin 4141c43682 uart: increase index type to allow larger buffer 2020-02-19 21:07:58 +01:00
King Kévin becf280d9a flash_internal: fix, EEPROM now grows from the end since invalidating does not work 2020-02-19 20:59:26 +01:00
King Kévin b7e72bba67 flash_internal: use common page size and flash end address 2020-02-19 20:58:32 +01:00
King Kévin c30b3ecb48 led_tm1637: allow number to be displayed without leading 0 2020-02-18 17:28:34 +01:00
King Kévin d2d09edaf8 vfd_hv518: fix all compilation and definition issues, and put some spaces 2020-02-17 18:04:38 +01:00
King Kévin 1dc728e40e sensor_dht22: minor, add space around operators 2020-02-17 15:24:21 +01:00
King Kévin 4a1470401c rtc_dcf77: minor, use newer GPIO definition 2020-02-17 15:19:21 +01:00
King Kévin 4b2e43a94b rtc_dcf77: minor, add space around operators 2020-02-17 15:16:04 +01:00
King Kévin 48bc700ed7 onewire_slave: minor, use newer GPIO definition 2020-02-17 15:03:28 +01:00
King Kévin 842b1e26bb onewire_slave: minor, add space around operators 2020-02-17 14:59:46 +01:00
King Kévin 11e0653fba sensor_pzem: fix libopencm3 interface 2020-02-17 14:52:37 +01:00
King Kévin 6a0b0bf7d1 sensor_pzem: fix USART GPIO definitions 2020-02-17 14:52:16 +01:00
King Kévin 41bd39f123 onewire_master: minor, add space around operators 2020-02-17 14:45:12 +01:00
King Kévin 7681007d95 onewire_master: minor, use newer GPIO definitions 2020-02-17 14:44:12 +01:00
King Kévin 6b042506b9 sensor_dht11: minor, put spaces around operators 2020-02-17 14:32:49 +01:00
King Kévin e88177d785 led_tm1637: minor, put spaces around operators 2020-02-17 14:27:16 +01:00
King Kévin 2896185e45 led_tm1637: minor, use new GPIO definition 2020-02-17 14:23:15 +01:00
King Kévin 3141075273 sensor_sdm120: fix, update to libopencm3 2020-02-17 14:17:55 +01:00
King Kévin 4a637504dd sensor_sdm120: minor, put spaces around operators 2020-02-17 14:17:18 +01:00
King Kévin 011d12330c sensor_sdm120: minor, update GPIO definitions 2020-02-17 14:15:50 +01:00
King Kévin 4c6629d441 uart_soft: minor, put spaces around operators 2020-02-17 14:07:20 +01:00
King Kévin ddd0d18d15 microwire_master: minor, put spaces around operators 2020-02-17 14:06:15 +01:00
King Kévin 55e44d4c5e microwire_master: fix register redefinition 2020-02-17 14:05:34 +01:00
King Kévin 0454647d2d microwire_master: minor, use simpler GPIO definitions 2020-02-17 14:04:41 +01:00
King Kévin 330a08adc0 ws2812b: minor, put spaces around operators 2020-02-17 14:01:54 +01:00
King Kévin a880df4c0a update copyright 2020-02-17 14:00:48 +01:00
King Kévin 6e65b1b328 replace removed libopencm3 timer_reset 2020-02-17 13:59:49 +01:00
King Kévin cf662f38f5 remove incomplete ir_nikon library 2020-02-17 13:15:56 +01:00
King Kévin 52fb366a59 hd44780: use GPIO instead of I2C per default 2020-02-13 14:31:25 +01:00
King Kévin 0ce4dc6c76 hd44780: fix DL ifdef macro 2020-02-13 14:29:55 +01:00
King Kévin ff1b84f505 hd44780: fix I2C ifdef macro 2020-02-13 14:28:41 +01:00
King Kévin 3c71b83bb9 hd44780: fix GPIO calls 2020-02-13 14:23:11 +01:00
King Kévin 2d39e39999 uart: minor, improve readability 2020-02-11 12:23:10 +01:00
King Kévin 4bfcca9d50 i2c_master: fix 1 byte read 2020-02-11 12:21:35 +01:00
King Kévin 25ce80b73a i2c_master: minor, improve register read consistency 2020-02-11 12:20:13 +01:00
King Kévin 49d8d96166 dfu: fix address check 2020-01-10 12:49:45 +01:00
King Kévin 2520df3e72 flash_internal: fix provided flash size detection 2020-01-10 11:15:09 +01:00
King Kévin ac1485004e print: fix function definition 2020-01-08 20:29:09 +01:00
King Kévin 99bf7157b2 flash_internal: fix erase for any bit write 2020-01-06 13:00:46 +01:00
King Kévin 32948f9e8d DFU: flash firmware head after download to prevent starting corrupted application 2020-01-04 14:38:22 +01:00
King Kévin ee0b68e836 flash_internal: flash only when data is different 2020-01-04 14:36:13 +01:00
King Kévin f85a3d2439 flash_internal: fix error return code 2020-01-04 14:35:28 +01:00
King Kévin c7d0244f72 USB: fix disconnect 2020-01-03 20:17:29 +01:00
King Kévin 3242c6ba5c add USB-Blaster board support 2020-01-03 19:41:39 +01:00
King Kévin 3c0130ba4f USB: unify and improve USB (dis)connect 2020-01-03 19:39:41 +01:00
King Kévin 08cba3cd71 flash_internal: add emulated EEPROM functionnality 2020-01-03 18:13:05 +01:00
King Kévin 0a8b23069a flash_internal: minor, fix spacing 2020-01-03 18:13:00 +01:00
King Kévin 5ed491defb flash_internal: add page size method 2020-01-03 18:12:56 +01:00
King Kévin 822b66ea8f flash_internal: only flash relevant bits 2020-01-03 18:12:50 +01:00
King Kévin a6fb25b6c6 flash_internal: minor, update doc/comment 2020-01-03 18:12:44 +01:00
King Kévin fe16ad18cd flash_internal: minor, fix spacing 2020-01-03 18:09:12 +01:00
King Kévin d51c18ab5a doc: fix documentation 2020-01-03 00:16:59 +01:00
King Kévin 4c24fc126b print: add puts 2019-12-21 19:48:55 +01:00
King Kévin 1ea8b44b2b bootloader: use magic value in RAM instead of peripheral 2019-12-21 19:48:00 +01:00
King Kévin 20ad271b6a printf: minor, fix doc and spacing 2019-12-21 19:43:40 +01:00
King Kévin 0774eaa7b2 USB: minor, improve shutdown 2019-12-21 19:34:11 +01:00
King Kévin c8abc4ea70 printf: minor, fix doc 2019-12-21 19:34:11 +01:00
King Kévin 9f70665fbc i2c_master: minor, revert test change 2019-12-12 21:35:10 +01:00
King Kévin a751b95352 lcd_hd44780: add I2C backpack support 2019-12-12 21:31:51 +01:00