/**************************************************************************** Copyright(c) 2019 by Aerospace C.Power (Chongqing) Microelectronics. ALL RIGHTS RESERVED. This Information is proprietary to Aerospace C.Power (Chongqing) Microelectronics and MAY NOT be copied by any method or incorporated into another program without the express written consent of Aerospace C.Power. This Information or any portion thereof remains the property of Aerospace C.Power. The Information contained herein is believed to be accurate and Aerospace C.Power assumes no responsibility or liability for its use in any way and conveys no license or title under any patent or copyright and makes no representation or warranty that this Information is free from patent or copyright infringement. ****************************************************************************/ #include "chip_reg_base.h" #include "hw_reg_api.h" #include "ahb_rf.h" #include "sram.h" #include "irq.h" #if HW_PLATFORM > HW_PLATFORM_SIMU #include "dbg_io.h" #endif #include "iot_io.h" #include "watchdog.h" #include "ahb.h" #define TEST_CPU 0 #if TEST_CPU == 0 extern iot_wdg_info g_wdg_info; extern iot_wdg_info g_wdg_timeout; extern int g_feed_dog; #else extern iot_wdg_info g_wdg_info_1; extern iot_wdg_info g_wdg_timeout_1; extern int g_feed_dog_1; #endif int cnt = 0; void wdg_main() { dbg_uart_init(); int i = 0; int j =0; int k = 0; volatile int len = 1000000; #if TEST_CPU == 0 uint32_t *reg = (uint32_t *) 0x4400e010; //wdg_init(0); #else uint32_t *reg = (uint32_t *) 0x62010010; //wdg_init(1); #endif iot_printf("aaaaaaaaa"); while(1) { for (i=0; i