diff --git a/utils/include/buffer.h b/utils/include/buffer.h index f5ab293d36c92023f8feaee8a5c7e36de6f67550..ab6a770ca44e131a7bab9523ecc2c4f7f4d8da22 100644 --- a/utils/include/buffer.h +++ b/utils/include/buffer.h @@ -98,7 +98,7 @@ typedef struct * memory is not pre-allocated before calling this function, its * behavior is unpredictable. */ -inline void buffer_init(TBuffer *buffer) +static inline void buffer_init(TBuffer *buffer) { buffer->wr_ptr=0x00000000; buffer->rd_ptr=0x00000000; @@ -116,7 +116,7 @@ inline void buffer_init(TBuffer *buffer) * memory is not pre-allocated before calling this function, its * behavior is unpredictable. */ -inline void buffer_flush(TBuffer *buffer) +static inline void buffer_flush(TBuffer *buffer) { buffer->wr_ptr=buffer->rd_ptr; buffer->num_data=0; @@ -136,7 +136,7 @@ inline void buffer_flush(TBuffer *buffer) * \return the number of bytes in the buffer. This is a number between 0 and * MAX_BUFFER_LENGTH. */ -inline unsigned short int buffer_get_num_data(TBuffer *buffer) +static inline unsigned short int buffer_get_num_data(TBuffer *buffer) { return buffer->num_data; } diff --git a/utils/include/stm32_time.h b/utils/include/stm32_time.h index f45ac7bdfd8603e534e8febbfd34068b1add4df1..1947809808ce668dc86c4d6dcbf4850d5b650d7d 100644 --- a/utils/include/stm32_time.h +++ b/utils/include/stm32_time.h @@ -129,7 +129,7 @@ unsigned char time_is_timeout(TTime *time); * memory is not pre-allocated before calling this function, its * behavior is unpredictable. */ -inline void time_cancel_timeout(TTime *time) +static inline void time_cancel_timeout(TTime *time) { time->target_time=(unsigned long long int)-1; }