-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
8 changed files
with
7,740 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/*! ---------------------------------------------------------------------------- | ||
* @file compiler.h | ||
* @brief | ||
* | ||
* @attention | ||
* | ||
* Copyright 2015 (c) DecaWave Ltd, Dublin, Ireland. | ||
* | ||
* All rights reserved. | ||
* | ||
* @author DecaWave | ||
*/ | ||
|
||
#ifndef COMPILER_H_ | ||
#define COMPILER_H_ | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
|
||
#ifdef __GNUC__ | ||
#include <stdint.h> | ||
#include <stdio.h> | ||
#include <stddef.h> | ||
#include <stdlib.h> | ||
#include <string.h> | ||
// #include <math.h> | ||
#include <assert.h> | ||
#include <stdbool.h> | ||
|
||
#ifndef CLOCKS_PER_SEC | ||
#define CLOCKS_PER_SEC 1000 | ||
#endif | ||
|
||
#ifndef TRUE | ||
#define TRUE true | ||
#endif | ||
#ifndef FALSE | ||
#define FALSE false | ||
#endif | ||
|
||
#ifndef __align4 | ||
#define __align4 __attribute__((aligned (4))) | ||
#endif | ||
#ifndef __weak | ||
#define __weak __attribute__((weak)) | ||
#endif | ||
#ifndef __always_inline | ||
#define __always_inline __attribute__((always_inline)) | ||
#endif | ||
|
||
#endif | ||
|
||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* COMPILER_H_ */ |
Oops, something went wrong.