PaulStoffregen / OneWire

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

Changed #else clause in Platform specific I/O definitions to use Arduino API calls #2

Closed rogerclarkmelbourne closed 8 years ago

rogerclarkmelbourne commented 9 years ago

Paul,

Sorry to initially send you a personal email.

I wasn't aware that OneWire was on GitHub. My mistake.

I think the change is self explanatory. e.g. The use of API calls instead of direct hardware access.

The only minor hack is that bitmask is used to store the pin number, as this was the most appropriate macro / variable without changing the C code as well.

BaseReg is not use, and reg type has been defined as unsigned int which should compile on most platforms.

warning message has been added

I have test compiled for Uno and Due on 1.6.0 and also for non standard hardware, without any errors.

Thanks

Roger Clark

PaulStoffregen commented 8 years ago

This was manually merged quite some time ago. Closing the old pull request.

rogerclarkmelbourne commented 8 years ago

Thanks