We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f81b728 commit 5037615Copy full SHA for 5037615
components/802.15.4_RF/atmel-rf-driver/source/at24mac.cpp
@@ -31,21 +31,21 @@
31
32
AT24Mac::I2CReset::I2CReset(PinName sda, PinName scl)
33
{
34
- mbed::DigitalInOut SDA(sda, PIN_OUTPUT, PullUp, 1);
35
- mbed::DigitalInOut SCL(scl, PIN_OUTPUT, PullUp, 0);
+ mbed::DigitalInOut pin_sda(sda, PIN_OUTPUT, PullUp, 1);
+ mbed::DigitalInOut pin_scl(scl, PIN_OUTPUT, PullUp, 0);
36
//generate 9 clocks for worst-case scenario
37
for (int i = 0; i < 10; ++i) {
38
- SCL = 1;
+ pin_scl = 1;
39
wait_us(5);
40
- SCL = 0;
+ pin_scl = 0;
41
42
}
43
//generate a STOP condition
44
- SDA = 0;
+ pin_sda = 0;
45
46
47
48
- SDA = 1;
+ pin_sda = 1;
49
50
51
0 commit comments