Init commit

This commit is contained in:
2026-07-15 20:32:20 +03:00
commit 948ae56f77
23 changed files with 2108 additions and 0 deletions
@@ -0,0 +1,26 @@
#ifndef DEVICE_LIST_H
#define DEVICE_LIST_H
#include <stdbool.h>
#include <stddef.h>
#include "freertos/FreeRTOS.h"
#include "lwip/ip4_addr.h"
#include "lwip/prot/ethernet.h"
#define DEVICE_LIST_MAX_SIZE 64
typedef struct
{
ip4_addr_t ip;
struct eth_addr mac;
TickType_t last_seen;
bool active;
} device_info_t;
void device_list_init(void);
device_info_t *device_list_find_by_mac(const struct eth_addr *mac);
bool device_list_add_or_update(const device_info_t *device);
size_t device_list_count(void);
const device_info_t *device_list_get_by_index(size_t index);
#endif