Skip to content

Commit

Permalink
move vtx drivers to subfolder
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleiner committed Jul 25, 2024
1 parent 973cada commit 03e33e4
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/driver/serial_vtx_msp.c → src/driver/vtx/msp.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

#include "driver/serial_vtx_msp.h"
#include "driver/vtx/msp.h"

#include <string.h>

Expand Down
2 changes: 1 addition & 1 deletion src/driver/serial_vtx_msp.h → src/driver/vtx/msp.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include <stdint.h>

#include "driver/serial_vtx.h"
#include "driver/vtx/vtx.h"

void serial_msp_vtx_init();
vtx_update_result_t serial_msp_vtx_update();
4 changes: 2 additions & 2 deletions src/driver/serial_vtx_sa.c → src/driver/vtx/sa.c
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#include "driver/serial_vtx_sa.h"
#include "driver/vtx/sa.h"

#include <stddef.h>

#include "core/debug.h"
#include "core/profile.h"
#include "driver/serial.h"
#include "driver/serial_vtx.h"
#include "driver/time.h"
#include "driver/vtx/vtx.h"
#include "io/usb_configurator.h"
#include "io/vtx.h"
#include "util/crc.h"
Expand Down
2 changes: 1 addition & 1 deletion src/driver/serial_vtx_sa.h → src/driver/vtx/sa.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include <stdint.h>

#include "driver/serial_vtx.h"
#include "driver/vtx/vtx.h"

typedef enum {
SA_CMD_GET_SETTINGS = 0x01,
Expand Down
4 changes: 2 additions & 2 deletions src/driver/serial_vtx_tramp.c → src/driver/vtx/tramp.c
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#include "driver/serial_vtx_tramp.h"
#include "driver/vtx/tramp.h"

#include <string.h>

#include "core/debug.h"
#include "core/profile.h"
#include "driver/serial.h"
#include "driver/serial_vtx.h"
#include "driver/time.h"
#include "driver/vtx/vtx.h"
#include "util/ring_buffer.h"

typedef enum {
Expand Down
2 changes: 1 addition & 1 deletion src/driver/serial_vtx_tramp.h → src/driver/vtx/tramp.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include <stdint.h>

#include "driver/serial_vtx.h"
#include "driver/vtx/vtx.h"

typedef struct {
uint16_t freq_min;
Expand Down
2 changes: 1 addition & 1 deletion src/driver/serial_vtx.c → src/driver/vtx/vtx.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "driver/serial_vtx.h"
#include "driver/vtx/vtx.h"

#include "driver/serial.h"
#include "driver/serial_soft.h"
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions src/io/vtx.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
#include "core/project.h"
#include "driver/gpio.h"
#include "driver/serial.h"
#include "driver/serial_vtx_msp.h"
#include "driver/serial_vtx_sa.h"
#include "driver/serial_vtx_tramp.h"
#include "driver/time.h"
#include "driver/vtx/msp.h"
#include "driver/vtx/sa.h"
#include "driver/vtx/tramp.h"
#include "flight/control.h"
#include "rx/rx.h"
#include "rx/unified_serial.h"
Expand Down
2 changes: 1 addition & 1 deletion src/io/vtx_msp.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include "core/profile.h"
#include "driver/serial.h"
#include "driver/serial_vtx_msp.h"
#include "driver/vtx/msp.h"
#include "io/msp.h"

#define MSP_VTX_DETECT_TRIES 5
Expand Down
2 changes: 1 addition & 1 deletion src/io/vtx_smartaudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <string.h>

#include "driver/serial.h"
#include "driver/serial_vtx_sa.h"
#include "driver/vtx/sa.h"
#include "util/util.h"

#define SMART_AUDIO_DETECT_TRIES 30
Expand Down
2 changes: 1 addition & 1 deletion src/io/vtx_tramp.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <string.h>

#include "driver/serial.h"
#include "driver/serial_vtx_tramp.h"
#include "driver/vtx/tramp.h"

#define TRAMP_DETECT_TRIES 5

Expand Down

0 comments on commit 03e33e4

Please sign in to comment.