-
Notifications
You must be signed in to change notification settings - Fork 0
/
csLFXT.h
48 lines (42 loc) · 1.13 KB
/
csLFXT.h
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
/*! \file */
/*!
* csLFXT.h
*
* Description: Basic driver for configuring LFXT clock source on MSP432P4111
* Launchpad.
*
* Created on:
* Author:
*/
#ifndef CSLFXT_H_
#define CSLFXT_H_
//*****************************************************************************
//
// If building with a C++ compiler, make all of the definitions in this header
// have a C binding.
//
//*****************************************************************************
#ifdef __cplusplus
extern "C"
{
#endif
/*!
* \brief This function configures LFXT as clock source for ACLK
*
* This function configures PJ.0 and PJ.1 for external oscillator and configures
* LFXT as clock source for ACLK with frequency set to 32kHz.
*
* Modified bits 0 and 1 of \b PJSEL register. Modified CS peripheral registers.
*
* \return None
*/
extern void configLFXT(void);
//*****************************************************************************
//
// Mark the end of the C bindings section for C++ compilers.
//
//*****************************************************************************
#ifdef __cplusplus
}
#endif
#endif /* CSLFXT_H_ */