Patched version of nrf51822 FOTA compatible driver, with GPTIO disabled, as it clashed with the mbed definitions...
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 17:56:13 by 1.7.2