system_nrf.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. Copyright (c) 2009-2020 ARM Limited. All rights reserved.
  3. SPDX-License-Identifier: Apache-2.0
  4. Licensed under the Apache License, Version 2.0 (the License); you may
  5. not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. www.apache.org/licenses/LICENSE-2.0
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an AS IS BASIS, WITHOUT
  10. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. NOTICE: This file has been modified by Nordic Semiconductor ASA.
  14. */
  15. #ifndef SYSTEM_NRF_H
  16. #define SYSTEM_NRF_H
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. #include <stdint.h>
  21. extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */
  22. /**
  23. * Initialize the system
  24. *
  25. * @param none
  26. * @return none
  27. *
  28. * @brief Setup the microcontroller system.
  29. * Initialize the System and update the SystemCoreClock variable.
  30. */
  31. extern void SystemInit (void);
  32. /**
  33. * Update SystemCoreClock variable
  34. *
  35. * @param none
  36. * @return none
  37. *
  38. * @brief Updates the SystemCoreClock with current core Clock
  39. * retrieved from cpu registers.
  40. */
  41. extern void SystemCoreClockUpdate (void);
  42. #ifdef __cplusplus
  43. }
  44. #endif
  45. #endif /* SYSTEM_NRF_H */