-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhal_pmm.h
More file actions
54 lines (47 loc) · 1.52 KB
/
Copy pathhal_pmm.h
File metadata and controls
54 lines (47 loc) · 1.52 KB
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
53
54
//****************************************************************************//
// Function Library for setting the PMM
// File: hal_pmm.h
//
// Texas Instruments
//
// Version 1.2
// 10/17/09
//
// V1.0 Initial Version
// V1.1 Adjustment to UG
// V1.2 Added return values
//****************************************************************************
#ifndef __PMM
#define __PMM
#define PMM_STATUS_OK 0
#define PMM_STATUS_ERROR 1
//====================================================================
/**
* Set the VCore to a new level if it is possible and return a
* error - value.
*
* \param level PMM level ID
* \return int 1: error / 0: done
*/
unsigned int SetVCore (unsigned char level);
//====================================================================
/**
* Set the VCore to a higher level, if it is possible.
* Return a 1 if voltage at highside (Vcc) is to low
* for the selected Level (level).
*
* \param level PMM level ID
* \return int 1: error / 0: done
*/
unsigned int SetVCoreUp (unsigned char level);
//====================================================================
/**
* Set the VCore to a lower level.
* Return a 1 if voltage at highside (Vcc) is still to low
* for the selected Level (level).
*
* \param level PMM level ID
* \return int 1: done with error / 0: done without error
*/
unsigned int SetVCoreDown (unsigned char level);
#endif /* __PMM */