Commit Graph

8 Commits (0fb5d52a8c4734d18fb97747e6bd35f3e4bd858c)

Author SHA1 Message Date
Przemek Wirkus 8c50826562 Removed extra checks for operator[] and replaced them with MBED_ASSERT for cleaner code 2015-01-26 08:47:44 +00:00
Przemek Wirkus 7d54c82331 * Changed Bus operator[]() parameter from unsigned int to int to match mbed code
guidelines.
* Uncommented assertions in operators and added check for operator[] index < 0.
* Moved one operator from private to public, this was a typo thing.
2015-01-06 08:33:24 +00:00
Przemek Wirkus 56e7514495 Modiffied _ns_mack member's comment in Bus classes (BusIn, BusOUt, BusInOut) 2014-12-19 14:59:06 +00:00
Przemek Wirkus db7e92853b Added mask() function to BusIn and BusOut components
You can use BusIn::mask() or BusOut::mask() to get binary mask of all connected and NC pins in bus
2014-12-19 14:37:00 +00:00
Przemek Wirkus c4fc8e68eb Added operator[] for BusIn and BusOut to add access to particular bit in random-iterator fashion 2014-12-19 14:06:46 +00:00
Rohit Grover f65b7d9077 removing warnings discovered by using -Weffc++ flag for gcc 2014-05-26 18:04:46 +01:00
Sissors fc0a2cf35e Mode added to BusIn + allow creation of NC pins
Now BusIn can also use PullUp, etc, instead of only BusInOut.

If the pin is NC, it does get to the init, but all write/mode functions
are disabled. This is how it used to be in the old gpio version. Quite
some libraries allow users to make pins NC, and they are all locking up
with the current mbed version. This is far from a perfect solution, but
more a temporary fix.
2014-04-03 09:22:51 +02:00
Emilio Monti 90b614baf8 Unify mbed library sources
Remove stdio retargeting reference form cmsis: keep it as a standalone
object
Avoid object files clash for sources with the same name
2013-06-14 17:32:15 +01:00