Jul 20, 2016
06:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 20, 2016
06:19 AM
I am trying to use the Event Request Unit using the XMC_Lib (not DAVE4), but I have the following problems:
1. The library functions XMC_ERU_ETL_Init() and XMC_ERU_OGU_Init() both call the function XMC_ERU_Enable(), which is documented and declared in the xmc_eru.h header file. But there is no implementation in the source file. Therefore my program cannot be linked! Is this function in a different source file, or how do other people use the XMC_Lib for the ERU?
2. The configuration used by XMC_ERU_ETL_Init has a member "input". From the documentation I cannot understand which value is required here. I have seen that DAVE4 does not set "input" to any value in its configuration, which seems a bit strange. How do I find the correct value for this parameter?
1. The library functions XMC_ERU_ETL_Init() and XMC_ERU_OGU_Init() both call the function XMC_ERU_Enable(), which is documented and declared in the xmc_eru.h header file. But there is no implementation in the source file. Therefore my program cannot be linked! Is this function in a different source file, or how do other people use the XMC_Lib for the ERU?
2. The configuration used by XMC_ERU_ETL_Init has a member "input". From the documentation I cannot understand which value is required here. I have seen that DAVE4 does not set "input" to any value in its configuration, which seems a bit strange. How do I find the correct value for this parameter?
- Tags:
- IFX
3 Replies
Jul 20, 2016
07:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 20, 2016
07:09 AM
About point 2:
The "input" parameter represents the registers EXISEL from the different ERU units.
You can write the "input" parameter, but you can configure the parameters input_a and input_b instead. The configuration options for these parameters are described in the file xmc_eru.h.
The "input" parameter represents the registers EXISEL from the different ERU units.
You can write the "input" parameter, but you can configure the parameters input_a and input_b instead. The configuration options for these parameters are described in the file xmc_eru.h.
Jul 20, 2016
08:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 20, 2016
08:18 AM
About point 1:
The mentioned ("XMC_ERU_Enable()")function is defined in "xmc4_eru.c" file.
The mentioned ("XMC_ERU_Enable()")function is defined in "xmc4_eru.c" file.
Jul 20, 2016
10:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 20, 2016
10:53 PM
OK, thanks to both of you for the help.