refactor: Entire code base, thread and log usage

Boils down to:
- Include headers
- Reduce boiler plate with helpers
- Swap out explicit usages with core API layer
  and ensure the right API is configured beforehand
This commit is contained in:
icex2
2024-02-23 13:29:53 +01:00
parent bc9b8b508e
commit 0adec478cc
338 changed files with 1307 additions and 640 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
#include <stddef.h>
#include "p3io/cmd.h"
#include "core/log.h"
#include "util/log.h"
#include "p3io/cmd.h"
uint8_t p3io_get_full_req_size(const union p3io_req_any *req)
{
+2 -1
View File
@@ -3,10 +3,11 @@
#include <stdbool.h>
#include <stdint.h>
#include "core/log.h"
#include "p3io/frame.h"
#include "util/iobuf.h"
#include "util/log.h"
#define P3IO_FRAME_SOF 0xAA
#define P3IO_FRAME_ESCAPE 0xFF