Skip to content

Commit 708a7d5

Browse files
author
Arto Kinnunen
committed
Review corrections
1 parent db2e2cd commit 708a7d5

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

source/6LoWPAN/Thread/thread_joiner_application.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,8 +519,8 @@ static void device_configuration_validate(device_configuration_s *this)
519519
this->vendor_stack_version[1] = (uint8_t)(THREAD_ARM_OUI >> 8);
520520
this->vendor_stack_version[2] = (uint8_t)(THREAD_ARM_OUI);
521521
this->vendor_stack_version[3] = (uint8_t)(THREAD_BUILD_NUMBER >> 4);
522-
this->vendor_stack_version[4] = (uint8_t)(((THREAD_BUILD_NUMBER & 0x0f) << 4) + THREAD_REVISION_NUMBER);
523-
this->vendor_stack_version[5] = (uint8_t)((THREAD_VERSION_MIN << 4) + THREAD_VERSION_MAJ);
522+
this->vendor_stack_version[4] = (uint8_t)(((THREAD_BUILD_NUMBER & 0x0f) << 4) | THREAD_REVISION_NUMBER);
523+
this->vendor_stack_version[5] = (uint8_t)((THREAD_VERSION_MIN << 4) | THREAD_VERSION_MAJ);
524524
}
525525
}
526526

source/Service_Libs/mdns/fnet/fnet_stack/port/compiler/fnet_comp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
#define FNET_COMP_PACKED_VAR __packed
7373
#endif
7474

75-
#if FNET_CFG_COMP_UV6
75+
#if FNET_CFG_COMP_CLANG
7676
#define FNET_COMP_PACKED_BEGIN _Pragma("pack(1)")
7777
#define FNET_COMP_PACKED_END _Pragma("pack()")
7878
#endif

source/Service_Libs/mdns/fnet/fnet_stack/port/compiler/fnet_comp_config.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
* Current version of the FNET supports the following compiler definitions:
4242
* - @c FNET_CFG_COMP_IAR = Used compiler is IAR.
4343
* - @c FNET_CFG_COMP_GNUC = Used compiler is GCC.
44-
* - @c FNET_CFG_COMP_UV6 = Used compiler is Keil uVision with armclang.
44+
* - @c FNET_CFG_COMP_CLANG = Used compiler is Keil uVision with Clang.
4545
* - @c FNET_CFG_COMP_UV = Used compiler is Keil uVision with armcc.
4646
* - @c FNET_CFG_COMP_GHS = Used compiler is Green Hills.
4747
* - @c FNET_CFG_COMP_DCC = Used compiler is Diab.
@@ -64,8 +64,8 @@
6464
#elif (defined(FNET_CFG_COMP_GHS) && FNET_CFG_COMP_GHS)
6565
#define FNET_COMP_STR "GHS"
6666
/* Keil uVision compiler with armclang. */
67-
#elif (defined(FNET_CFG_COMP_UV6) && FNET_CFG_COMP_UV6)
68-
#define FNET_COMP_STR "UV6"
67+
#elif (defined(FNET_CFG_COMP_CLANG) && FNET_CFG_COMP_CLANG)
68+
#define FNET_COMP_STR "CLANG"
6969
/* Keil uVision compiler with armcc. */
7070
#elif (defined(FNET_CFG_COMP_UV) && FNET_CFG_COMP_UV)
7171
#define FNET_COMP_STR "UV"
@@ -90,12 +90,12 @@
9090
#elif defined(__ghs__)
9191
#define FNET_CFG_COMP_GHS (1)
9292
#define FNET_COMP_STR "GHS"
93-
/* Keil uVision compiler using armclang. */
94-
#elif defined(__CC_ARM) || defined(__ARMCC_VERSION) && defined(__GNUC__)
95-
#define FNET_CFG_COMP_UV6 (1)
96-
#define FNET_COMP_STR "UV6"
93+
/* Keil uVision compiler using Clang. */
94+
#elif defined(__clang__)
95+
#define FNET_CFG_COMP_CLANG (1)
96+
#define FNET_COMP_STR "CLANG"
9797
/* Keil uVision compiler using armcc. */
98-
#elif defined(__CC_ARM) || defined(__ARMCC_VERSION)
98+
#elif defined(__CC_ARM)
9999
#define FNET_CFG_COMP_UV (1)
100100
#define FNET_COMP_STR "UV"
101101
/* GNU GCC */
@@ -118,8 +118,8 @@
118118
#ifndef FNET_CFG_COMP_CW
119119
#define FNET_CFG_COMP_CW (0)
120120
#endif
121-
#ifndef FNET_CFG_COMP_UV6
122-
#define FNET_CFG_COMP_UV6 (0)
121+
#ifndef FNET_CFG_COMP_CLANG
122+
#define FNET_CFG_COMP_CLANG (0)
123123
#endif
124124
#ifndef FNET_CFG_COMP_UV
125125
#define FNET_CFG_COMP_UV (0)

0 commit comments

Comments
 (0)