Skip to content

Commit

Permalink
[NUC472/M453] Fix GCC warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
cyliangtw committed Dec 13, 2016
1 parent 64e27b2 commit e4a5401
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 399 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,9 @@ void CAN_WaitMsg(CAN_T *tCAN)
}

if(tCAN->STATUS & CAN_STATUS_RXOK_Msk)
{
DEBUG_PRINTF("Rx OK\n");

}
if(tCAN->STATUS & CAN_STATUS_LEC_Msk)
{
DEBUG_PRINTF("Error\n");
Expand Down
2 changes: 1 addition & 1 deletion targets/TARGET_NUVOTON/TARGET_NUC472/device/NUC472_442.h
Original file line number Diff line number Diff line change
Expand Up @@ -32574,7 +32574,7 @@ typedef volatile unsigned long vu32; ///< Define 32-bit unsigned volatile
#include "nuc472_acmp.h"
#include "nuc472_adc.h"
#include "nuc472_eadc.h"
#include "nuc472_cap.h"
/* Disable Capture: #include "nuc472_cap.h" */
#include "nuc472_crypto.h"
#include "nuc472_pdma.h"
#include "nuc472_ebi.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ void CAN_WaitMsg(CAN_T *tCAN)
DEBUG_PRINTF("New Data IN\n");
break;
}
if(tCAN->STATUS & CAN_STATUS_RXOK_Msk)
if(tCAN->STATUS & CAN_STATUS_RXOK_Msk) {
DEBUG_PRINTF("Rx OK\n");

}
if(tCAN->STATUS & CAN_STATUS_LEC_Msk) {
DEBUG_PRINTF("Error\n");
}
Expand Down
Loading

0 comments on commit e4a5401

Please sign in to comment.