Add initial framework, not doing anything at the moment
This commit is contained in:
2023-11-06 21:38:19 +01:00
parent a825aa4049
commit d84bd877e1
2 changed files with 49 additions and 0 deletions

37
project/Core/Src/tftp.c Normal file
View File

@@ -0,0 +1,37 @@
//
// Created by sanderspeetjens on 06/11/23.
//
#include "tftp.h"
void *tftp_open(const char *fname, const char *mode, u8_t write)
{
}
void tftp_close(void *handle)
{
}
int tftp_read(void* handle, void* buf, int bytes)
{
}
int tftp_write(void* handle, struct pbuf* p)
{
}
struct tftp_context tftpContext_s =
{
tftp_open,
tftp_close,
tftp_read,
tftp_write
};
void tftp_server_init(void)
{
tftp_init(&tftpContext_s);
}