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-08-14 17:53:51 +02:00
parent 82d1a2df52
commit 93e0a090bc
338 changed files with 1307 additions and 641 deletions
+2 -1
View File
@@ -7,8 +7,9 @@
#include "aciodrv/port.h"
#include "core/log.h"
#include "util/hex.h"
#include "util/log.h"
#include "util/mem.h"
/* Enable to dump all data to the logger */
+1 -1
View File
@@ -7,7 +7,7 @@
#include "aciodrv/device.h"
#include "util/log.h"
#include "core/log.h"
bool aciodrv_h44b_init(struct aciodrv_device_ctx *device, uint8_t node_id)
{
+1 -1
View File
@@ -5,7 +5,7 @@
#include "aciodrv/device.h"
#include "aciodrv/icca.h"
#include "util/log.h"
#include "core/log.h"
static bool aciodrv_icca_queue_loop_start(
struct aciodrv_device_ctx *device, uint8_t node_id)
+1 -1
View File
@@ -5,7 +5,7 @@
#include "aciodrv/device.h"
#include "util/log.h"
#include "core/log.h"
static bool
aciodrv_kfca_watchdog_start(struct aciodrv_device_ctx *device, uint8_t node_id)
+1 -2
View File
@@ -5,8 +5,7 @@
#include "aciodrv/device.h"
#include "aciodrv/panb.h"
#include "util/log.h"
#include "util/thread.h"
#include "core/log.h"
bool aciodrv_panb_start_auto_input(
struct aciodrv_device_ctx *device, uint8_t node_id, uint8_t node_count)
+1 -1
View File
@@ -6,7 +6,7 @@
#include <windows.h>
#include "util/log.h"
#include "core/log.h"
HANDLE aciodrv_port_open(const char *port_path, int baud)
{
+1 -1
View File
@@ -5,7 +5,7 @@
#include "aciodrv/device.h"
#include "util/log.h"
#include "core/log.h"
static bool aciodrv_rvol_change_expand_mode(
struct aciodrv_device_ctx *device, uint8_t node_id, uint8_t mode)