Skip to content

Commit

Permalink
refactor vtx handling
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleiner committed Oct 20, 2024
1 parent a024c8f commit 0b0e5a3
Show file tree
Hide file tree
Showing 15 changed files with 661 additions and 959 deletions.
2 changes: 2 additions & 0 deletions src/config/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@
// #define RX_USART SERIAL_PORT5
// #define RX_USART SERIAL_PORT6

#define SMART_AUDIO_USART SERIAL_PORT5

// *************Serial Receiver Inversion Selection (Normally true for SBUS and FPORT)
// #define INVERT_UART

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

#include "core/debug.h"
#include "driver/serial.h"
Expand Down
11 changes: 5 additions & 6 deletions src/driver/vtx/vtx.h → src/driver/vtx.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
#include <stdbool.h>
#include <stdint.h>

typedef enum {
VTX_ERROR,
VTX_IDLE,
VTX_WAIT,
VTX_SUCCESS
} vtx_update_result_t;
extern uint32_t vtx_last_valid_read;
extern uint32_t vtx_last_request;

extern uint8_t vtx_payload[32];
extern uint8_t vtx_payload_offset;

bool serial_vtx_is_ready();
bool serial_vtx_wait_for_ready();
Expand Down
158 changes: 0 additions & 158 deletions src/driver/vtx/msp.c

This file was deleted.

8 changes: 0 additions & 8 deletions src/driver/vtx/msp.h

This file was deleted.

Loading

0 comments on commit 0b0e5a3

Please sign in to comment.