Skip to content

Commit 38df930

Browse files
committed
Update wsf_types.h to support updated CMSIS
1 parent b4d5f0e commit 38df930

File tree

3 files changed

+3
-79
lines changed
  • features/FEATURE_BLE/targets
  • targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/generic

3 files changed

+3
-79
lines changed

features/FEATURE_BLE/targets/TARGET_CORDIO/stack/cordio_stack/ws-core/sw/wsf/generic/wsf_types.h

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,6 @@
2525
#ifndef WSF_TYPES_H
2626
#define WSF_TYPES_H
2727

28-
/**************************************************************************************************
29-
Macros
30-
**************************************************************************************************/
31-
32-
#ifndef NULL
33-
#define NULL 0
34-
#endif
35-
36-
#ifndef TRUE
37-
#define TRUE 1
38-
#endif
39-
40-
#ifndef FALSE
41-
#define FALSE 0
42-
#endif
43-
4428
/**************************************************************************************************
4529
Data Types
4630
**************************************************************************************************/
@@ -60,7 +44,6 @@ typedef unsigned long uint32_t;
6044
typedef unsigned long long uint64_t;
6145
#endif
6246

63-
/* Boolean data type */
64-
typedef uint8_t bool_t;
47+
#include <rtx_core_cm.h>
6548

6649
#endif /* WSF_TYPES_H */

features/FEATURE_BLE/targets/TARGET_Maxim/exactLE/wsf/generic/wsf_types.h

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -22,42 +22,6 @@
2222
#ifndef WSF_TYPES_H
2323
#define WSF_TYPES_H
2424

25-
/**************************************************************************************************
26-
Macros
27-
**************************************************************************************************/
28-
29-
#ifndef NULL
30-
#define NULL 0
31-
#endif
32-
33-
#ifndef TRUE
34-
#define TRUE 1
35-
#endif
36-
37-
#ifndef FALSE
38-
#define FALSE 0
39-
#endif
40-
41-
/**************************************************************************************************
42-
Data Types
43-
**************************************************************************************************/
44-
45-
/* Integer data types */
46-
#if ((defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)) && \
47-
(__ICC8051__ == 0)) || defined(__CC_ARM) || \
48-
(defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)) || \
49-
defined(__IAR_SYSTEMS_ICC__)
50-
#include <stdint.h>
51-
#else
52-
typedef signed char int8_t;
53-
typedef unsigned char uint8_t;
54-
typedef signed short int16_t;
55-
typedef unsigned short uint16_t;
56-
typedef signed long int32_t;
57-
typedef unsigned long uint32_t;
58-
#endif
59-
60-
/* Boolean data type */
61-
typedef uint8_t bool_t;
25+
#include <rtx_core_cm.h>
6226

6327
#endif /* WSF_TYPES_H */

targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/generic/wsf_types.h

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -22,30 +22,7 @@
2222
#ifndef WSF_TYPES_H
2323
#define WSF_TYPES_H
2424

25-
/**************************************************************************************************
26-
Macros
27-
**************************************************************************************************/
28-
29-
#ifndef NULL
30-
#define NULL 0
31-
#endif
32-
33-
#ifndef TRUE
34-
#define TRUE 1
35-
#endif
36-
37-
#ifndef FALSE
38-
#define FALSE 0
39-
#endif
40-
41-
/**************************************************************************************************
42-
Data Types
43-
**************************************************************************************************/
44-
45-
/* Integer data types */
4625
#include <stdint.h>
47-
48-
/* Boolean data type */
49-
typedef uint8_t bool_t;
26+
#include <rtx_core_cm.h>
5027

5128
#endif /* WSF_TYPES_H */

0 commit comments

Comments
 (0)