usb: Moved usb_get_config() into the main usb header

This commit is contained in:
dragonmux 2022-08-10 10:19:55 +01:00 committed by Piotr Esden-Tempski
parent 832c056e6d
commit aa6d0fa7e4
4 changed files with 7 additions and 5 deletions

View File

@ -33,8 +33,6 @@
#include "usb.h"
void usb_serial_set_config(usbd_device *dev, uint16_t wValue);
/* Returns current usb configuration, or 0 if not configured. */
uint16_t usb_get_config(void);
bool gdb_uart_get_dtr(void);

View File

@ -45,4 +45,7 @@ extern uint16_t usb_config;
void blackmagic_usb_init(void);
/* Returns current usb configuration, or 0 if not configured. */
uint16_t usb_get_config(void);
#endif /*USB_H*/

View File

@ -29,7 +29,7 @@
#include <libopencm3/usb/cdc.h>
#include "general.h"
#include "cdcacm.h"
#include "usb.h"
#ifdef DMA_STREAM0
#define dma_channel_reset(dma, channel) dma_stream_reset(dma, channel)

View File

@ -19,8 +19,6 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "general.h"
#include "cdcacm.h"
#include <libopencm3/cm3/nvic.h>
#include <libopencm3/cm3/scs.h>
@ -29,6 +27,9 @@
#include <libopencm3/lm4f/rcc.h>
#include <libopencm3/lm4f/uart.h>
#include "general.h"
#include "usb.h"
#define FIFO_SIZE 128
/* RX Fifo buffer */