News for hackers. Stuff that matters.
Re:Embedded Rules of Thumb (2018) by barbegal on Monday June 01, 2020 @09:45AM (#23378351)
> Big interrupt handlers require more system-wide knowledge to verify

I think the point I'm trying to make is that sometimes following the rule of "make your ISR small" actually makes this worse because your bigger high priority task can be interrupted or you turn interrupts off or mask interrupts and you end up with even more complexity.

Re:Embedded Rules of Thumb (2018) by aidenn0 on Monday June 01, 2020 @10:00AM (#23378494)
Sometimes following rules-of-thumb blindly will make things worse. This is one reason why we call them "rules of thumb" rather than e.g. "laws."

Another example: if you are shipping over a million units, then adding hardware to simplify software starts to look like a bad trade-off since BOM starts to dominate NRE.