mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-16 18:13:49 +01:00
sys/architecture: introduce uinttxtptr_t
This commit is contained in:
parent
54544c0a36
commit
34e11bf2bc
@ -29,6 +29,10 @@ extern "C" {
|
|||||||
/* Doc is provided centrally in platform.h, hide this from Doxygen */
|
/* Doc is provided centrally in platform.h, hide this from Doxygen */
|
||||||
#ifndef DOXYGEN
|
#ifndef DOXYGEN
|
||||||
#define ARCHITECTURE_WORD_BITS (8U)
|
#define ARCHITECTURE_WORD_BITS (8U)
|
||||||
|
|
||||||
|
#define ARCHITECTURE_LARGE_TXT_PTR 1
|
||||||
|
typedef uint32_t uinttxtptr_t;
|
||||||
|
#define PRIxTXTPTR PRIx32
|
||||||
#endif /* DOXYGEN */
|
#endif /* DOXYGEN */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|||||||
@ -25,6 +25,7 @@
|
|||||||
#define ARCHITECTURE_H
|
#define ARCHITECTURE_H
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <inttypes.h>
|
||||||
|
|
||||||
#include "architecture_arch.h"
|
#include "architecture_arch.h"
|
||||||
|
|
||||||
@ -79,6 +80,18 @@ typedef int32_t sword_t;
|
|||||||
#error "Unsupported word size (check ARCHITECTURE_WORD_BITS in architecture_arch.h)"
|
#error "Unsupported word size (check ARCHITECTURE_WORD_BITS in architecture_arch.h)"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(ARCHITECTURE_LARGE_TXT_PTR) || DOXYGEN
|
||||||
|
/**
|
||||||
|
* @brief Pointer type to point anywhere in the .text section
|
||||||
|
*/
|
||||||
|
typedef uintptr_t uinttxtptr_t;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Format string macro for text section pointer
|
||||||
|
*/
|
||||||
|
#define PRIxTXTPTR PRIxPTR
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Type qualifier to use to align data on word boundaries
|
* @brief Type qualifier to use to align data on word boundaries
|
||||||
*
|
*
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user