watchdog-timer-realtek-amebad  2.1.0
watchdog-timer-realtek-amebad
Functions
watchdog_timer_realtek_AmebaD.c File Reference

WATCHDOG TIMER REALTEK AMEBAD CCO implementation file. More...

#include <watchdog_timer_realtek_AmebaD_configuration.h>
#include "wdt_api.h"
#include "LLWATCHDOG_TIMER_configuration.h"
#include "LLWATCHDOG_TIMER_impl.h"
#include "watchdog_timer_helper.h"

Go to the source code of this file.

Functions

int32_t LLWATCHDOG_TIMER_IMPL_init_action (void)
 
int32_t LLWATCHDOG_TIMER_IMPL_start_action (void)
 
int32_t LLWATCHDOG_TIMER_IMPL_stop_action (void)
 
int32_t LLWATCHDOG_TIMER_IMPL_refresh_action (void)
 
uint8_t LLWATCHDOG_TIMER_IMPL_isResetCause_action (void)
 
int32_t LLWATCHDOG_TIMER_IMPL_getWatchdogTimeoutMs_action (void)
 

Detailed Description

WATCHDOG TIMER REALTEK AMEBAD CCO implementation file.

Author
MicroEJ Developer Team
Version
2.1.0
Date
2 May 2022

Definition in file watchdog_timer_realtek_AmebaD.c.

Function Documentation

§ LLWATCHDOG_TIMER_IMPL_init_action()

int32_t LLWATCHDOG_TIMER_IMPL_init_action ( void  )

Sanity check between the expected version of the configuration and the actual version of the configuration. If an error is raised here, it means that a new version of the CCO has been installed and the configuration watchdog_realtek_AmebaD.h must be updated based on the one provided by the new CCO version.

Definition at line 47 of file watchdog_timer_realtek_AmebaD.c.

47  {
48  watchdog_init(WATCHDOG_TIMER_TIMEOUT_MS);
49 #if WATCHDOG_TIMER_MODE == WATCHDOG_TIMER_INTERRUPT_MODE
50  watchdog_irq_init((wdt_irq_handler)watchdog_timer_irq_handler, 0);
51 #endif
52  return WATCHDOG_TIMER_OK;
53 }
#define WATCHDOG_TIMER_TIMEOUT_MS
The timeout (in milliseconds) of the hardware watchdog timer.