...
As indicated in the Figure - TFTPs Folder Tree, all the files in the "Source" folder of the µC/TFTPs parent directory must be added to your project tree. Furthermore, the adequate OS port must be added. uCOS-II and uCOS-III ports are available in the "OS" folder.
Configuring Compiler settings
...
\Micrium\Software\uC-TFTPs
...
Copy the file from the µC/TFTPs configuration folder into your application as illustrated below.
Panel | ||
---|---|---|
| ||
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 | ||||||
---|---|---|---|---|---|---|
| ||||||
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 | ||
---|---|---|
| ||
|