Refactor UART handling and enhance user data structures

This commit is contained in:
2025-04-22 20:34:19 +02:00
parent 4ff9a7f03d
commit d642cc92ab
6 changed files with 48 additions and 17 deletions
+7
View File
@@ -0,0 +1,7 @@
#ifndef __RFID_HANDLER_H__
#define __RFIT_HANDLER_H__
#endif
// UART handler thread
void *uartListener(void *arg);
+12 -2
View File
@@ -12,9 +12,9 @@ typedef struct person
char *name;
char *surname;
uint8_t department;
uint32_t department;
time_t last_timestamp;
time_t last_time_event;
uint32_t total;
pthread_mutex_t lock;
@@ -26,4 +26,14 @@ typedef struct node
struct node *next;
} node_t;
uint16_t generateUUID(node_t * _head);
uint16_t searchUUIDByName(node_t * _head);
node_t * searchPersonByUUID(node_t * _head);
void addPersonToList(node_t * _head, char * _name, char * _surname, uint32_t _department);
void addTimeEvent(node_t * _person);
#endif