usart_handler: DMA based memory copy
This commit is contained in:
parent
e8ab90c2b3
commit
ecd6c1d5d6
13 changed files with 367 additions and 408 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
#ifndef STATS_H_
|
||||
#define STATS_H_
|
||||
#include "diag.h"
|
||||
|
||||
#ifndef DIAG_ERROR_EVENT
|
||||
# define DIAG_ERROR_EVENT()
|
||||
|
@ -41,6 +42,7 @@ static inline void StatsIncPayloadError(STATS *s, uint32_t pep1, uint32_t pep2)
|
|||
s->pep2 = pep2;
|
||||
}
|
||||
static inline void StatsIncDmaError(STATS *s) {
|
||||
DIAG_ERROR_EVENT();
|
||||
++s->dmaError;
|
||||
}
|
||||
static inline void StatsIncRcvd(STATS *s) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue