File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 21
21
#ifdef digitalPinToInterruptObj
22
22
static mbed::InterruptIn* PinNameToInterruptObj (PinName P) {
23
23
// reverse search for pinName in g_APinDescription[P].name fields
24
- for (int i=0 ; i < PINS_COUNT; i++) {
24
+ for (pin_size_t i=0 ; i < PINS_COUNT; i++) {
25
25
if (g_APinDescription[i].name == P) {
26
26
return g_APinDescription[i].irq ;
27
27
}
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ unsigned long micros() {
39
39
40
40
void delay (unsigned long ms)
41
41
{
42
- wait_ms (ms);
42
+ thread_sleep_for (ms);
43
43
}
44
44
45
45
void delayMicroseconds (unsigned int us)
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ static int read_resolution = 10;
29
29
#ifdef digitalPinToPwmObj
30
30
static mbed::PwmOut* PinNameToPwmObj (PinName P) {
31
31
// reverse search for pinName in g_APinDescription[P].name fields
32
- for (int i=0 ; i < PINS_COUNT; i++) {
32
+ for (pin_size_t i=0 ; i < PINS_COUNT; i++) {
33
33
if (g_APinDescription[i].name == P) {
34
34
return g_APinDescription[i].pwm ;
35
35
}
You can’t perform that action at this time.
0 commit comments