injecting CRC peripheral as dependency
This commit is contained in:
parent
a50e758c4e
commit
2cf75b2f57
2 changed files with 11 additions and 9 deletions
|
@ -14,6 +14,7 @@
|
|||
#include "config.h"
|
||||
#endif // HAVE_CONFIG
|
||||
|
||||
#include <platform/crc_ll.h>
|
||||
#include <f4ll_c/dmahelper.h>
|
||||
|
||||
struct crcslottask_t {
|
||||
|
@ -30,13 +31,14 @@ struct crcslotlistitem_t {
|
|||
};
|
||||
|
||||
struct crcstatus_t {
|
||||
CRC_TypeDef *crcUnit;
|
||||
struct dmainfo_t dmaInfo;
|
||||
struct crcslotlistitem_t *activeSlot;
|
||||
uint8_t activeTask;
|
||||
struct crcslotlistitem_t *first;
|
||||
};
|
||||
|
||||
void Crc_InitStatus(struct crcstatus_t *status, DMA_TypeDef *dma, uint32_t stream);
|
||||
void Crc_InitStatus(struct crcstatus_t *status, CRC_TypeDef *crcUnit, DMA_TypeDef *dma, uint32_t stream);
|
||||
|
||||
uint8_t Crc_GetActiveTask(struct crcslotlistitem_t **slot_out, struct crcstatus_t volatile *status);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue