Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of nRF51822 by
nrf_delay.c
00001 /* Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved. 00002 * 00003 * The information contained herein is property of Nordic Semiconductor ASA. 00004 * Terms and conditions of usage are described in detail in NORDIC 00005 * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. 00006 * 00007 * Licensees are granted free, non-transferable use of the information. NO 00008 * WARRANTY of ANY KIND is provided. This heading must NOT be removed from 00009 * the file. 00010 * 00011 */ 00012 00013 #include <stdio.h> 00014 #include "compiler_abstraction.h" 00015 #include "nrf.h" 00016 #include "nrf_delay.h" 00017 00018 /*lint --e{438} "Variable not used" */ 00019 void nrf_delay_ms(uint32_t volatile number_of_ms) 00020 { 00021 while(number_of_ms != 0) 00022 { 00023 number_of_ms--; 00024 nrf_delay_us(999); 00025 } 00026 }
Generated on Tue Jul 12 2022 16:21:03 by
