Loading...
Searching...
No Matches
cpu.h
1/*
2 * SPDX-FileCopyrightText: 2013 Freie Universität Berlin (FUB)
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
12
13#include <stdio.h>
14#include <stdbool.h>
15
16#include "lpc23xx.h"
17#include "arm_cpu.h"
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
26void cpu_init_pll(void);
27
31void cpu_init_mam(void);
32
36void lpc23xx_pclk_scale(uint32_t source, uint32_t target, uint32_t *pclksel, uint32_t *prescale);
37
41void cpu_init_clks(void);
42
46bool install_irq(int IntNumber, void (*HandlerAddr)(void), int Priority);
47
48#ifdef MODULE_PERIPH
49void gpio_init_ports(void);
50#endif
51
55static inline bool cpu_woke_from_backup(void) {
56 return RSIR == 0;
57}
58
62bool cpu_backup_ram_is_initialized(void);
63
67#define CPU_HAS_BACKUP_RAM (1)
68
69#ifdef __cplusplus
70}
71#endif
72
bool cpu_woke_from_backup(void)
Returns true if the CPU woke up from deep sleep.
void cpu_init_pll(void)
Initialize the phase lock loop oscillator.