X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=target_firmware%2Fmagpie_fw_dev%2Ftarget%2Finit%2Finit.c;h=b6e6a4456c8b860dee9575e945f74938f34994a8;hb=435a54551879528a69aa0ad5f8f5f38ee5b5e222;hp=0e6efaaa013b57161fe63b53a1871356ae096a91;hpb=e9e39b3bf6b4de3b609a5e4ec941254aecfe5cf4;p=open-ath9k-htc-firmware.git diff --git a/target_firmware/magpie_fw_dev/target/init/init.c b/target_firmware/magpie_fw_dev/target/init/init.c index 0e6efaa..b6e6a44 100755 --- a/target_firmware/magpie_fw_dev/target/init/init.c +++ b/target_firmware/magpie_fw_dev/target/init/init.c @@ -60,7 +60,7 @@ uint32_t idle_cnt = 0; #if defined(PROJECT_K2) // save the ROM printf function point -uint32_t save_cmnos_printf; +int (* save_cmnos_printf)(const char * fmt, ...); #endif #define ATH_DATE_STRING __DATE__" "__TIME__ @@ -86,7 +86,7 @@ void fatal_exception_func() void change_magpie_clk(void) { - volatile uint32_t i=0, rd_data; + volatile uint32_t rd_data; HAL_WORD_REG_WRITE(0x00056004, 0x11); rd_data = HAL_WORD_REG_READ(0x00056004) & 0x1; @@ -218,7 +218,6 @@ void AR6002_fatal_exception_handler_patch(CPU_exception_frame_t *exc_frame) { struct register_dump_s dump; - void (*reset_func)(void) = (void*)(RESET_VECTOR_ADDRESS); uint32_t exc_cause, exc_vaddr; asm volatile("rsr %0,%1" : "=r" (exc_cause) : "n" (EXCCAUSE)); asm volatile("rsr %0,%1" : "=r" (exc_vaddr) : "n" (EXCVADDR)); @@ -380,17 +379,9 @@ void wlan_task(void) A_TASKLET_RUN(); A_TIMER_RUN(); - /* Low priority tasks */ - if ((loop_low & 0xf) == 0) { - } - /* Very low priority tasks */ - if ((loop_low & 0xfff) == 0x7) { - if ((loop_low & 0x1000) == 0) { - A_DBG_TASK(); - } else { - } - } + if ((loop_low & 0x1fff) == 0x7) + A_DBG_TASK(); idle_task(); }