The code and documentation of This section discusses the modules available for μC/TFTPc, and how they all fit together. A Windows®-based development platform is assumed. The directories and files make references to typical Windows-type directory structures. However, since μC/TFTPc is available in source form, it can also be used with any ANSI-C compatible compiler/linker and Operating System.
Below is a summary of all directories and files involved in the µC/TFTPc module are organized in a directory structure according to “AN-2002, µC/OS-II Directory Structure”. Specifically, the files may be found in the following directories:
\Micrium\Software\uC-TFTPc
This is the main directory for µC/TFTPc. . The ‘<-Cfg
’ on the far right indicates that these files are typically copied into the application (i.e., project) directory and edited based on project requirements.
Code Block |
---|
\Micrium
\Software
\uC-TFTPc
\Cfg
\Template
tftp-c_cfg.c <-Cfg
tftp-c_cfg.h <-Cfg
\Source
tftp-c.c
tftp-c.h
tftp-c_type.h |
\Micrium\Software\uC-TFTPc\Doc
This is the main directory contains all for µC/TFTPc documentation files, including this user’s manual.
\Micrium\Software\uC-TFTPc\Cfg\Template
This directory contains a template of µC/TFTPc configuration.
\Micrium\Software\uC-TFTPc\Source
This directory contains the µC/TFTPc source code. This protocol is implemented in two three FS independent files:
tftp-c.c
tftp-c.h
tftp-c_type.h
Note that the ‘-c
’ after ‘tftp
’ stands for client and thus contains ‘client’ side code.
\Micrium\Software\uC-TFTPc\FS\Template
\Micrium\Software\uC-TFTPc\FS\uC-FS-V2
\Micrium\Software\uC-TFTPc\FS\uC-FS-V3
\Micrium\Software\uC-TFTPc\FS\uC-FS-V4
This is where file system (FS) dependent code is located. µC/TFTPc is distributed with ports for several µC/FS versions. Note that it would be possible to use µC/TFTPc with other file systems by developing appropriate apps_fs.*
implementation files.
Required modules
µC/TFTPc requires the µC/CPU, µC/LIB, µC/Common and µC/TCP-IP modules. Please refer to the µC/TFTPc release notes document for required version information.