Looking for users with experience using RC5 remote control component

jan.didden
Posts: 59
http://meble-kuchenne.info.pl
Joined: Thu Dec 17, 2020 3:16 pm
Has thanked: 18 times
Been thanked: 12 times

Re: Looking for users with experience using RC5 remote control component

Post by jan.didden »

With Martin's help I'm making good progress in the NEC IR decoding routines, but hit a snag with the compiler I don't grok.
Would appreciate iof anyone (Ben or 'the other' Martin) could take a look.

The problem appears when trying to use Timer1 (handle Timer2 in the panel).
See attachment. The C-file shows the handler code, two interrupts (pin IOC and Timer1) with each a defined int routine, yet the last statement throws a compile error (2nd attachment).
Anyone has an idea where this comes from or what I did wrong?

Edit: added a 3rd attachment showing the C-code with a single int for comparison. Error in the C compiler?

Jan
Attachments
1-intonly.PNG
1-intonly.PNG (29.73 KiB) Viewed 165 times
cint.PNG
cint.PNG (50.59 KiB) Viewed 165 times
t1.PNG
t1.PNG (11.53 KiB) Viewed 165 times

Post Reply