ATY_LIB V2_102_230218
ATY_LIB for general devices or ALGO
 
Loading...
Searching...
No Matches
watchdog_reset.c File Reference
#include "fw_hal.h"

Go to the source code of this file.

Functions

int main (void)
 

Function Documentation

◆ main()

int main ( void  )

Set countdown time to around 3 seconds(FOSC = 36.864MHz)

Definition at line 21 of file watchdog_reset.c.

22{
23 uint8_t count = 9;
26 UART1_TxString("Watchdog test restarted\r\n");
32 while(1)
33 {
34 UART1_TxString("Countdown: ");
35 UART1_TxHex(count--);
36 UART1_TxString("\r\n");
37 SYS_Delay(1000);
38 }
39}
void SYS_SetClock(void)
Definition: fw_sys.c:40
void SYS_Delay(uint16_t t)
Definition: fw_sys.c:65
@ HAL_State_ON
Definition: fw_types.h:71
unsigned char uint8_t
Definition: fw_types.h:18
void UART1_TxString(uint8_t *str)
Definition: fw_uart.c:85
@ UART1_BaudSource_Timer2
Definition: fw_uart.h:34
void UART1_TxHex(uint8_t hex)
Definition: fw_uart.c:79
void UART1_Config8bitUart(UART1_BaudSource_t baudSource, HAL_State_t _1TMode, uint32_t baudrate)
Definition: fw_uart.c:56
#define WDT_StartWatchDog()
Definition: fw_wdt.h:33
#define WDT_SetCounterPrescaler(__PRE_SCALER__)
Definition: fw_wdt.h:47