Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cmp_tool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dominik Loidolt
cmp_tool
Commits
0c50506d
Commit
0c50506d
authored
3 years ago
by
Dominik Loidolt
Browse files
Options
Downloads
Patches
Plain Diff
fix some comments and coding style stuff
parent
ccd4519e
No related branches found
No related tags found
1 merge request
!2
added feature to guess the compression configuration
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/decmp.c
+1
-1
1 addition, 1 deletion
lib/decmp.c
lib/rdcu_rmap.c
+7
-7
7 additions, 7 deletions
lib/rdcu_rmap.c
with
8 additions
and
8 deletions
lib/decmp.c
+
1
−
1
View file @
0c50506d
...
@@ -57,7 +57,7 @@ static int de_raw_pre_process(uint8_t cmp_mode_used)
...
@@ -57,7 +57,7 @@ static int de_raw_pre_process(uint8_t cmp_mode_used)
/**
/**
* @brief model decompression pre-processing
* @brief model decompression pre-processing
*
*
* @note
* @note
change the data_buf in-place
*
*
* @param data_buf pointer to the data to process
* @param data_buf pointer to the data to process
* @param model_buf pointer to the model of the data to process
* @param model_buf pointer to the model of the data to process
...
...
This diff is collapsed.
Click to expand it.
lib/rdcu_rmap.c
+
7
−
7
View file @
0c50506d
...
@@ -261,7 +261,7 @@ static int rdcu_process_rx(void)
...
@@ -261,7 +261,7 @@ static int rdcu_process_rx(void)
cnt
++
;
cnt
++
;
if
(
0
)
if
(
(
0
)
)
rmap_parse_pkt
(
spw_pckt
);
rmap_parse_pkt
(
spw_pckt
);
/* convert format */
/* convert format */
...
@@ -353,7 +353,7 @@ int rdcu_submit_tx(const uint8_t *cmd, int cmd_size,
...
@@ -353,7 +353,7 @@ int rdcu_submit_tx(const uint8_t *cmd, int cmd_size,
if
(
!
rmap_tx
)
if
(
!
rmap_tx
)
return
-
1
;
return
-
1
;
if
(
0
)
if
(
(
0
)
)
printf
(
"Transmitting RMAP command
\n
"
);
printf
(
"Transmitting RMAP command
\n
"
);
if
(
rmap_tx
(
cmd
,
cmd_size
,
dpath_len
,
data
,
data_size
))
{
if
(
rmap_tx
(
cmd
,
cmd_size
,
dpath_len
,
data
,
data_size
))
{
...
@@ -530,7 +530,7 @@ int rdcu_sync_data(int (*fn)(uint16_t trans_id, uint8_t *cmd,
...
@@ -530,7 +530,7 @@ int rdcu_sync_data(int (*fn)(uint16_t trans_id, uint8_t *cmd,
slot
=
trans_log_grab_slot
(
data
);
slot
=
trans_log_grab_slot
(
data
);
if
(
slot
<
0
)
{
if
(
slot
<
0
)
{
if
(
0
)
if
(
(
0
)
)
printf
(
"Error: all slots busy!
\n
"
);
printf
(
"Error: all slots busy!
\n
"
);
return
1
;
return
1
;
}
}
...
@@ -792,10 +792,10 @@ void rdcu_rmap_reset_log(void)
...
@@ -792,10 +792,10 @@ void rdcu_rmap_reset_log(void)
*
*
* @param mtu the maximum data transfer size per unit
* @param mtu the maximum data transfer size per unit
*
*
* @param
rmap_
tx a function pointer to transmit an rmap command
* @param tx a function pointer to transmit an rmap command
* @param
rmap_
rx function pointer to receive an rmap command
* @param rx function pointer to receive an rmap command
*
*
* @note
rmap_
tx is expected to return 0 on success
* @note tx is expected to return 0 on success
* rmap_rx is expected to return the number of packet bytes
* rmap_rx is expected to return the number of packet bytes
*
*
* @returns 0 on success, otherwise error
* @returns 0 on success, otherwise error
...
...
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