cpu.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2019 Gunar Schorcht
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 #include <stdio.h>
23 #include <stdint.h>
24 #include "irq.h"
25 
26 #define PROVIDES_PM_SET_LOWEST
27 
33 static inline uintptr_t cpu_get_caller_pc(void)
34 {
35  /* This function must exist else RIOT won't compile */
36  return 0;
37 }
38 
39 #ifdef __cplusplus
40 }
41 #endif
42 
static uintptr_t cpu_get_caller_pc(void)
Gets the last instruction's address.
Definition: cpu.h:33
IRQ driver interface.