-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
examples/subobc: apply IF list rename migration
- Loading branch information
Showing
8 changed files
with
43 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
examples/subobc/src/src_user/Settings/component_driver_super/hal_handler_registry.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#pragma section REPRO | ||
#include "hal_handler_registry.h" | ||
|
||
#include <stddef.h> | ||
|
||
int (*HAL_init_handlers[])(void* my_if) = { UART_init}; | ||
|
||
int (*HAL_rx_handlers[])(void* my_if, void* data_v, int buffer_size) = { UART_rx}; | ||
|
||
int (*HAL_tx_handlers[])(void* my_if, void* data_v, int data_size) = { UART_tx}; | ||
|
||
int (*HAL_reopen_handlers[])(void* my_if, int reason) = { UART_reopen}; | ||
|
||
#pragma section |
24 changes: 24 additions & 0 deletions
24
examples/subobc/src/src_user/Settings/component_driver_super/hal_handler_registry.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#ifndef HAL_HANDLER_REGISTRY_H_ | ||
#define HAL_HANDLER_REGISTRY_H_ | ||
|
||
|
||
#include <src_core/hal/ccsds.h> | ||
#include <src_core/hal/uart.h> | ||
|
||
typedef enum | ||
{ | ||
UART, | ||
HAL_HANDLER_ID_MAX | ||
} HAL_HANDLER_ID; | ||
|
||
typedef enum | ||
{ | ||
IF_REOPEN_TLM_DISRUPTION = 100 | ||
} HAL_HANDLER_REOPEN_REASON; | ||
|
||
extern int (*HAL_init_handlers[] )(void* my_if); | ||
extern int (*HAL_rx_handlers[] )(void* my_if, void* data_v, int buffer_size); | ||
extern int (*HAL_tx_handlers[] )(void* my_if, void* data_v, int data_size); | ||
extern int (*HAL_reopen_handlers[])(void* my_if, int reason); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.