platform: Moved the aux serial functions into their own header

This commit is contained in:
dragonmux 2022-08-19 00:55:03 +01:00 committed by Piotr Esden-Tempski
parent f5ecae48f1
commit 04cf410247
15 changed files with 42 additions and 4 deletions

View File

@ -25,6 +25,7 @@
#include "general.h"
#include "usb.h"
#include "usbuart.h"
#include "aux_serial.h"
#include "morse.h"
#include <libopencm3/stm32/f4/rcc.h>

View File

@ -25,6 +25,7 @@
#include "general.h"
#include "usb.h"
#include "usbuart.h"
#include "aux_serial.h"
#include "morse.h"
#include <libopencm3/stm32/rcc.h>

View File

@ -31,6 +31,7 @@
#include "general.h"
#include "usbuart.h"
#include "usb.h"
#include "aux_serial.h"
void aux_serial_set_encoding(struct usb_cdc_line_coding *coding)
{

View File

@ -0,0 +1,29 @@
/*
* This file is part of the Black Magic Debug project.
*
* Copyright (C) 2022 1BitSquared <info@1bitsquared.com>
* Written by Rachel Mant <git@dragonmux.network>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef AUX_SERIAL_H
#define AUX_SERIAL_H
#include <libopencm3/usb/usbd.h>
#include <libopencm3/usb/cdc.h>
void aux_serial_init(void);
void aux_serial_set_encoding(struct usb_cdc_line_coding *coding);
#endif /*AUX_SERIAL_H*/

View File

@ -47,6 +47,7 @@
#include "traceswo.h"
#endif
#include "usbuart.h"
#include "aux_serial.h"
#include <libopencm3/cm3/cortex.h>
#include <libopencm3/cm3/nvic.h>

View File

@ -21,13 +21,9 @@
#define __USBUART_H
#include <libopencm3/usb/usbd.h>
#include <libopencm3/usb/cdc.h>
#include "general.h"
void aux_serial_init(void);
void aux_serial_set_encoding(struct usb_cdc_line_coding *coding);
void usbuart_usb_out_cb(usbd_device *dev, uint8_t ep);
void usbuart_usb_in_cb(usbd_device *dev, uint8_t ep);

View File

@ -24,6 +24,7 @@
#include "general.h"
#include "usb.h"
#include "usbuart.h"
#include "aux_serial.h"
#include "morse.h"
#include <libopencm3/stm32/rcc.h>

View File

@ -24,6 +24,7 @@
#include "general.h"
#include "usb.h"
#include "usbuart.h"
#include "aux_serial.h"
#include "morse.h"
#include <libopencm3/stm32/f3/rcc.h>

View File

@ -25,6 +25,7 @@
#include "general.h"
#include "usb.h"
#include "usbuart.h"
#include "aux_serial.h"
#include "morse.h"
#include <libopencm3/stm32/rcc.h>

View File

@ -25,6 +25,7 @@
#include "general.h"
#include "usb.h"
#include "usbuart.h"
#include "aux_serial.h"
#include "morse.h"
#include <libopencm3/stm32/rcc.h>

View File

@ -18,6 +18,7 @@
#include "gdb_if.h"
#include "usb.h"
#include "usbuart.h"
#include "aux_serial.h"
#include <libopencm3/lm4f/rcc.h>
#include <libopencm3/lm4f/nvic.h>

View File

@ -25,6 +25,7 @@
#include "general.h"
#include "usb.h"
#include "usbuart.h"
#include "aux_serial.h"
#include "morse.h"
#include <libopencm3/stm32/rcc.h>

View File

@ -25,6 +25,7 @@
#include "general.h"
#include "usb.h"
#include "usbuart.h"
#include "aux_serial.h"
#include <libopencm3/stm32/rcc.h>
#include <libopencm3/cm3/scb.h>

View File

@ -31,6 +31,7 @@
#include "general.h"
#include "usbuart.h"
#include "usb.h"
#include "aux_serial.h"
#ifdef DMA_STREAM0
#define dma_channel_reset(dma, channel) dma_stream_reset(dma, channel)

View File

@ -26,6 +26,7 @@
#include "general.h"
#include "usb.h"
#include "usbuart.h"
#include "aux_serial.h"
#include <libopencm3/stm32/rcc.h>
#include <libopencm3/cm3/scb.h>