Loading...
Searching...
No Matches
cpu.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2019 Gunar Schorcht
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
9#pragma once
10
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25#include <stdio.h>
26#include <stdint.h>
27#include "irq.h"
28
29#define PROVIDES_PM_SET_LOWEST
30
36static inline uintptr_t cpu_get_caller_pc(void)
37{
38 /* This function must exist else RIOT won't compile */
39 return 0;
40}
41
42#ifdef __cplusplus
43}
44#endif
45
static uinttxtptr_t cpu_get_caller_pc(void)
Get the last instruction's address.
Definition cpu.h:140
IRQ driver interface.