Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from this space and version 2.00.00

The µC/TFTPc module has to be configured according to your specific needs. A template Template configuration file files (tftp-c_cfg.c/h) is are included in the module package (see section Directories and Files), and this those configuration files should be copied into your app_cfg.h file. 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 TFTPc_CFG_MAX_RX_TIMEOUT_MS 5000
#define TFTPc_CFG_MAX_TX_TIMEOUT_MS 5000

...

application path. 

Micriµm provides sample configuration code free of charge; however, most sample code will likely require modifications depending on specific feature requirements and memory limitation.

There are two groups of configuration parameters: the compile-time and the run-time configuration.

Compile-Time Configuration

Argument Checking Configuration 

All API functions in μC/TFTPc include code to validate arguments that are passed to it. Specifically, μC/TFTPc checks to see if passed pointers are NULL, if arguments are within valid ranges, etc. The following constant configures additional argument checking.

Constant
Description
Possible Values
TFTPc_CFG_ARG_CHK_EXT_ENIncludes generated code to check arguments for functions that can be called by the user as well as internal functions which receive arguments from an API that the user can call.DEF_ENABLED or DEF_DISABLED

Runtime-Time Configuration

µC/TFTPc requires a run-time configuration that must be passed during the initialization. TFTPc run-time configuration template file is provided (see Directories and Files). The run-time configuration template file  (tftp-c_cfg.c ) should be copied into the application folder and modified as per individual project requirements.