Hello,
I updated my project based on LPC54618 to the latest NXP::LPC54618_DFP. This solved some problems, but now I get a new one:
The compiler can't find the function CTIMER_SetupCapture(...) any more.
In fsl_ctimer.c i see:
#if !defined(FSL_FEATURE_CTIMER_HAS_NO_INPUT_CAPTURE) && FSL_FEATURE_CTIMER_HAS_NO_INPUT_CAPTURE
void CTIMER_SetupCapture(CTIMER_Type *base,
ctimer_capture_channel_t capture,
ctimer_capture_edge_t edge,
bool enableInt)
{
...
}
#endif
The editor µVision indicates that this function is not compiled.
"FSL_FEATURE_CTIMER_HAS_NO_INPUT_CAPTURE" is not defined anywhere, additionally I added
#undef FSL_FEATURE_CTIMER_HAS_NO_INPUT_CAPTURE - no change.
I don't really understand the expression. If FSL_... is not defined, is the second expresion "FSL_FEATURE_CTIMER_HAS_NO_INPUT_CAPTURE"then really true?
if I do
#define FSL_FEATURE_CTIMER_HAS_NO_INPUT_CAPTURE 0
then the second expression will be true, but the first one not any more because it is defined.
Initially I did have another similar problem with access to the ENUM
kCTIMER_Capture_3
This enum is only present if the following expression is true:
#if defined(FSL_FEATURE_CTIMER_HAS_CCR_CAP3) && FSL_FEATURE_CTIMER_HAS_CCR_CAP3
In this case I was able to add
#define FSL_FEATURE_CTIMER_HAS_CCR_CAP3 1
I don't undestand why this #define is not already present in the file LPC_54618_features.h
Thank you.