|
|
|
@ -11,6 +11,12 @@ |
|
|
|
#include "McuULN2003.h" |
|
|
|
#include "McuULN2003.h" |
|
|
|
#include "McuGPIO.h" |
|
|
|
#include "McuGPIO.h" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/****** SETTINGS ******/ |
|
|
|
|
|
|
|
#define SPLITFLAP_CONFIG_USE_FREERTOS_HEAP 0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/****** TYPES ******/ |
|
|
|
/* define splitflap handle type. SF_Handle_t points to SF_t */ |
|
|
|
/* define splitflap handle type. SF_Handle_t points to SF_t */ |
|
|
|
typedef void* SF_Handle_t; |
|
|
|
typedef void* SF_Handle_t; |
|
|
|
|
|
|
|
|
|
|
|
@ -25,10 +31,14 @@ typedef struct { |
|
|
|
McuGPIO_Config_t magSensorConfig; |
|
|
|
McuGPIO_Config_t magSensorConfig; |
|
|
|
} SF_Config_t; |
|
|
|
} SF_Config_t; |
|
|
|
|
|
|
|
|
|
|
|
/* split flap initialization */ |
|
|
|
|
|
|
|
|
|
|
|
/****** FUNCTIONS ******/ |
|
|
|
|
|
|
|
/* split flap initialization
|
|
|
|
|
|
|
|
* only pass configured types, they do not need to be initialized. |
|
|
|
|
|
|
|
* Initialization will be made inside the SF_Init method */ |
|
|
|
SF_Handle_t SF_Init(SF_Config_t* instance, int id); |
|
|
|
SF_Handle_t SF_Init(SF_Config_t* instance, int id); |
|
|
|
|
|
|
|
|
|
|
|
/* split flap deinitialization */ |
|
|
|
/* split flap deinitialization */ |
|
|
|
void SF_Deinit(SF_Handle_t* instance); |
|
|
|
void SF_Deinit(SF_Handle_t instance); |
|
|
|
|
|
|
|
|
|
|
|
#endif /* SPLITFLAP_H_ */ |
|
|
|
#endif /* SPLITFLAP_H_ */ |
|
|
|
|