altos: Work on MAX6691 driver
[fw/altos] / src / stm / ao_usb_stm.c
index b06814d23184fcf992b7df4fc880fd598986c31c..7f81e20e67c01b948f9703659ffc3c1acf4b87ca 100644 (file)
@@ -829,7 +829,7 @@ stm_usb_lp_isr(void)
 }
 
 void
-stm_usb_fs_wkup(void)
+stm_usb_fs_wkup_isr(void)
 {
        /* USB wakeup, just clear the bit for now */
        stm_usb.istr &= ~(1 << STM_USB_ISTR_WKUP);
@@ -932,7 +932,7 @@ _ao_usb_out_recv(void)
        _ao_usb_set_stat_rx(AO_USB_OUT_EPR, STM_USB_EPR_STAT_RX_VALID);
 }
 
-int
+static int
 _ao_usb_pollchar(void)
 {
        uint8_t c;
@@ -1079,7 +1079,7 @@ ao_usb_irq(void)
                control_count, out_count, in_count, int_count, reset_count);
 }
 
-__code struct ao_cmds ao_usb_cmds[] = {
+const struct ao_cmds ao_usb_cmds[] = {
        { ao_usb_irq, "I\0Show USB interrupt counts" },
        { 0, NULL }
 };