carl9170 firmware: boot-up interrupt 1.8.5
authorChristian Lamparter <chunkeey@googlemail.com>
Sat, 14 Aug 2010 21:03:42 +0000 (23:03 +0200)
committerChristian Lamparter <chunkeey@googlemail.com>
Sat, 14 Aug 2010 21:03:42 +0000 (23:03 +0200)
The firmware now generates an interrupt after it booted.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
carlfw/src/main.c
include/shared/fwcmd.h

index 9b2a09c5ec6ebb1c69ea111187e540f2f85dce20..f62e5ee7b6ce612a1c786ebf4a049fe990e76c53 100644 (file)
@@ -149,5 +149,10 @@ void __attribute__((noreturn)) start(void)
            " ~`!1@2#3$4%%5^6&7*8(9)0_-+={[}]|\\:;\"'<,>.?/");
 #endif /* CONFIG_CARL9170FW_DEBUG */
 
+       /*
+        * Tell the host, that the firmware has booted and is
+        * now ready to process requests.
+        */
+       send_cmd_to_host(0, CARL9170_RSP_BOOT, 0x00, NULL);
        main_loop();
 }
index af2fbbe89648d54304dfb6accea9f77872183f47..be62c9ce4dac5da331bdb43ba99e80af15fdd0b1 100644 (file)
@@ -85,6 +85,7 @@ enum carl9170_cmd_oids {
        CARL9170_RSP_HEXDUMP            = 0xcc,
        CARL9170_RSP_RADAR              = 0xcd,
        CARL9170_RSP_GPIO               = 0xce,
+       CARL9170_RSP_BOOT               = 0xcf,
 };
 
 struct carl9170_set_key_cmd {