News for hackers. Stuff that matters.
Re:Embedded Rules of Thumb (2018) by kahlonel on Monday June 01, 2020 @12:07PM (#23380016)
> You split the radio task into two tasks: a low priority task for processing commands and the ISR task which does the acknowledgements.

You contradicted yourself here. You moved the code out of radio ISR to application code, thus keeping the radio ISR small.

Re:Embedded Rules of Thumb (2018) by nsajko on Monday June 01, 2020 @12:44PM (#23380508)
Actually, she/he moved the code for acknowledging radio packets into the ISR, relative to the the "by the book" solution of having minimal ISRs.
Re:Embedded Rules of Thumb (2018) by kahlonel on Monday June 01, 2020 @01:04PM (#23380800)
Why didn’t they move the command processing into the ISR too then?
Re:Embedded Rules of Thumb (2018) by nsajko on Monday June 01, 2020 @01:10PM (#23380895)
I assume the command processing was simply not a predictably small enough of a workload to fit into the time budget for an ISR. Besides, that is irrelevant for his point, he already gave an example of a "big" ISR, it doesn't have to be even bigger.
Re:Embedded Rules of Thumb (2018) by kahlonel on Monday June 01, 2020 @01:16PM (#23380979)
> not a predictably small enough workload

Which means ISRs can grow too big. And that’s the reason keeping ISRs as small as possible should be your goal.

Re:Embedded Rules of Thumb (2018) by ivanbakel on Monday June 01, 2020 @03:44PM (#23382865)
That's not a good argument. That an extreme is bad doesn't make the opposite extreme good. I could easily have a house that is too large, but I wouldn't want to live in a box.
Re:Embedded Rules of Thumb (2018) by nsajko on Monday June 01, 2020 @01:35PM (#23381231)
I mean, I (and most people on this thread...) agree with you, I believe it is almost always "nicer" to be consistent and have minimal ISRs. But her/his point (as I interpret it, at least) was that in some situations a somewhat larger ISR may make sense.