mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-09 22:49:53 +08:00
[airborne] cleanup USE_USB_SERIAL
This commit is contained in:
@@ -104,4 +104,3 @@ setup_actuators.CFLAGS += -I$(ARCH)
|
||||
setup_actuators.srcs += $(SRC_ARCH)/led_hw.c
|
||||
setup_actuators.srcs += $(SRC_ARCH)/mcu_periph/gpio_arch.c
|
||||
endif
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
#include "blockdev.h"
|
||||
#include "usb_msc_hw.h"
|
||||
|
||||
#ifdef USE_USB_SERIAL
|
||||
#if USE_USB_SERIAL
|
||||
#if PCLK < 18000000
|
||||
#error PCLK needs to be higher than 18MHz for USB to work properly
|
||||
#endif
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
|
||||
#include "lpcusb/usbapi.h"
|
||||
|
||||
#ifdef USE_USB_SERIAL
|
||||
#if USE_USB_SERIAL
|
||||
#if PCLK < 18000000
|
||||
#error PCLK needs to be higher than 18MHz for USB to work properly
|
||||
#endif
|
||||
@@ -243,8 +243,6 @@ static const uint8_t abDescriptors[] = {
|
||||
};
|
||||
|
||||
|
||||
#ifdef USE_USB_SERIAL
|
||||
|
||||
void fifo_init(fifo_t *fifo, U8 *buf)
|
||||
{
|
||||
fifo->head = 0;
|
||||
@@ -616,6 +614,3 @@ void VCOM_init(void) {
|
||||
usb_serial.device.transmit = (transmit_t) usb_serial_transmit;
|
||||
usb_serial.device.send_message = (send_message_t) usb_serial_send;
|
||||
}
|
||||
|
||||
|
||||
#endif /* USE_USB_SERIAL */
|
||||
|
||||
@@ -55,9 +55,7 @@ int main( void ) {
|
||||
led_init();
|
||||
VCOM_allow_linecoding(1);
|
||||
|
||||
#ifdef USE_USB_SERIAL
|
||||
VCOM_init();
|
||||
#endif
|
||||
|
||||
mcu_int_enable();
|
||||
|
||||
|
||||
@@ -83,7 +83,7 @@ PRINT_CONFIG_MSG_VALUE("USE_BARO_BOARD is TRUE, reading onboard baro: ", BARO_BO
|
||||
#include "generated/modules.h"
|
||||
#include "subsystems/abi.h"
|
||||
|
||||
#ifdef USE_USB_SERIAL
|
||||
#if USE_USB_SERIAL
|
||||
#include "mcu_periph/usb_serial.h"
|
||||
#endif
|
||||
|
||||
@@ -287,7 +287,7 @@ STATIC_INLINE void main_event( void ) {
|
||||
udp_event();
|
||||
#endif
|
||||
|
||||
#ifdef USE_USB_SERIAL
|
||||
#if USE_USB_SERIAL
|
||||
VCOM_event();
|
||||
#endif
|
||||
|
||||
|
||||
+2
-2
@@ -47,7 +47,7 @@
|
||||
#if USE_ADC
|
||||
#include "mcu_periph/adc.h"
|
||||
#endif
|
||||
#ifdef USE_USB_SERIAL
|
||||
#if USE_USB_SERIAL
|
||||
#include "mcu_periph/usb_serial.h"
|
||||
#endif
|
||||
#ifdef USE_UDP
|
||||
@@ -110,7 +110,7 @@ void mcu_init(void) {
|
||||
#if USE_ADC
|
||||
adc_init();
|
||||
#endif
|
||||
#ifdef USE_USB_SERIAL
|
||||
#if USE_USB_SERIAL
|
||||
VCOM_init();
|
||||
#endif
|
||||
|
||||
|
||||
@@ -23,10 +23,6 @@
|
||||
#include "core/sys_mon.h"
|
||||
#include "mcu_periph/sys_time.h"
|
||||
|
||||
#ifdef USE_USB_SERIAL
|
||||
#include "mcu_periph/usb_serial.h"
|
||||
#endif
|
||||
|
||||
/** Global system monitor data (averaged over 1 sec) */
|
||||
struct SysMon sys_mon;
|
||||
|
||||
|
||||
@@ -58,9 +58,6 @@ Receiving:
|
||||
#include "gsm.h"
|
||||
#include "mcu_periph/uart.h"
|
||||
#include "std.h"
|
||||
#ifdef USE_USB_SERIAL
|
||||
#include "mcu_periph/usb_serial.h"
|
||||
#endif
|
||||
#include "mcu_periph/uart.h"
|
||||
#include "subsystems/datalink/downlink.h"
|
||||
#include "ap_subsystems/datalink/downlink.h"
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
#if USE_AUDIO_TELEMETRY
|
||||
#include "subsystems/datalink/audio_telemetry.h"
|
||||
#endif
|
||||
#ifdef USE_USB_SERIAL
|
||||
#if USE_USB_SERIAL
|
||||
#include "mcu_periph/usb_serial.h"
|
||||
#endif
|
||||
#ifdef USE_UDP
|
||||
|
||||
Reference in New Issue
Block a user