Hello!
I'm currently trying to develop an own driver. So far so good, I've got the whole pack , xml files structure, and managed to include those into the project. They will also be visible in the configuration and thread view in e2studio.
My question is: how can I write the driver code that a user defined interrupt in the configuration of the driver will be used?
Example of the timer driver configuration is what I mean:
The user is configuring the Callback function that should be used when the Interrupt is triggered. Also defines the priority of the Interrupt and the channel to be used.
I want to write a SMBus driver, were I can force a Interrupt if some timing issues are occurred or the incoming data have to be decoded.
My question is how to do this in the code?
I'm not sure if this can be done with this function: "NVIC_SetPendingIRQ(IRQn_Type IRQn)"
The connection between the callback function and the interrupt will be generated automatically? (Have to de defined in the xml file as property and in the head section).
Thank you for any help!
Regards,
Gregor