Rafael Silva
664d09786a
workflows: add size diff workflow
2022-08-24 17:24:28 -04:00
Rafael Silva
deb6198921
target_flash: swap while for forloop in buffered flush
2022-08-24 16:03:40 -04:00
Rafael Silva
1a1f4b76ff
target_flash: change return types to bool
2022-08-24 16:03:40 -04:00
Rafael Silva
aec7460426
target_flash: use new variable for buf size
...
in cases where blocksize is very large, the allocation may fail due to its size, allow specifying smaller buffer sizes
2022-08-24 16:03:40 -04:00
Rafael Silva
be4b07f5ef
target_flash: optimize flash prepare/done calls on erase
2022-08-24 16:03:40 -04:00
Rafael Silva
7f25846d36
target_flash: rework buffered writes
...
ensures aligned writes (aligned to ->writesize)
allows writes to flash smaller than buffer size
deallocate buffer only when done flashing
ensure flashing when writing intermittent blocks of data
new "prepare -> write -> done" function call flow
2022-08-24 16:03:40 -04:00
Rafael Silva
44a028344a
target_flash: add prepare routine and extra return checks
2022-08-24 16:03:40 -04:00
Rafael Silva
e72edc0579
target_flash: abstract target flash mode/flash preparation
2022-08-24 16:03:40 -04:00
Rafael Silva
520be57e3d
target: split target flash functions into seperate file
2022-08-24 16:03:40 -04:00
Rafael Silva
3d3dd21d48
target: ensure aligned erases
2022-08-24 16:03:40 -04:00
Rafael Silva
89a5c2a8a2
target: target_addr type name cleanup
2022-08-24 16:03:40 -04:00
Rafael Silva
21922676f9
target: target_flash type cleanup
2022-08-24 16:03:40 -04:00
Piotr Esden-Tempski
31adb2f94d
misc: Cleanup include guards.
...
Using underscore prefixes is not allowed for include guards as all
defines starting with underscore are reserved. At the same time made
file ends and spacing and style of include guards consistent in all
headers.
The new style of include guards also includes the directory of the
include file relative to `src` directory to prevent potential future
issues where we might end up with a name clash across directories.
2022-08-23 15:06:21 -04:00
Piotr Esden-Tempski
12771eeb40
Added two missing license headers in BMDA.
2022-08-23 10:20:44 -04:00
Piotr Esden-Tempski
93b31d9cf0
swo-docs: Converted to markdown and cleaned up a bit.
2022-08-23 10:19:43 -04:00
Piotr Esden-Tempski
470f66f387
rtt: Cleaned up updated and improved the RTT usage documentation.
...
This resulted in a small addition to the drivers readme adding some
basic udev rule installation instructions.
2022-08-22 20:36:20 -04:00
Piotr Esden-Tempski
5cc2ff0f3a
ch32f1: Correct the debug output format string.
2022-08-22 17:17:44 -04:00
dragonmux
81401ea1d7
rtt: Added missing licensing statements based on the rtt.c/rtt_if.c implementations
2022-08-22 12:59:24 -07:00
dragonmux
f7b9c91c6d
usb_serial: Dealt with how to build with ENABLE_RTT=1
2022-08-22 12:59:24 -07:00
dragonmux
b02e305a70
aux_serial: Redone the LED status system and cleaned up the last of the old usbuart stuff
2022-08-22 12:59:24 -07:00
dragonmux
6747ad36d7
platforms: Removed the usbuart.h from across the platform impls as it was needless contamination
2022-08-22 12:59:24 -07:00
dragonmux
b9b88fbb87
usbuart: Moved the public debug serial definitions into usb_serial.h and updated the copyright notice now the file's completely rewritten
2022-08-22 12:59:24 -07:00
dragonmux
6427b987bf
usbuart: Moved the last of the AUX serial definitions into aux_serial.h
2022-08-22 12:59:24 -07:00
dragonmux
a424a17317
f3: Fixed the build by not advertising PLATFORM_HAS_DEBUG as the part cannot do this.
2022-08-22 12:59:24 -07:00
dragonmux
b870ed532c
platform: Cleaanup in the ENABLE_DEBUG definitions in the platform headers
2022-08-22 12:59:24 -07:00
dragonmux
f0d85828c9
f072: Fixed the build by not advertising PLATFORM_HAS_DEBUG as the part cannot do this.
2022-08-22 12:59:24 -07:00
dragonmux
288929c481
usb_serial: ENABLE_DEBUG cleanup for when the platform is STM32 but doesn't support debug
2022-08-22 12:59:24 -07:00
dragonmux
da3fece750
aux_serial: launchpad-icdi build hygene
2022-08-22 12:59:24 -07:00
dragonmux
a853fc4f54
usb_serial: launchpad-icdi build hygene
2022-08-22 12:59:24 -07:00
dragonmux
40ee8c3f37
usb_serial: Fixed where the debug serial callbacks were so ENABLE_DEBUG=0 builds work
2022-08-22 12:59:24 -07:00
dragonmux
1a7af52edc
usb_serial: Fixed up the nomenclature for the USB serial interfaces
2022-08-22 12:59:24 -07:00
dragonmux
0a6621a322
usb_serial: Fixed the behaviour of debug_uart_write() when the FIFO buffer gets full
2022-08-22 12:59:24 -07:00
dragonmux
0c2495ea25
usb_serial: Renamed aux_serial_receive_complete -> debug_serial_send_complete
2022-08-22 12:59:24 -07:00
dragonmux
7779ab36fb
usb_serial: Renamed the debug FIFO buffer and variables
2022-08-22 12:59:24 -07:00
dragonmux
39f1604ef0
usb_serial: Cleaned up a bit more in debug_uart_send_aux_serial_data()
2022-08-22 12:59:24 -07:00
dragonmux
d0915a1312
usbuart: Removed the STM32 version of usbuart.c now it's not required
2022-08-22 12:59:24 -07:00
dragonmux
9ca1b645bb
usbuart: Moved the debug FIFO buffer definitions into usb_serial.c
2022-08-22 12:59:24 -07:00
dragonmux
a1e0a9c645
aux_serial: Moved aux_serial_stage_buffer() to usb_serial.c as debug_serial_fifo_send()
2022-08-22 12:59:24 -07:00
dragonmux
30bfb00414
usb_serial: Refactored out some of the debug buffer logic
2022-08-22 12:59:24 -07:00
dragonmux
3d3d8c9adb
usbuart: Cleanup of redundant definitions
2022-08-22 12:59:24 -07:00
dragonmux
3d707b4497
usbuart: Moved usbuart_set_led_state() into aux_serial.c
2022-08-22 12:59:24 -07:00
dragonmux
9cb9cda62f
usbuart: Removed the TM4C version of usbuart.c as it's now not required
2022-08-22 12:59:24 -07:00
dragonmux
60b91e1da9
usbuart: Moved the AUX serial receive buffer definition into aux_serial.c
2022-08-22 12:59:24 -07:00
dragonmux
62b1a33188
aux_serial: Cleaned up the receive index counters
2022-08-22 12:59:24 -07:00
dragonmux
2657594a66
usb_serial: Refactored out the code that deals with and adjusts the AUX serial receive FIFOs
2022-08-22 12:59:24 -07:00
dragonmux
cd67c7de29
usb_serial: Begun refactoring out components of debug_uart_send_aux_serial_data()
2022-08-22 12:59:24 -07:00
dragonmux
90a0931f78
usbuart: Renamed buf_rx -> aux_serial_receive_buffer
2022-08-22 12:59:24 -07:00
dragonmux
8a3b8a90e8
aux_serial: Renamed the receive FIFO indexes
2022-08-22 12:59:24 -07:00
dragonmux
af6f2ed197
usbuart: Moved the definitions of the AUX serial receive buffer into aux_serial.c
2022-08-22 12:59:24 -07:00
dragonmux
35ae0adcd1
aux_serial: Cleaned up the buffer sizing macros
2022-08-22 12:59:24 -07:00