nrf_delay.c 721 B

1234567891011121314151617181920212223242526
  1. /* Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved.
  2. *
  3. * The information contained herein is property of Nordic Semiconductor ASA.
  4. * Terms and conditions of usage are described in detail in NORDIC
  5. * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
  6. *
  7. * Licensees are granted free, non-transferable use of the information. NO
  8. * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
  9. * the file.
  10. *
  11. */
  12. #include <stdio.h>
  13. #include "compiler_abstraction.h"
  14. #include "nrf.h"
  15. #include "nrf_delay.h"
  16. /*lint --e{438} "Variable not used" */
  17. void nrf_delay_ms(uint32_t volatile number_of_ms)
  18. {
  19. while(number_of_ms != 0)
  20. {
  21. number_of_ms--;
  22. nrf_delay_us(999);
  23. }
  24. }