PaulStoffregen / OneWire

Library for Dallas/Maxim 1-Wire Chips
http://www.pjrc.com/teensy/td_libs_OneWire.html
595 stars 390 forks source link

mbed: fix crash on digital* operations #127

Closed facchinm closed 9 months ago

facchinm commented 1 year ago

Fix functionality (and the infamous blink of death) on mbed enabled boards.

Tested on Nano RP2040 Connect and Portenta H7 (should work on all supported boards

@gbr1

sebromero commented 1 year ago

@facchinm FYI Does not work yet on Arduino Nicla Vision and Arduino Nicla Sense ME.

gbr1 commented 1 year ago

@sebromero @facchinm it seems to still create issues using threads :'(

sebromero commented 1 year ago

@gbr1 can you elaborate? What issues?

gbr1 commented 1 year ago

@sebromero if you use the OneWire class and/or methods inside a thread it doens't work and it causes the immediate thread kill. Probably there is something that locks interrupts or similar