diff --git a/cores/nRF5/delay.c b/cores/nRF5/delay.c index 010f0be3..62cd6f27 100644 --- a/cores/nRF5/delay.c +++ b/cores/nRF5/delay.c @@ -35,21 +35,6 @@ uint32_t micros( void ) return tick2us(xTaskGetTickCount()); } -void delay_blocking(uint32_t ms) -{ - if ( ms == 0 ) - { - return ; - } - - uint32_t start = millis() ; - - do - { -// yield() ; - } while ( millis() - start < ms ) ; -} - void delay( uint32_t ms ) { vTaskDelay(ms2tick(ms)); diff --git a/cores/nRF5/delay.h b/cores/nRF5/delay.h index 35f9d96e..659b13c4 100644 --- a/cores/nRF5/delay.h +++ b/cores/nRF5/delay.h @@ -58,12 +58,6 @@ extern uint32_t micros( void ) ; */ extern void delay( uint32_t dwMs ) ; -/** - * Delay blocking without using RTOS API to suspend running thread - * @param ms - */ -extern void delay_blocking(uint32_t ms); - /** * \brief Pauses the program for the amount of time (in microseconds) specified as parameter. *