20 #include "LLWATCHDOG_TIMER_configuration.h" 21 #include "LLWATCHDOG_TIMER_impl.h" 22 #include "watchdog_timer_helper.h" 38 #if WATCHDOG_TIMER_REALTEK_AMEBAD_CONFIGURATION_VERSION != 1 39 #error "Version of the configuration file watchdog_timer_realtek_AmebaD_configuration.h is not compatible with this implementation." 42 #if WATCHDOG_TIMER_TIMEOUT_MS <= 0 43 #error "Illegal watchdog timeout value defined with the macro WATCHDOG_TIMER_TIMEOUT_MS. The timeout value must be positive." 49 #if WATCHDOG_TIMER_MODE == WATCHDOG_TIMER_INTERRUPT_MODE 50 watchdog_irq_init((wdt_irq_handler)watchdog_timer_irq_handler, 0);
52 return WATCHDOG_TIMER_OK;
55 int32_t LLWATCHDOG_TIMER_IMPL_start_action(
void){
57 return WATCHDOG_TIMER_OK;
60 int32_t LLWATCHDOG_TIMER_IMPL_stop_action(
void){
62 return WATCHDOG_TIMER_OK;
65 int32_t LLWATCHDOG_TIMER_IMPL_refresh_action(
void){
67 return WATCHDOG_TIMER_OK;
70 uint8_t LLWATCHDOG_TIMER_IMPL_isResetCause_action(
void){
71 if (BIT_BOOT_KM4WDG_RESET_HAPPEN & BOOT_Reason()){
72 return WATCHDOG_TIMER_TRUE;
74 return WATCHDOG_TIMER_FALSE;
77 int32_t LLWATCHDOG_TIMER_IMPL_getWatchdogTimeoutMs_action(
void){
int32_t LLWATCHDOG_TIMER_IMPL_init_action(void)
WATCHDOG TIMER REALTEK AMEBAD CCO configuration file.
#define WATCHDOG_TIMER_TIMEOUT_MS
The timeout (in milliseconds) of the hardware watchdog timer.