-
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.
Merge pull request #166 from arkedge/feature/rename-if-list-examples
Apply rename migration: IF list
- Loading branch information
Showing
27 changed files
with
107 additions
and
105 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
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/mobc/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) = { CCSDS_init, UART_init}; | ||
|
||
int (*HAL_rx_handlers[])(void* my_if, void* data_v, int buffer_size) = { CCSDS_rx, UART_rx}; | ||
|
||
int (*HAL_tx_handlers[])(void* my_if, void* data_v, int data_size) = { CCSDS_tx, UART_tx}; | ||
|
||
int (*HAL_reopen_handlers[])(void* my_if, int reason) = { CCSDS_reopen, UART_reopen}; | ||
|
||
#pragma section |
25 changes: 25 additions & 0 deletions
25
examples/mobc/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,25 @@ | ||
#ifndef HAL_HANDLER_REGISTRY_H_ | ||
#define HAL_HANDLER_REGISTRY_H_ | ||
|
||
|
||
#include <src_core/hal/ccsds.h> | ||
#include <src_core/hal/uart.h> | ||
|
||
typedef enum | ||
{ | ||
CCSDS, | ||
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 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
Oops, something went wrong.