API  2.2
TSmarT Software Library
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Functions

Functions

uint8_t TSMART_WDG_Config (uint32_t TSMART_WDG_time_bomb)
 Initialize the Watchdog. More...
 
uint8_t TSMART_WDG_Start (void)
 Activates the Independent Watchdog. More...
 
uint8_t TSMART_WDG_Reset (void)
 Resets the Independent Watchdog. More...
 
uint8_t TSMART_WDG_INIT (void)
 Initialize Window Watchdog. More...
 

Detailed Description

Function Documentation

uint8_t TSMART_WDG_Config ( uint32_t  TSMART_WDG_time_bomb)

Initialize the Watchdog.

This functions initializes the hardware configuration of the Independent Watchdog by providing the "Time bomb" value.

Parameters
TSMART_WDG_time_bombSets reset time value. This parameter can be one of the following values:
  • TSMART_WDG_400: time bomb = 400 milliseconds
  • TSMART_WDG_800: time bomb = 800 milliseconds
  • TSMART_WDG_1600: time bomb = 1600 milliseconds
  • TSMART_WDG_3200: time bomb = 3200 milliseconds
  • TSMART_WDG_6500: time bomb = 6500 milliseconds
  • TSMART_WDG_13000: time bomb = 13000 milliseconds
  • TSMART_WDG_26000: time bomb = 26000 milliseconds
Note
These are not the exact time values. For a more accuracy timing check STM32F10X manual, table 82 on page 403
Returns
  • TSMART_PASS - Success
Examples:
watchdog.c.
uint8_t TSMART_WDG_INIT ( void  )

Initialize Window Watchdog.

Initialize WWDG, the refresh of this wathdog is automatically made in the Systick Handler

Returns
  • 1 - Window Watchdog reset
  • 0 - Not Window Watchdog reset
Examples:
watchdog.c.
uint8_t TSMART_WDG_Reset ( void  )

Resets the Independent Watchdog.

Resets the independent Watchdog counter.

Returns
  • TSMART_PASS - Success
Examples:
watchdog.c.
uint8_t TSMART_WDG_Start ( void  )

Activates the Independent Watchdog.

Returns
  • TSMART_PASS - Success
Examples:
watchdog.c.