ISR once for all

Post here first, or if you can't find a relevant section!
Post Reply
poivretjulien
Posts: 3
Joined: Wed Jul 20, 2022 1:52 pm

ISR once for all

Post by poivretjulien »

Hello,
How can I make a custom function handling the specific vector address ISR routine given by the data sheet (in pure c) please ?
in fact I have the hexadecimal vector address (from data sheet) and I just want to make a function pointing on that physical addresse
that should be a simple basic routine but it's not clear in my mind yet
because function pointer is a pointer on a function but what I want is a function at a
specific runtime address ?
Thanks.
dannyf
Posts: 447
Joined: Sat Jul 04, 2020 7:46 pm

Re: ISR once for all

Post by dannyf »

because function pointer is a pointer on a function but what I want is a function at a
specific runtime address ?
putting a function at a specific address is compiler specific. read the manual for your compiler.

more importantly, why do you want to put a function at a specific address? presummably you want to execute it - which is the same thing practically as calling that function from the isr, via a function pointer or otherwise.
Post Reply

Return to “General discussion”