mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-22 14:19:57 +08:00
refactor(px4io): move protocol.h into px4io_protocol lib
Drivers and arch code no longer include a header from inside the IO firmware module. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Michael Rogov Papernov <michael@membrowse.com>
This commit is contained in:
1 parent
ae65871922
commit
554f60d6fd
7 files changed
+6
-6
No files matched your search
@@ -46,7 +46,7 @@
|
||||
#include <perf/perf_counter.h>
|
||||
|
||||
#include <drivers/device/device.h>
|
||||
#include <modules/px4iofirmware/protocol.h>
|
||||
#include <lib/px4io_protocol/protocol.h>
|
||||
|
||||
class PX4IO_serial : public device::Device
|
||||
{
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
#include <perf/perf_counter.h>
|
||||
|
||||
#include <drivers/device/device.h>
|
||||
#include <modules/px4iofirmware/protocol.h>
|
||||
#include <lib/px4io_protocol/protocol.h>
|
||||
|
||||
class PX4IO_serial : public device::Device
|
||||
{
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
|
||||
#include <debug.h>
|
||||
|
||||
#include <modules/px4iofirmware/protocol.h>
|
||||
#include <lib/px4io_protocol/protocol.h>
|
||||
|
||||
#include "uploader.h"
|
||||
|
||||
|
||||
File renamed without changes.
@@ -38,7 +38,7 @@
|
||||
* flight controller driver so each image carries one copy of the table.
|
||||
*/
|
||||
|
||||
#include <modules/px4iofirmware/protocol.h>
|
||||
#include "protocol.h"
|
||||
|
||||
const uint8_t crc8_tab[256] = {
|
||||
0x00, 0x07, 0x0E, 0x09, 0x1C, 0x1B, 0x12, 0x15,
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
|
||||
#include <board_config.h>
|
||||
|
||||
#include "protocol.h"
|
||||
#include <lib/px4io_protocol/protocol.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
#include <rc/sbus.h>
|
||||
|
||||
#include "px4io.h"
|
||||
#include "protocol.h"
|
||||
#include <lib/px4io_protocol/protocol.h>
|
||||
|
||||
static int registers_set_one(uint8_t page, uint8_t offset, uint16_t value);
|
||||
static void pwm_configure_rates(uint16_t map, uint16_t defaultrate, uint16_t altrate);
|
||||
|
||||
Reference in new issue
Block a user