/* configure the free watchdog timer counter window value  */
ErrStatus fwdgt_window_value_config(uint16_t window_value)
/* configure the free watchdog timer counter window value  */
ErrStatus fwdgt_window_value_config(uint16_t window_value)
{
    uint32_t time_index = FWDGT_WND_TIMEOUT;
    uint32_t flag_status = RESET;
    FWDGT_CTL = FWDGT_WRITEACCESS_ENABLE;
    do{
       flag_status = FWDGT_STAT & FWDGT_STAT_WUD;
    }while((--time_index > 0) && ((uint32_t)RESET != flag_status));
    if ((uint32_t)RESET != flag_status)
        return ERROR; 
    FWDGT_WND = (uint32_t)WND_WND(window_value);
    return SUCCESS;
}