...
\Micrium\Software\uC-TFTPs
...
Copy the file from the µC/TFTPs configuration folder into your application as illustrated below.
Panel |
---|
title | Figure - TFTPs Template File Copy |
---|
|
Image Added |
Adding µC/TFTPs Example Application Code
...
Note that some sections of the source code have been removed or modified to help focus on the µC/TFTPs module use.
Code Block |
---|
language | cpp |
---|
title | Listing - TFTPs Example Application Code |
---|
linenumbers | true |
---|
|
void AppTaskStart (void *parg)
{
TFTPs_ERR err_tftps;
App_InitFS(); /* See Note #1. */
App_InitTCPIP(); /* See Note #2. */
printf("Initialize TFTP server...\n\r");
TFTPs_Init(&TFTPs_Cfg, &TFTPs_TaskCfg, &err_tftps); /* See Note #3. */
TFTPs_En(); /* See Note #4. |
...
Panel |
---|
|
- Initialization of the µC/FS file system.
- Initialization of the µC/TCP-IP stack.
- Initialization of the µC/TFTPs module.
- Enable TFTP Server. When this function returns, the system is ready to accept TFTP requests from other hosts on the network.
|