From b2345b66a09acb481fa9df006bb6710d4a2f112e Mon Sep 17 00:00:00 2001 From: Sander Speetjens Date: Thu, 9 Nov 2023 16:48:00 +0100 Subject: [PATCH] TFTP Add initial doc --- docs/tftp.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 docs/tftp.md diff --git a/docs/tftp.md b/docs/tftp.md new file mode 100644 index 0000000..42bfc79 --- /dev/null +++ b/docs/tftp.md @@ -0,0 +1,21 @@ +# TFTP +This is the documentation of the TFTP task +## Initialization +The TFTP task is initialized in the main function. +```c +// Initialize TFTP task +tftp_init(); +``` +## Usage +The TFTP task is used to receive and send files via TFTP. +### Receive a file +index.txt contains a list of files on the file system. +```bash +tftp -g -r +``` +### Send a file +You can only write to the following files: +- virtImage.raw +```bash +tftp -p -l +```