From 88325503e72cb171dedfbe8bf2a5fad01f9607ab Mon Sep 17 00:00:00 2001 From: Michele Balistreri Date: Wed, 22 Mar 2023 15:47:22 +0100 Subject: [PATCH] cleanups --- app/ethereum/ethUstream.c | 3 +- nxp/.cproject | 5 +- nxp/drivers/fsl_cache.c | 602 ------------------------------- nxp/drivers/fsl_cache.h | 463 ------------------------ nxp/drivers/fsl_dcp.c | 4 +- nxp/drivers/fsl_flexio.c | 433 ++++++++++++++++++++++ nxp/drivers/fsl_flexio.h | 735 ++++++++++++++++++++++++++++++++++++++ nxp/drivers/fsl_gpt.c | 127 +++++++ nxp/drivers/fsl_gpt.h | 509 ++++++++++++++++++++++++++ 9 files changed, 1812 insertions(+), 1069 deletions(-) delete mode 100644 nxp/drivers/fsl_cache.c delete mode 100644 nxp/drivers/fsl_cache.h create mode 100644 nxp/drivers/fsl_flexio.c create mode 100644 nxp/drivers/fsl_flexio.h create mode 100644 nxp/drivers/fsl_gpt.c create mode 100644 nxp/drivers/fsl_gpt.h diff --git a/app/ethereum/ethUstream.c b/app/ethereum/ethUstream.c index ca1f8ac..e7a355a 100644 --- a/app/ethereum/ethUstream.c +++ b/app/ethereum/ethUstream.c @@ -20,6 +20,7 @@ #include "ethUstream.h" #include "ethUtils.h" +#include "common.h" #define MAX_INT256 32 #define MAX_ADDRESS 20 @@ -87,7 +88,7 @@ static uint16_t processAccessList(txContext_t *context) { return EXCEPTION; } if (context->currentFieldPos < context->currentFieldLength) { - uint32_t copySize = MIN(context->commandLength, context->currentFieldLength - context->currentFieldPos); + uint32_t copySize = APP_MIN(context->commandLength, context->currentFieldLength - context->currentFieldPos); if (copyTxData(context, NULL, copySize) == EXCEPTION) { return EXCEPTION; } diff --git a/nxp/.cproject b/nxp/.cproject index 67956e4..001d2de 100644 --- a/nxp/.cproject +++ b/nxp/.cproject @@ -464,7 +464,6 @@