carl9170 firmware: per-vif tx sequence counter
[carl9170fw.git] / carlfw / src / main.c
index b9239c8e4969b5fcf5ca3dcc437886d8a613bb47..a88338ac79bfd7b7e839295fc9fc6800bc1a63ef 100644 (file)
@@ -29,6 +29,7 @@
 #include "printf.h"
 #include "gpio.h"
 #include "wl.h"
+#include "usb.h"
 
 #define AR9170_WATCH_DOG_TIMER            0x100
 
@@ -105,6 +106,8 @@ static void timer0_isr(void)
        gpio_timer();
 #endif /* CONFIG_CARL9170FW_GPIO_INTERRUPT */
 
+       usb_timer();
+
 #ifdef CONFIG_CARL9170FW_DEBUG_LED_HEARTBEAT
        set(AR9170_GPIO_REG_PORT_DATA, get(AR9170_GPIO_REG_PORT_DATA) ^ 1);
 #endif /* CONFIG_CARL9170FW_DEBUG_LED_HEARTBEAT */
@@ -169,7 +172,7 @@ static void __noreturn main_loop(void)
 
 void start(void)
 {
-       clock_set(true, AHB_40MHZ_OSC);
+       clock_set(AHB_40MHZ_OSC, true);
 
        /* watchdog magic pattern check */
        if ((get(AR9170_PWR_REG_WATCH_DOG_MAGIC) & 0xffff0000) == 0x12340000) {