1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #12135 from benpicco/libb2-fix

pkg/libb2: rename config.h to avoid conflicts in the global namespace, set HAVE_ALIGNED_ACCESS_REQUIRED based on CPU (fixes build on esp8266)
This commit is contained in:
Gunar Schorcht 2019-09-04 14:39:07 +02:00 committed by GitHub
commit 98dfdef276
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 3 deletions

View File

@ -26,6 +26,12 @@
extern "C" {
#endif
/**
* @brief The CPU supports unaligned memory access.
* Even if the underlying architecture does not support it, the kernel will take care of it.
*/
#define CPU_HAS_UNALIGNED_ACCESS
/**
* @brief Prints the address the callee will return to
*/

View File

@ -1,5 +1,7 @@
#ifndef CONFIG_H
#define CONFIG_H
#ifndef LIBB2_CONFIG_H
#define LIBB2_CONFIG_H
#include "cpu.h"
#ifdef __cplusplus
extern "C" {
@ -13,7 +15,11 @@ extern "C" {
#define NATIVE_LITTLE_ENDIAN
#endif
#ifndef CPU_HAS_UNALIGNED_ACCESS
#define HAVE_ALIGNED_ACCESS_REQUIRED
#endif
#ifdef __cplusplus
}
#endif
#endif /* CONFIG_H */
#endif /* LIBB2_CONFIG_H */