Skip to content

Commit

Permalink
Add missing TRICE_INLINE
Browse files Browse the repository at this point in the history
  • Loading branch information
Sazerac4 committed Sep 5, 2024
1 parent 7f60091 commit 4c0717b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/OpenCM3_STM32F411_Nucleo/triceConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ extern "C" {
// Optical feedback: Adapt to your device.
//

static inline void ToggleOpticalFeedbackLED( void ){
TRICE_INLINE void ToggleOpticalFeedbackLED( void ){
// The only user controllable LED available on the
// Nucleo is LD2, on port A5. This is set up in main.c
gpio_toggle(GPIOA, GPIO5);
Expand Down
10 changes: 5 additions & 5 deletions src/trice.h
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ extern int TriceDataOffsetDepthMax;
(((uint32_t)(x) & 0xFF000000UL) >> 24))
*/

static inline uint16_t Reverse16(uint16_t value) {
TRICE_INLINE uint16_t Reverse16(uint16_t value) {
return (((value & 0x00FF) << 8) |
((value & 0xFF00) >> 8));
}
Expand Down Expand Up @@ -589,7 +589,7 @@ extern int TriceDataOffsetDepthMax;

/* pre C99
// aFloat returns passed float value x as bit pattern in a uint32_t type.
static inline uint32_t aFloat( float x ){
TRICE_INLINE uint32_t aFloat( float x ){
union {
float f;
uint32_t u;
Expand All @@ -600,7 +600,7 @@ static inline uint32_t aFloat( float x ){
*/

// aFloat returns passed float value x as bit pattern in a uint32_t type.
static inline uint32_t aFloat(float f) {
TRICE_INLINE uint32_t aFloat(float f) {
union {
float from;
uint32_t to;
Expand All @@ -609,7 +609,7 @@ static inline uint32_t aFloat(float f) {
}

// asFloat returns passed uint32_t value x bit pattern as float type.
static inline float asFloat(uint32_t x) {
TRICE_INLINE float asFloat(uint32_t x) {
union {
uint32_t from;
float to;
Expand All @@ -618,7 +618,7 @@ static inline float asFloat(uint32_t x) {
}

// aDouble returns passed double value x as bit pattern in a uint64_t type.
static inline uint64_t aDouble(double x) {
TRICE_INLINE uint64_t aDouble(double x) {
union {
double d;
uint64_t u;
Expand Down

0 comments on commit 4c0717b

Please sign in to comment.