Landtiger LPC1768 C BigLib 1
A self made, custom C library for the LandTiger board.
 
Loading...
Searching...
No Matches
power.h
Go to the documentation of this file.
1#ifndef __POWER_H
2#define __POWER_H
3
4#include "power_types.h"
5#include "types.h"
6#include <stdbool.h>
7
11void POWER_Init(u8 config);
12
15void POWER_SleepOnWFI(void);
16
18void POWER_PowerDownOnWFI(void);
19
23
28
33
34// WFI function
35
37
38#endif
void POWER_PowerDownOnWFI(void)
WFI/WFE puts device to power down power down mode.
Definition power.c:15
void POWER_WaitForInterrupts(void)
Definition power.c:35
void POWER_TurnOffPeripheral(u8 bit)
Turns off a peripheral.
Definition power.c:30
void POWER_Init(u8 config)
Configures sleep/power down mode for the device.
Definition power.c:4
void POWER_TurnOnPeripheral(u8 bit)
Turns on a peripheral.
Definition power.c:25
void POWER_SleepOnWFI(void)
WFI/WFE puts device to sleep or deep sleep mode depending on the configuration specified in the POWER...
Definition power.c:10
void POWER_DeepPowerDownOnWFI(void)
WFI/WFE puts device to deep power down mode provided that the SLEEPDEEP bit is set.
Definition power.c:20
uint8_t u8
Definition types.h:8