Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The µC/TFTPs module has to be configured according to your specific needs. A template configuration file (tftp-s_cfg.h) is included in the module package (see section Directories and Files), and this configuration should be copied into your application directory and included to your project. Here is the list of the values and description of each of the configuration variable. However, keep in mind that future releases of this module might include more configuration options.

 

#define  TFTPs_CFG_IPPORT                  69
Defines the UDP port µC/TFTPs will receive requests on. The default value (69) is the one specified in RFC #1350.
 
#define  TFTPs_CFG_MAX_RX_TIMEOUT_MS     5000 
#define TFTPs_CFG_MAX_TX_TIMEOUT_MS 5000
Define the maximum receive and transmit timeouts in milliseconds.
 
#define  TFTPs_TRACE_HIST_SIZE             16
Define the maximum number of trace items to keep in memory.

OS Task Configuration

#define  TFTPs_OS_CFG_TASK_PRIO            20

Value of the priority for the µC/TFTPs task. The value assigned depends upon the software architecture of your system, and on the importance of this module’s response time relative to other tasks.

 

#define  TFTPs_OS_CFG_TASK_STK_SIZE       512

Value of the stack size, in number of stack-sized words, for the µC/TFTPs task. This default value should be sufficient for most environments, but you should check this on your system for acceptable reliability or performance.