Skip to content

Commit

Permalink
[DRIVER] - added decadriver,
Browse files Browse the repository at this point in the history
[COMPILER] - added compiler.h file
  • Loading branch information
FredericMes committed Mar 28, 2019
1 parent e22161c commit 6c1a3a4
Show file tree
Hide file tree
Showing 8 changed files with 7,740 additions and 0 deletions.
60 changes: 60 additions & 0 deletions compiler/compiler.h
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_ */
Loading

0 comments on commit 6c1a3a4

Please sign in to comment.