Modified mbed library sources only for STM32F030K6, LQFP32 (0.8mm pitch) package, 32K Flash, 4K SRAM. Compiler target: Nucleo 32F030R8
Fork of mbed-src by
Diff: common/BusIn.cpp
- Revision:
- 160:6870f452afa4
- Parent:
- 13:0645d8841f51
- Child:
- 455:8bc3a354916d
--- a/common/BusIn.cpp Mon Apr 14 10:30:07 2014 +0100 +++ b/common/BusIn.cpp Mon Apr 14 11:30:06 2014 +0100 @@ -49,6 +49,14 @@ return v; } +void BusIn::mode(PinMode pull) { + for (int i=0; i<16; i++) { + if (_pin[i] != 0) { + _pin[i]->mode(pull); + } + } +} + #ifdef MBED_OPERATORS BusIn::operator int() { return read();