Skip to content

Commit 9c5eb11

Browse files
cyliangtwadbridge
authored andcommitted
Fix GCC warnings
1 parent a6a2ecf commit 9c5eb11

File tree

5 files changed

+30
-399
lines changed

5 files changed

+30
-399
lines changed

targets/TARGET_NUVOTON/TARGET_M451/device/StdDriver/m451_can.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,9 @@ void CAN_WaitMsg(CAN_T *tCAN)
196196
}
197197

198198
if(tCAN->STATUS & CAN_STATUS_RXOK_Msk)
199+
{
199200
DEBUG_PRINTF("Rx OK\n");
200-
201+
}
201202
if(tCAN->STATUS & CAN_STATUS_LEC_Msk)
202203
{
203204
DEBUG_PRINTF("Error\n");

targets/TARGET_NUVOTON/TARGET_NUC472/device/NUC472_442.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32574,7 +32574,7 @@ typedef volatile unsigned long vu32; ///< Define 32-bit unsigned volatile
3257432574
#include "nuc472_acmp.h"
3257532575
#include "nuc472_adc.h"
3257632576
#include "nuc472_eadc.h"
32577-
#include "nuc472_cap.h"
32577+
/* Disable Capture: #include "nuc472_cap.h" */
3257832578
#include "nuc472_crypto.h"
3257932579
#include "nuc472_pdma.h"
3258032580
#include "nuc472_ebi.h"

targets/TARGET_NUVOTON/TARGET_NUC472/device/StdDriver/nuc472_can.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ void CAN_WaitMsg(CAN_T *tCAN)
9999
DEBUG_PRINTF("New Data IN\n");
100100
break;
101101
}
102-
if(tCAN->STATUS & CAN_STATUS_RXOK_Msk)
102+
if(tCAN->STATUS & CAN_STATUS_RXOK_Msk) {
103103
DEBUG_PRINTF("Rx OK\n");
104-
104+
}
105105
if(tCAN->STATUS & CAN_STATUS_LEC_Msk) {
106106
DEBUG_PRINTF("Error\n");
107107
}

0 commit comments

Comments
 (0)