Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stm32_libraries
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
humanoides
tools
stm32_libraries
Commits
42227356
Commit
42227356
authored
5 years ago
by
Sergi Hernandez
Browse files
Options
Downloads
Patches
Plain Diff
Converted inline to static inline.
parent
fa89f261
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
utils/include/buffer.h
+3
-3
3 additions, 3 deletions
utils/include/buffer.h
utils/include/stm32_time.h
+1
-1
1 addition, 1 deletion
utils/include/stm32_time.h
with
4 additions
and
4 deletions
utils/include/buffer.h
+
3
−
3
View file @
42227356
...
...
@@ -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
;
}
...
...
This diff is collapsed.
Click to expand it.
utils/include/stm32_time.h
+
1
−
1
View file @
42227356
...
...
@@ -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
;
}
...
...
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