From 8eeea06c0b97d4f05a7bf7f1747265589d6b0ca9 Mon Sep 17 00:00:00 2001 From: Bernd Herzog Date: Mon, 8 Jan 2024 20:20:11 +0100 Subject: [PATCH] Updated usb serial console (markdown) --- usb-serial-console.md | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/usb-serial-console.md b/usb-serial-console.md index d048c51..bad3b3a 100644 --- a/usb-serial-console.md +++ b/usb-serial-console.md @@ -52,17 +52,24 @@ The terminal exposes the ChibiOS/RT Shell: * button 8: Rotary Right * ls * Lists files and directories. -* rm +* mkdir +* unlink * Deletes a file. -* open +* fopen * Opens a file for reading and modification. * Note: The current position will be set to the end of the file. Use "seek 0" to move to the start of the file. -* seek +* fseek * Sets the current position inside the currently opened file. -* close +* fclose * Closes the currently opened file. -* read +* ftruncate + * removes all content in the file behind the current position. +* ftell + * shows the current position is the file. +* fread * Reads n bytes from the currently opened file. -* write + * there is a faster binary read option: frb +* fwrite * Writes bytes from the currently opened file. * ![291070841-9e4ecef9-89bb-4a47-be0c-710384a84a22](https://github.com/eried/portapack-mayhem/assets/13151053/b7156f62-537a-4a7b-9d76-0c197992a040) + * there is a faster binary write option: frw \ No newline at end of file