File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
src/modm/platform/adc/stm32 Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,5 @@ modm::platform::Adc{{ id }}::getInterruptFlags()
250
250
void
251
251
modm::platform::Adc{{ id }}::acknowledgeInterruptFlags(const InterruptFlag_t flags)
252
252
{
253
- // Flags are cleared by writing a one to the flag position.
254
- // Writing a zero is ignored.
255
- ADC{{ per }}->SR = flags.value;
253
+ ADC{{ per }}->SR = ~flags.value;
256
254
}
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ def prepare(module, options):
76
76
props ["instances" ] = []
77
77
78
78
if target ["family" ] in ["f2" , "f4" , "f7" ]:
79
- props ["shared_irqs" ] = {"ADC" : listify (device .get_driver ("adc" )["instance" ])}
79
+ props ["shared_irqs" ] = {"ADC" : listify ([ int ( i ) for i in device .get_driver ("adc" )["instance" ] ])}
80
80
props ["shared_irq_ids" ] = props ["shared_irqs" ]["ADC" ]
81
81
else :
82
82
shared_irqs = [v ["name" ] for v in device .get_driver ("core" )["vector" ]]
You can’t perform that action at this time.
0 commit comments