I was trying to port some code that included - cli() sei()
I made it work by ignoring the situation but in all the research I did I could not find a STM32 generic answer.
I found some answers for Maple
Correct me if Im wrong, maybe @72M the suspention of interrupts is not as critical, but none the less it should be available
Plz excuse my ignorance I'm new here and as such not fully up to date with the work being done by those with a passion.
Interupt suspention
- Bear in There
- Posts: 31
- Joined: Tue Nov 20, 2018 9:30 pm
Interupt suspention
Good artists copy; great artists steal. (Incorrectly accredited to Pablo Picaso by Steve Jobs)
-
- Posts: 3053
- Joined: Mon Oct 19, 2015 12:06 am
- Location: Munich, Germany
- Contact:
Re: Interupt suspention
If you use Roger's libmaple core, then
can be used.
Also see: http://stm32duinoforum.com/forum/viewtopic.ph ... 67&p=14555
Code: Select all
noInterrupts();
interrupts();
Also see: http://stm32duinoforum.com/forum/viewtopic.ph ... 67&p=14555
- mrburnette
- Posts: 3001
- Joined: Mon Apr 27, 2015 12:50 pm
- Location: Greater Atlanta
- Contact:
Re: Interupt suspention
Read more here: http://stm32duinoforum.com/forum/viewtopic.php?t=3435
And remember ... do not double-post!
Ray
And remember ... do not double-post!
Ray
Re: Interupt suspention
I often don't implement Interrupts() / noInterrupts(). whether you need them implemented will depend on your code. many times it is not critical to have them implemented, other times it is.
on some chips, there is no way to permanently disable the interrupts - i personally it is much better to write code assuming that the interrupt is always enabled.
not sure if Interrupts() / noInterrupts() are actually implemented here, however.
on some chips, there is no way to permanently disable the interrupts - i personally it is much better to write code assuming that the interrupt is always enabled.
not sure if Interrupts() / noInterrupts() are actually implemented here, however.
-
- Posts: 3053
- Joined: Mon Oct 19, 2015 12:06 am
- Location: Munich, Germany
- Contact:
Re: Interupt suspention
Of course they are implemented, see:
https://github.com/rogerclarkmelbourne/ ... #L109-L125
https://github.com/rogerclarkmelbourne/ ... #L112-L121
https://github.com/rogerclarkmelbourne/ ... #L109-L125
https://github.com/rogerclarkmelbourne/ ... #L112-L121
- Bear in There
- Posts: 31
- Joined: Tue Nov 20, 2018 9:30 pm
Re: Interupt suspention
Sorry gentlemen I have been otherwise pre occupied for the last week,
But I do appreciate your feed back.
dannyf - it's all about the complexity of your code.
mrburnette - If I double posted it's only because I'm 52 and struggling to figure tweetz
stevestrong - true, but in my environment it didn't work.
In the end I am playing with STMF2F103C8 and @72Mhz and I found cleaner methods, that's not to say that in more complex situations Interrupt suspension would be needed, but not yet.
So thanks for your feedback.
But I do appreciate your feed back.
dannyf - it's all about the complexity of your code.
mrburnette - If I double posted it's only because I'm 52 and struggling to figure tweetz
stevestrong - true, but in my environment it didn't work.
In the end I am playing with STMF2F103C8 and @72Mhz and I found cleaner methods, that's not to say that in more complex situations Interrupt suspension would be needed, but not yet.
So thanks for your feedback.
Good artists copy; great artists steal. (Incorrectly accredited to Pablo Picaso by Steve Jobs)
- mrburnette
- Posts: 3001
- Joined: Mon Apr 27, 2015 12:50 pm
- Location: Greater Atlanta
- Contact:
Re: Interupt suspention
just to complete the On/Off interrupts\ discussion, there are two core functions... depends on core used:
http://stm32duinoforum.com/forum/viewtopic.php?t=2101#p28226
http://stm32duinoforum.com/forum/viewtopic.php?t=2101#p28226