Logic library, defining interrupt handler with ISR(CCL_CCL_vect) #418
-
Reading the documentation for the Logic library, under "Advanced Interrupt" it says that "New in 1.5.0, it is possible to use interrupts "manually" while still using the Logic library". Essentially that means defined the interrupt with ISR(CCL_CCL_vect) rather than using attachInterrupt. However, when I try I get a compilation error. Looking at the source code for LogicISR.cpp I understand for this to work library.properties should include dot_a_linkage=true. This is not the case, hence the conflict detected by the linker. Now, this is easily fixed adding a line dot_a_linkage=true to library.properties. Is there any reason this is not done in DxCore? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
AAAH! Someone who understands what "dot_a_linkage = true" does! Explain it to me! I thought it was just for precompiled libraries. I concluded that there's no way it could be required, because HardwareSerial relies upon the fact that if no function in a compilation unit is referenced, nothing from the compilation unit goes into the binary. So why if we're not referencing anything in LogicISR, would we need dot_a_linkage? |
Beta Was this translation helpful? Give feedback.
-
Thanks. I've checked in fixes for this in logic and comparator, which I think are the only libraries where this would crop up. |
Beta Was this translation helpful? Give feedback.
Thanks. I've checked in fixes for this in logic and comparator, which I think are the only libraries where this would crop up.