Commit Graph

552 Commits

Author SHA1 Message Date
King Kévin 793611d629 application: implement uptime 2020-12-17 12:48:37 +01:00
King Kévin ad52abc26b oled_ssd1306: adapt to ported I²C library 2020-12-17 12:48:37 +01:00
King Kévin b0f5f127f6 i2c_master: port to STM32F4 2020-12-17 12:48:37 +01:00
King Kévin a449b9b7ff global: add I²C macros 2020-12-17 12:48:37 +01:00
King Kévin 4c6e9a4fda interrupt: port to STM32F4 2020-12-17 12:48:37 +01:00
King Kévin 789b36fc21 interrupt: minor, fix comment 2020-12-17 12:48:37 +01:00
King Kévin c8861f40c4 onewire_master: port to STM32F4 2020-12-17 12:48:37 +01:00
King Kévin 77415cb41f onewire_master: minor, fix spacing 2020-12-17 12:48:37 +01:00
King Kévin 11f5bc9771 sensor_sr04: add library for HC-SR04 ultrasonic range sensor 2020-12-17 12:48:37 +01:00
King Kévin 8526dc084b global: add tim irq defines 2020-12-17 12:48:37 +01:00
King Kévin fea286914b global: improve sleep_us for STM32F4 2020-12-17 12:48:37 +01:00
King Kévin cfcc8a1bb6 Rakefile: automatically get libopencm3 2020-12-17 12:48:37 +01:00
King Kévin 510c82d00f Merge branch 'stm32f4' of ssh://git.cuvoodoo.info/stm32f1 into stm32f4 2020-12-11 00:03:15 +01:00
King Kévin 26f6de3015 sensor_max1247: STM32F4 incompatible for now 2020-12-11 00:02:44 +01:00
King Kévin a9461b53f5 README: port to F4 2020-12-11 00:00:25 +01:00
King Kévin d7b6300a50 rakefile: fix remove protection for F4 2020-12-11 00:00:25 +01:00
King Kévin d0bd71b266 application: add periodis RTC wakeup 2020-12-11 00:00:25 +01:00
King Kévin a46b6a1630 Rakefile: add macro debugging information 2020-12-11 00:00:25 +01:00
King Kévin b100c4ae13 application: RTC + date/time added 2020-12-11 00:00:25 +01:00
King Kévin a0f9b4a530 application: port to STM32F4 (RTC is not working yet) 2020-12-11 00:00:25 +01:00
King Kévin e32e27100d USB CDC ACM: fix sending loop (and spacing) 2020-12-11 00:00:25 +01:00
King Kévin 5b0523f751 uart: port to STM32F4 2020-12-11 00:00:25 +01:00
King Kévin d6cac41b78 USB CDC ACM: minor fix spacing 2020-12-11 00:00:25 +01:00
King Kévin adc62ebb9a USB CDC ACM: port to STM32F4 2020-12-11 00:00:25 +01:00
King Kévin d9a15f2daa USB CDC ACM: match serial to STM32 bootloader 2020-12-11 00:00:25 +01:00
King Kévin c4af940975 dfu: minor, improve disconnect 2020-12-11 00:00:25 +01:00
King Kévin c58d27cf2e Rakefile: add method to flash bootloader over DFU 2020-12-11 00:00:25 +01:00
King Kévin c3d7711258 global: add synchronisation barrier commands 2020-12-11 00:00:25 +01:00
King Kévin 78cb85421a global: add common function to start DFU and systeme memory 2020-12-11 00:00:25 +01:00
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 ceff33ea0e Rakefile: use derivated device properties 2020-12-11 00:00:25 +01:00
King Kévin 68955ddfec bootloader: update to work with F4 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 0b2bbf8c97 libopencm3: use branch with OTG fix
because the MINIF4 board does not have an optional pull-up resistor on D+, the device is not enumerated without this fix.
this fix is not yet in official libopencm3 master.
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 dbd0ea4d27 global: remove macro pin definition since on F4 they are not unique 2020-12-11 00:00:25 +01:00
King Kévin a878a1ad9c global: define MINIF401 button/led pins 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 609188d74e Rakefile: compile for STM32F4 2020-12-11 00:00:25 +01:00
King Kévin 63a2e5e5ff *.ld: set flash and RAM size for STM32F401xC 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 fb088e6057 global: fix ADD_SAFE macro and add function returning sum 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 ac1bea1d45 README: port to F4 2020-11-30 15:03:32 +01:00