From 20650b9c03dbb7e6dc7272f297daa8395e2b3e1a Mon Sep 17 00:00:00 2001 From: Sander Speetjens Date: Mon, 6 Nov 2023 21:53:06 +0100 Subject: [PATCH] TFTP Change headers + Add logging --- project/Core/Inc/tftp.h | 8 +++++--- project/Core/Src/tftp.c | 16 +++++++++------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/project/Core/Inc/tftp.h b/project/Core/Inc/tftp.h index 6446e4e..f4b152b 100644 --- a/project/Core/Inc/tftp.h +++ b/project/Core/Inc/tftp.h @@ -1,6 +1,8 @@ -// -// Created by sanderspeetjens on 06/11/23. -// +/** + * @file tftp.h + * @brief tftp server + * @author Speetjens S. + */ #ifndef PROJECT_TFTP_H #define PROJECT_TFTP_H diff --git a/project/Core/Src/tftp.c b/project/Core/Src/tftp.c index 9876e9c..e219c54 100644 --- a/project/Core/Src/tftp.c +++ b/project/Core/Src/tftp.c @@ -1,24 +1,26 @@ -// -// Created by sanderspeetjens on 06/11/23. -// +/** + * @file tftp.c + * @brief tftp server + * @author Speetjens S. + */ #include "tftp.h" static const char* TAG = "tftp_server"; void *tftp_open(const char *fname, const char *mode, u8_t write) { - + LOG_INFO(TAG, "Opening %s", fname); } void tftp_close(void *handle) { - + LOG_INFO(TAG, "closing file"); } int tftp_read(void* handle, void* buf, int bytes) { - + LOG_INFO(TAG, "reading file"); } int tftp_write(void* handle, struct pbuf* p) { - + LOG_INFO(TAG, "Writing file"); } struct tftp_context tftpContext_s = {