This repository was archived by the owner on Feb 21, 2020. It is now read-only.
File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -232,7 +232,7 @@ void pinMode( uint32_t ulPin, uint32_t ulMode )
232
232
233
233
if ( (ulPin == 34 ) && (ulMode == STM32_IT ) )
234
234
{
235
- delay (15 );
235
+ nrf_delay_ms (15 );
236
236
TwoWire_begin ();
237
237
TwoWire_beginTransmission (0x48 );
238
238
TwoWire_write (GPIO_USER1_IT );
@@ -278,7 +278,7 @@ void digitalWrite( uint32_t ulPin, uint32_t ulVal )
278
278
switch ( ulPin )
279
279
{
280
280
case 38 :
281
- delay (15 );
281
+ nrf_delay_ms (15 );
282
282
if (ulVal == HIGH )
283
283
{
284
284
TwoWire_begin ();
@@ -296,7 +296,7 @@ void digitalWrite( uint32_t ulPin, uint32_t ulVal )
296
296
break ;
297
297
298
298
case 39 :
299
- delay (15 );
299
+ nrf_delay_ms (15 );
300
300
if (ulVal == HIGH )
301
301
{
302
302
TwoWire_begin ();
@@ -314,7 +314,7 @@ void digitalWrite( uint32_t ulPin, uint32_t ulVal )
314
314
break ;
315
315
316
316
case 40 :
317
- delay (15 );
317
+ nrf_delay_ms (15 );
318
318
if (ulVal == HIGH )
319
319
{
320
320
TwoWire_begin ();
@@ -332,7 +332,7 @@ void digitalWrite( uint32_t ulPin, uint32_t ulVal )
332
332
break ;
333
333
334
334
case 41 :
335
- delay (15 );
335
+ nrf_delay_ms (15 );
336
336
if (ulVal == HIGH )
337
337
{
338
338
TwoWire_begin ();
@@ -350,7 +350,7 @@ void digitalWrite( uint32_t ulPin, uint32_t ulVal )
350
350
break ;
351
351
352
352
case 42 :
353
- delay (15 );
353
+ nrf_delay_ms (15 );
354
354
if (ulVal == HIGH )
355
355
{
356
356
TwoWire_begin ();
@@ -396,12 +396,12 @@ int digitalRead( uint32_t ulPin )
396
396
switch ( ulPin )
397
397
{
398
398
case 44 :
399
- delay (15 );
399
+ nrf_delay_ms (15 );
400
400
TwoWire_begin ();
401
401
TwoWire_beginTransmission (0x48 );
402
402
TwoWire_write (USER2_BUTTON_IN );
403
403
TwoWire_endTransmission ();
404
- delay (15 );
404
+ nrf_delay_ms (15 );
405
405
TwoWire_requestFrom (0x48 , 2 , true);
406
406
char c = TwoWire_read ();
407
407
if (c == 0xC3 )
You can’t perform that action at this time.
0 commit comments