- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is it true that all ISRs for uC/OS-II must be written in assembly language?
How is an ISR "attached" to a specific interrupt? Does anybody have an example that I could see (CPU register storage, etc.)? Thanks.Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The interrupt entry point must be written in assembly, however this is provided for you with the Nios II port of microC/OS-II. Individual ISR's can be written in C. You can attach to an interrupt using the standard HAL alt_irq_register() function, as described in the Nios II software developer's handbook. In addition, you can look at the HAL device drivers for examples (e.g. the JTAG UART driver).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page