This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Where is the usage of " MSEC_TO_UNITS( , ) "

Dear 

Is there some on can tell me where I can find the usage of " MSEC_TO_UNITS".

Thanks,

DI-SHENG

Parents
  • Hi

    What do you mean about "usage" exactly? The MSEC_TO_UNITS is used most of our example projects to convert milliseconds to ticks. MSEC_TO_UNITS is defined in app_util.h as the following:

    /**@brief Macro for converting milliseconds to ticks.
     *
     * @param[in] TIME          Number of milliseconds to convert.
     * @param[in] RESOLUTION    Unit to be converted to in [us/ticks].
     */
    #define MSEC_TO_UNITS(TIME, RESOLUTION) (((TIME) * 1000) / (RESOLUTION))

    Best regards,

    Simon

Reply
  • Hi

    What do you mean about "usage" exactly? The MSEC_TO_UNITS is used most of our example projects to convert milliseconds to ticks. MSEC_TO_UNITS is defined in app_util.h as the following:

    /**@brief Macro for converting milliseconds to ticks.
     *
     * @param[in] TIME          Number of milliseconds to convert.
     * @param[in] RESOLUTION    Unit to be converted to in [us/ticks].
     */
    #define MSEC_TO_UNITS(TIME, RESOLUTION) (((TIME) * 1000) / (RESOLUTION))

    Best regards,

    Simon

Children
No Data
Related