1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-22 13:03:54 +01:00
RIOT/cpu/native/include/architecture_arch.h
2025-03-11 16:19:39 +01:00

49 lines
1022 B
C

/*
* Copyright (C) 2020 Otto-von-Guericke-Universität Magdeburg
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @addtogroup cpu_native
* @{
*/
/**
* @file
* @brief Architecture details
* @author Marian Buschsieweke <marian.buschsieweke@ovgu.de>
*/
#ifndef ARCHITECTURE_ARCH_H
#define ARCHITECTURE_ARCH_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief raise SIGTRAP
*
* We must not include signal.h directly into RIOT application namespace.
*/
void native_breakpoint(void);
/* Doc is provided centrally in architecture.h, hide this from Doxygen */
#ifndef DOXYGEN
# if (__SIZEOF_POINTER__ == 8)
# define ARCHITECTURE_WORD_BITS (64U)
# else
# define ARCHITECTURE_WORD_BITS (32U)
# endif
# define ARCHITECTURE_BREAKPOINT(v) native_breakpoint()
#endif /* DOXYGEN */
#ifdef __cplusplus
}
#endif
#endif /* ARCHITECTURE_ARCH_H */
/** @} */