Fraise
2.1
FRAmework for Interfacing Software and Electronics
Main Page
Modules
Classes
Files
File List
File Members
All
Classes
Files
Functions
Typedefs
Groups
osc.h
1
/*
2
** Made by fabien le mentec <texane@gmail.com>
3
**
4
** Started on Sat Oct 3 07:04:58 2009 texane
5
** Last update Mon Oct 12 07:18:01 2009 texane
6
*/
7
8
9
10
#ifndef OSC_H_INCLUDED
11
# define OSC_H_INCLUDED
12
13
14
15
#define OSC_FREQ 8000000
16
17
18
enum
osc_pmode
19
{
20
/* sleep mode: both cpu and peripherals not clocked */
21
OSC_PMODE_SLEEP = 0,
22
23
/* run mode: both cpu and peripherals clocked */
24
OSC_PMODE_PRI_RUN,
25
OSC_PMODE_SEC_RUN,
26
OSC_PMODE_RC_RUN,
27
#define OSC_PMODE_RUN OSC_PMODE_PRI_RUN
28
29
/* idle mode: cpu not clocked, peripherals clocked */
30
OSC_PMODE_PRI_IDLE,
31
OSC_PMODE_SEC_IDLE,
32
OSC_PMODE_RC_IDLE,
33
#define OSC_PMODE_IDLE OSC_PMODE_PRI_IDLE
34
35
OSC_PMODE_MAX
36
};
37
38
39
void
osc_setup(
void
);
40
void
osc_set_power(
enum
osc_pmode);
41
42
43
44
#endif
/* ! OSC_H_INCLUDED */
i2c_master
pic18f_i2c-master
src
osc.h
Generated on Mon Jan 18 2016 00:28:53 for Fraise by
1.8.6