Cleaning up unused includes

This commit is contained in:
Attila Body 2019-11-22 14:04:16 +01:00
parent 100cae3657
commit c161274d31
3 changed files with 4 additions and 7 deletions

View file

@ -4,8 +4,6 @@
* Created on: Aug 29, 2019 * Created on: Aug 29, 2019
* Author: abody * Author: abody
*/ */
#include "main.h"
#include "globals.h"
#include "f4ll_c/packetusart.h" #include "f4ll_c/packetusart.h"
#include "f4ll_c/strutil.h" #include "f4ll_c/strutil.h"

View file

@ -5,9 +5,10 @@
* Author: abody * Author: abody
*/ */
#include <f4ll_c/crcscheduler.h> #include <f4ll_c/crcscheduler.h>
#include "main.h"
#include <string.h> #include <string.h>
#if defined(HAVE_DIAG)
#include "diag.h" #include "diag.h"
#endif
#include "f4ll_c/dmahelper.h" #include "f4ll_c/dmahelper.h"
#ifndef DIAG_CRC_CALC_START #ifndef DIAG_CRC_CALC_START

View file

@ -9,7 +9,9 @@
#include <f4ll_c/packetusart.h> #include <f4ll_c/packetusart.h>
#include <string.h> #include <string.h>
#include <platform/usart_ll.h> #include <platform/usart_ll.h>
#if defined(HAVE_DIAG)
#include "diag.h" #include "diag.h"
#endif
#include "f4ll_c/dmahelper.h" #include "f4ll_c/dmahelper.h"
#include "f4ll_c/crcscheduler.h" #include "f4ll_c/crcscheduler.h"
@ -105,13 +107,9 @@ static inline uint8_t CheckHeader(struct usartpacket_t *packet)
uint8_t Pku_Post(struct usartstatus_t *status, uint8_t const *payload, uint16_t length, struct crcstatus_t *crcStatus, uint8_t waitForCrcQueue) uint8_t Pku_Post(struct usartstatus_t *status, uint8_t const *payload, uint16_t length, struct crcstatus_t *crcStatus, uint8_t waitForCrcQueue)
{ {
// static uint32_t count = 0;
// ITM->PORT[1].u32 = count++;
if(length > 256) if(length > 256)
return 1; return 1;
BuildHeader(&status->txBuffer, status->txSerial++, length); BuildHeader(&status->txBuffer, status->txSerial++, length);
uint16_t payloadLength = RoundUpTo4(length); uint16_t payloadLength = RoundUpTo4(length);
if(payload) if(payload)