altos: Make CDC ACM 'line coding' public
authorKeith Packard <keithp@keithp.com>
Fri, 5 May 2017 05:04:57 +0000 (22:04 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 5 May 2017 05:10:36 +0000 (22:10 -0700)
This allows other systems to see what baud rate the host has requested.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/avr/ao_usb_avr.c
src/cc1111/ao_usb.c
src/kernel/ao_usb.h
src/lpc/ao_usb_lpc.c
src/stm/ao_usb_stm.c
src/stmf0/ao_usb_stm.c

index 08950a97b0d4bb147acd2195cf73b4eb7a1bc7c1..41d3c1becbf44fbb3f47480d172ae770a528c869 100644 (file)
@@ -136,7 +136,7 @@ ISR(USB_GEN_vect)
 }
 
 
-__xdata static struct ao_usb_line_coding ao_usb_line_coding = {115200, 0, 0, 8};
+struct ao_usb_line_coding ao_usb_line_coding = {115200, 0, 0, 8};
 
 /* Walk through the list of descriptors and find a match
  */
index 7d363c08fe92ef86cdff5eec64745c43bbbf104f..259f6512bc5510f7d504fc220f56534bad4bc7c4 100644 (file)
@@ -112,7 +112,7 @@ ao_usb_ep0_flush(void)
        USBCS0 = cs0;
 }
 
-__xdata static struct ao_usb_line_coding ao_usb_line_coding = {115200, 0, 0, 8};
+__xdata struct ao_usb_line_coding ao_usb_line_coding = {115200, 0, 0, 8};
 
 /* Walk through the list of descriptors and find a match
  */
index cdea517875f2c4cad7497019cc34424029b8b01c..936d939bdd4fde1e92ae90ad9a499ae7457a3975 100644 (file)
@@ -155,6 +155,8 @@ struct ao_usb_line_coding {
        uint8_t         data_bits;
 } ;
 
+extern __xdata struct ao_usb_line_coding ao_usb_line_coding;
+
 extern __pdata uint8_t ao_usb_running;
 
 #endif /* _AO_USB_H_ */
index 5c13eb4b40f9ceda4ea620f62606163842ea5c68..c50e752883faca07f5d92b0965c203d2db160eaf 100644 (file)
@@ -477,7 +477,7 @@ ao_usb_ep0_in_start(uint16_t max)
        ao_usb_ep0_flush();
 }
 
-static struct ao_usb_line_coding ao_usb_line_coding = {115200, 0, 0, 8};
+struct ao_usb_line_coding ao_usb_line_coding = {115200, 0, 0, 8};
 
 /* Walk through the list of descriptors and find a match
  */
index 33e0617c8c4faa44cda6f73387b46aabe773546e..595bddac29c0618f35e8063c5a29dff2530314c7 100644 (file)
@@ -598,7 +598,7 @@ ao_usb_ep0_in_start(uint16_t max)
        ao_usb_ep0_flush();
 }
 
-static struct ao_usb_line_coding ao_usb_line_coding = {115200, 0, 0, 8};
+struct ao_usb_line_coding ao_usb_line_coding = {115200, 0, 0, 8};
 
 /* Walk through the list of descriptors and find a match
  */
index 652b3b6ca9facebaa742a57392f542f62e4958fa..59aed3aa8ebec1435e21db3f8e65b01b4aacc69e 100644 (file)
@@ -655,7 +655,7 @@ ao_usb_ep0_in_start(uint16_t max)
        ao_usb_ep0_flush();
 }
 
-static struct ao_usb_line_coding ao_usb_line_coding = {115200, 0, 0, 8};
+struct ao_usb_line_coding ao_usb_line_coding = {115200, 0, 0, 8};
 
 #if AO_USB_DEVICE_ID_SERIAL
 static uint8_t ao_usb_serial[2 + 48];