error in _flexcan_status enumeration

cancel
Showing results for 
Search instead for 
Did you mean: 

error in _flexcan_status enumeration

219 Views
michaelellis
Contributor II

SDK v.2.0 for TWR-KV58F220M has an error in the _flexcan_status enumeration:

 

enum  _flexcan_status {
  kStatus_FLEXCAN_TxBusy = MAKE_STATUS(kStatusGroup_FLEXCAN, 0),
  kStatus_FLEXCAN_TxIdle = MAKE_STATUS(kStatusGroup_FLEXCAN, 1),
  kStatus_FLEXCAN_TxSwitchToRx,
  kStatus_FLEXCAN_RxBusy = MAKE_STATUS(kStatusGroup_FLEXCAN, 3),
  kStatus_FLEXCAN_RxIdle = MAKE_STATUS(kStatusGroup_FLEXCAN, 4),
  kStatus_FLEXCAN_RxOverflow = MAKE_STATUS(kStatusGroup_FLEXCAN, 5),
  kStatus_FLEXCAN_RxFifoBusy = MAKE_STATUS(kStatusGroup_FLEXCAN, 6),
  kStatus_FLEXCAN_RxFifoIdle = MAKE_STATUS(kStatusGroup_FLEXCAN, 7),
  kStatus_FLEXCAN_RxFifoOverflow = MAKE_STATUS(kStatusGroup_FLEXCAN, 8),
  kStatus_FLEXCAN_RxFifoWarning = MAKE_STATUS(kStatusGroup_FLEXCAN, 0),
  kStatus_FLEXCAN_ErrorStatus = MAKE_STATUS(kStatusGroup_FLEXCAN, 10),
  kStatus_FLEXCAN_UnHandled = MAKE_STATUS(kStatusGroup_FLEXCAN, 11)
}

 

Note: kStatus_FLEXCAN_RxFifoWarning should be MAKE_STATUS(kStatusGroup_FLEXCAN, 9) instead of MAKE_STATUS(kStatusGroup_FLEXCAN, 0)

 

Filename: fsl_flexcan.h

Labels (1)
Tags (1)
0 Kudos
1 Reply

85 Views
DavidS
NXP Employee
NXP Employee

Hi Michael,

I've let the KSDK team know about this.

Thank you for posting it.

Regards,

David

0 Kudos