Not applicable
Aug 08, 2013
03:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 08, 2013
03:30 AM
I need to disable all interrupts, execute some code then re-enable all interrupts.
Is there a recommended method for doing this ?
Thank you in advance
Best regards
Aaron
Is there a recommended method for doing this ?
Thank you in advance
Best regards
Aaron
4 Replies
Aug 09, 2013
01:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 09, 2013
01:51 AM
Hey
Software uses the CPSIE I and CPSID I instructions to enable and disable interrupts. The CMSIS provides the following intrinsic functions for these instructions:
void __disable_irq(void) // Disable Interrupts
void __enable_irq(void) // Enable Interrupts
Software uses the CPSIE I and CPSID I instructions to enable and disable interrupts. The CMSIS provides the following intrinsic functions for these instructions:
void __disable_irq(void) // Disable Interrupts
void __enable_irq(void) // Enable Interrupts
Not applicable
Aug 09, 2013
01:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 09, 2013
01:55 AM
Hey Ron,
Thank you. Very much appreciated.
Best regards
Aaron
Thank you. Very much appreciated.
Best regards
Aaron
Not applicable
Mar 03, 2014
04:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 03, 2014
04:41 AM
Hey Ron,
I have just discovered that DAVE does not report an error if intrinsic functions cannot be found (though the debugger complains if you single step over a missing intrinsic function).
The header file "core_cmFunc.h" must be included or referenced in the project paths so the linker can locate the intrinsic functions.
Best regards
Aaron
I have just discovered that DAVE does not report an error if intrinsic functions cannot be found (though the debugger complains if you single step over a missing intrinsic function).
The header file "core_cmFunc.h" must be included or referenced in the project paths so the linker can locate the intrinsic functions.
Best regards
Aaron
Not applicable
Mar 04, 2014
12:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 04, 2014
12:36 AM
Hi Aaron,
This is correct behaviour. The intrinsic functions are defined in the header and not in the C files. So no debug information is generated.
Best regards,
Sophia
This is correct behaviour. The intrinsic functions are defined in the header and not in the C files. So no debug information is generated.
Best regards,
Sophia