HAL LL serial driver

This commit is contained in:
Raphael Coeffic
2022-03-20 16:22:14 +01:00
parent e17729c61f
commit fa3389447c
12 changed files with 304 additions and 262 deletions
+7
View File
@@ -51,7 +51,14 @@ struct etx_serial_init {
void (*on_error)(); // = nullptr;
};
struct etx_serial_callbacks_t {
bool (*on_send)(uint8_t& data);
void (*on_receive)(uint8_t data);
void (*on_error)();
};
struct etx_serial_driver_t {
// Init module communication
void (*init)(const etx_serial_init* params);