Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Ling
firmware
Commits
eb3fd699
Commit
eb3fd699
authored
5 years ago
by
schneider
Browse files
Options
Downloads
Patches
Plain Diff
fix(BHI): Remove broken machine detection
parent
504c3bd0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/bosch/BHy1_driver_and_MCU_solution/driver/inc/bhy.h
+0
-206
0 additions, 206 deletions
lib/bosch/BHy1_driver_and_MCU_solution/driver/inc/bhy.h
with
0 additions
and
206 deletions
lib/bosch/BHy1_driver_and_MCU_solution/driver/inc/bhy.h
+
0
−
206
View file @
eb3fd699
...
...
@@ -59,66 +59,6 @@
/****************************************************************/
/**\name DATA TYPES INCLUDES */
/************************************************************/
/*!
* @brief The following definition uses for define the data types
*
* @note While porting the API please consider the following
* @note Please check the version of C standard
* @note Are you using Linux platform
*/
/*!
* @brief For the Linux platform support
* Please use the types.h for your data types definitions
*/
#ifdef __KERNEL__
#include
<linux/types.h>
/* singed integer type*/
typedef
int8_t
s8
;
/**< used for signed 8bit */
typedef
int16_t
s16
;
/**< used for signed 16bit */
typedef
int32_t
s32
;
/**< used for signed 32bit */
typedef
int64_t
s64
;
/**< used for signed 64bit */
typedef
u_int8_t
u8
;
/**< used for unsigned 8bit */
typedef
u_int16_t
u16
;
/**< used for unsigned 16bit */
typedef
u_int32_t
u32
;
/**< used for unsigned 32bit */
typedef
u_int64_t
u64
;
/**< used for unsigned 64bit */
#else
/* ! __KERNEL__ */
/**********************************************************
* These definition uses for define the C
* standard version data types
***********************************************************/
# if !defined(__STDC_VERSION__)
/************************************************
* compiler is C11 C standard
************************************************/
#if (__STDC_VERSION__ == 201112L)
/************************************************/
#include
<stdint.h>
/************************************************/
/*unsigned integer types*/
typedef
uint8_t
u8
;
/**< used for unsigned 8bit */
typedef
uint16_t
u16
;
/**< used for unsigned 16bit */
typedef
uint32_t
u32
;
/**< used for unsigned 32bit */
typedef
uint64_t
u64
;
/**< used for unsigned 64bit */
/*signed integer types*/
typedef
int8_t
s8
;
/**< used for signed 8bit */
typedef
int16_t
s16
;
/**< used for signed 16bit */
typedef
int32_t
s32
;
/**< used for signed 32bit */
typedef
int64_t
s64
;
/**< used for signed 64bit */
/************************************************
* compiler is C99 C standard
************************************************/
#elif (__STDC_VERSION__ == 199901L)
/* stdint.h is a C99 supported c library.
which is used to fixed the integer size*/
...
...
@@ -137,153 +77,7 @@ typedef int8_t s8;/**< used for signed 8bit */
typedef
int16_t
s16
;
/**< used for signed 16bit */
typedef
int32_t
s32
;
/**< used for signed 32bit */
typedef
int64_t
s64
;
/**< used for signed 64bit */
/************************************************
* compiler is C89 or other C standard
************************************************/
#else
/* !defined(__STDC_VERSION__) */
/*!
* @brief By default it is defined as 32 bit machine configuration
* define your data types based on your
* machine/compiler/controller configuration
*/
#define MACHINE_32_BIT
/*! @brief
* If your machine support 16 bit
* define the MACHINE_16_BIT
*/
#ifdef MACHINE_16_BIT
#include
<limits.h>
/*signed integer types*/
typedef
signed
char
s8
;
/**< used for signed 8bit */
typedef
signed
short
int
s16
;
/**< used for signed 16bit */
typedef
signed
long
int
s32
;
/**< used for signed 32bit */
#if defined(LONG_MAX) && LONG_MAX == 0x7fffffffffffffffL
typedef
long
int
s64
;
/**< used for signed 64bit */
typedef
unsigned
long
int
u64
;
/**< used for unsigned 64bit */
#elif defined(LLONG_MAX) && (LLONG_MAX == 0x7fffffffffffffffLL)
typedef
long
long
int
s64
;
/**< used for signed 64bit */
typedef
unsigned
long
long
int
u64
;
/**< used for unsigned 64bit */
#else
#warning Either the correct data type for signed 64 bit integer \
could not be found, or 64 bit integers are not supported in your environment.
#warning If 64 bit integers are supported on your platform, \
please set s64 manually.
#endif
/*unsigned integer types*/
typedef
unsigned
char
u8
;
/**< used for unsigned 8bit */
typedef
unsigned
short
int
u16
;
/**< used for unsigned 16bit */
typedef
unsigned
long
int
u32
;
/**< used for unsigned 32bit */
/* If your machine support 32 bit
define the MACHINE_32_BIT*/
#elif defined MACHINE_32_BIT
/*signed integer types*/
typedef
signed
char
s8
;
/**< used for signed 8bit */
typedef
signed
short
int
s16
;
/**< used for signed 16bit */
typedef
signed
int
s32
;
/**< used for signed 32bit */
/*unsigned integer types*/
typedef
unsigned
char
u8
;
/**< used for unsigned 8bit */
typedef
unsigned
short
int
u16
;
/**< used for unsigned 16bit */
typedef
unsigned
int
u32
;
/**< used for unsigned 32bit */
/* If your machine support 64 bit
define the MACHINE_64_BIT*/
#elif defined MACHINE_64_BIT
/*signed integer types*/
typedef
signed
char
s8
;
/**< used for signed 8bit */
typedef
signed
short
int
s16
;
/**< used for signed 16bit */
typedef
signed
int
s32
;
/**< used for signed 32bit */
typedef
signed
long
int
s64
;
/**< used for signed 64bit */
/*unsigned integer types*/
typedef
unsigned
char
u8
;
/**< used for unsigned 8bit */
typedef
unsigned
short
int
u16
;
/**< used for unsigned 16bit */
typedef
unsigned
int
u32
;
/**< used for unsigned 32bit */
typedef
unsigned
long
int
u64
;
/**< used for unsigned 64bit */
#else
#warning The data types defined above which not supported \
define the data types manually
#endif
#endif
/*** This else will execute for the compilers
* which are not supported the C standards
* Like C89/C99/C11***/
#else
/*!
* @brief By default it is defined as 32 bit machine configuration
* define your data types based on your
* machine/compiler/controller configuration
*/
#define MACHINE_32_BIT
/* If your machine support 16 bit
define the MACHINE_16_BIT*/
#ifdef MACHINE_16_BIT
#include
<limits.h>
/*signed integer types*/
typedef
signed
char
s8
;
/**< used for signed 8bit */
typedef
signed
short
int
s16
;
/**< used for signed 16bit */
typedef
signed
long
int
s32
;
/**< used for signed 32bit */
#if defined(LONG_MAX) && LONG_MAX == 0x7fffffffffffffffL
typedef
long
int
s64
;
/**< used for signed 64bit */
typedef
unsigned
long
int
u64
;
/**< used for unsigned 64bit */
#elif defined(LLONG_MAX) && (LLONG_MAX == 0x7fffffffffffffffLL)
typedef
long
long
int
s64
;
/**< used for signed 64bit */
typedef
unsigned
long
long
int
u64
;
/**< used for unsigned 64bit */
#else
#warning Either the correct data type for signed 64 bit integer \
could not be found, or 64 bit integers are not supported in your environment.
#warning If 64 bit integers are supported on your platform, \
please set s64 manually.
#endif
/*unsigned integer types*/
typedef
unsigned
char
u8
;
/**< used for unsigned 8bit */
typedef
unsigned
short
int
u16
;
/**< used for unsigned 16bit */
typedef
unsigned
long
int
u32
;
/**< used for unsigned 32bit */
/*! @brief If your machine support 32 bit
define the MACHINE_32_BIT*/
#elif defined MACHINE_32_BIT
/*signed integer types*/
typedef
signed
char
s8
;
/**< used for signed 8bit */
typedef
signed
short
int
s16
;
/**< used for signed 16bit */
typedef
signed
int
s32
;
/**< used for signed 32bit */
/*unsigned integer types*/
typedef
unsigned
char
u8
;
/**< used for unsigned 8bit */
typedef
unsigned
short
int
u16
;
/**< used for unsigned 16bit */
typedef
unsigned
int
u32
;
/**< used for unsigned 32bit */
/* If your machine support 64 bit
define the MACHINE_64_BIT*/
#elif defined MACHINE_64_BIT
/*signed integer types*/
typedef
signed
char
s8
;
/**< used for signed 8bit */
typedef
signed
short
int
s16
;
/**< used for signed 16bit */
typedef
signed
int
s32
;
/**< used for signed 32bit */
typedef
signed
long
int
s64
;
/**< used for signed 64bit */
/*unsigned integer types*/
typedef
unsigned
char
u8
;
/**< used for unsigned 8bit */
typedef
unsigned
short
int
u16
;
/**< used for unsigned 16bit */
typedef
unsigned
int
u32
;
/**< used for unsigned 32bit */
typedef
unsigned
long
int
u64
;
/**< used for unsigned 64bit */
#else
#warning The data types defined above which not supported \
define the data types manually
#endif
#endif
#endif
/***************************************************************/
/**\name BUS READ AND WRITE FUNCTION POINTERS */
/***************************************************************/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment