usbuart: Moved the public debug serial definitions into usb_serial.h and updated the copyright notice now the file's completely rewritten
This commit is contained in:
parent
6427b987bf
commit
b9b88fbb87
|
@ -35,7 +35,7 @@
|
||||||
|
|
||||||
#include "general.h"
|
#include "general.h"
|
||||||
#include "usbuart.h"
|
#include "usbuart.h"
|
||||||
#include "usb.h"
|
#include "usb_serial.h"
|
||||||
#include "aux_serial.h"
|
#include "aux_serial.h"
|
||||||
|
|
||||||
static char aux_serial_receive_buffer[AUX_UART_BUFFER_SIZE];
|
static char aux_serial_receive_buffer[AUX_UART_BUFFER_SIZE];
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
/*
|
/*
|
||||||
* This file is part of the Black Magic Debug project.
|
* This file is part of the Black Magic Debug project.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2015 Black Sphere Technologies Ltd.
|
* Copyright (C) 2022 1BitSquared <info@1bitsquared.com>
|
||||||
* Written by Gareth McMullin <gareth@blacksphere.co.nz>
|
* Written by Rachel Mant <git@dragonmux.network>
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -18,13 +18,6 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* This file implements a the USB Communications Device Class - Abstract
|
|
||||||
* Control Model (CDC-ACM) as defined in CDC PSTN subclass 1.2.
|
|
||||||
* A Device Firmware Upgrade (DFU 1.1) class interface is provided for
|
|
||||||
* field firmware upgrade.
|
|
||||||
*
|
|
||||||
* The device's unique id is used as the USB serial number string.
|
|
||||||
*/
|
|
||||||
#ifndef USB_SERIAL_H
|
#ifndef USB_SERIAL_H
|
||||||
#define USB_SERIAL_H
|
#define USB_SERIAL_H
|
||||||
|
|
||||||
|
@ -36,4 +29,7 @@ void usb_serial_set_config(usbd_device *dev, uint16_t value);
|
||||||
|
|
||||||
bool gdb_serial_get_dtr(void);
|
bool gdb_serial_get_dtr(void);
|
||||||
|
|
||||||
|
void debug_serial_run(void);
|
||||||
|
uint32_t debug_serial_fifo_send(const char *fifo, uint32_t fifo_begin, uint32_t fifo_end);
|
||||||
|
|
||||||
#endif /*USB_SERIAL_H*/
|
#endif /*USB_SERIAL_H*/
|
||||||
|
|
|
@ -22,9 +22,6 @@
|
||||||
|
|
||||||
#include "general.h"
|
#include "general.h"
|
||||||
|
|
||||||
void debug_serial_run(void);
|
|
||||||
uint32_t debug_serial_fifo_send(const char *const fifo, const uint32_t fifo_begin, const uint32_t fifo_end);
|
|
||||||
|
|
||||||
#define TX_LED_ACT (1 << 0)
|
#define TX_LED_ACT (1 << 0)
|
||||||
#define RX_LED_ACT (1 << 1)
|
#define RX_LED_ACT (1 << 1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue