Browse Source

update

master
zhaohe 3 years ago
parent
commit
d84ac1393b
  1. 18
      APP/main.c
  2. 1159
      project_ozone/Listings/project_o.map
  3. 18
      project_ozone/project_o.uvgui.zel

18
APP/main.c

@ -257,6 +257,19 @@ static void mf_init_all_subdevice_state() {
port_led_b_set(false);
}
void WDTInit(void) {
IWDT_InitStruType x;
x.WDT_Tms = 10000;
x.WDT_IE = Enable; /* IWDT中断使能 */
x.WDT_Rst = Enable; /* IWDT复位使能 */
x.WDT_Clock = IWDT_CLOCK_WDT; /* LRC */
IWDT_Init(&x);
/* 使能IWDT */
IWDT_Enable();
}
int main(void) {
SystemInit(); //
DeviceClockAllEnable(); //
@ -271,6 +284,7 @@ int main(void) {
printf("= version : %s\n", VERSION); //
printf("=\n"); //
WDTInit();
/*组件初始化*/
zkey_init(&key_module); //
@ -279,6 +293,7 @@ int main(void) {
* @brief
* 20k起步50hz100ms计算功率
*/
while (true) {
//
DO_IT_EACH_MS(KEY_PERIOD) { zkey_do_loop_in_each_period(NULL); }
@ -292,5 +307,8 @@ int main(void) {
hcis_shcedule();
//Schedule
this_module_schedule();
//
if (0x01 == IWDT_GetFlagStatus()) IWDT_Clear();
}
}

1159
project_ozone/Listings/project_o.map
File diff suppressed because it is too large
View File

18
project_ozone/project_o.uvgui.zel
File diff suppressed because it is too large
View File

Loading…
Cancel
Save