Blame view

RIOT/cpu/nrf5x_common/include/nrf_clock.h 1.08 KB
a752c7ab   elopes   add first test an...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
  /*
   * Copyright (C) 2017 Freie Universitรคt Berlin
   *
   * This file is subject to the terms and conditions of the GNU Lesser
   * General Public License v2.1. See the file LICENSE in the top level
   * directory for more details.
   */
  
  /**
   * @ingroup     cpu_nrf5x_common
   * @{
   *
   * @file
   * @brief       nRF5x shared functions for configuration the system clocks
   *
   * @author      Hauke Petersen <hauke.petersen@fu-berlin.de>
   */
  
  #ifndef NRF_CLOCK_H
  #define NRF_CLOCK_H
  
  #ifdef __cplusplus
  extern "C" {
  #endif
  
  /**
   * @brief   Initialize the high frequency clock (HFCLK) as configured in the
   *          board's periph_conf.h
   */
  void clock_init_hf(void);
  
  /**
   * @brief   Start the low frequency clock (LFCLK) as configured in the board's
   *          periph_conf.
   *
   * Calling this function while the LFCLK is already running will have no effect.
   */
  void clock_start_lf(void);
  
  /**
   * @brief   Stop the low frequency clock (LFCLK)
   *
   * @note    Be sure that no module is using the LFCLK before you shut it down!
   */
  void clock_stop_lf(void);
  
  #ifdef __cplusplus
  }
  #endif
  
  #endif /* NRF_CLOCK_H */
  /** @} */