Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Astro
firmware
Commits
15bb6ac6
Verified
Commit
15bb6ac6
authored
5 years ago
by
rahix
Browse files
Options
Downloads
Patches
Plain Diff
chore: Fix a few compiler warnings
Signed-off-by:
Rahix
<
rahix@rahix.de
>
parent
abb5435f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
epicardium/api/genapi.py
+1
-1
1 addition, 1 deletion
epicardium/api/genapi.py
epicardium/epicardium.h
+1
-1
1 addition, 1 deletion
epicardium/epicardium.h
epicardium/main.c
+11
-10
11 additions, 10 deletions
epicardium/main.c
pycardium/mphalport.c
+1
-0
1 addition, 0 deletions
pycardium/mphalport.c
with
14 additions
and
12 deletions
epicardium/api/genapi.py
+
1
−
1
View file @
15bb6ac6
...
...
@@ -44,7 +44,7 @@ def main():
re
.
DOTALL
|
re
.
MULTILINE
,
)
args_matcher
=
re
.
compile
(
r
"
(?P<type>\w+(?:\*+|\s+))(?P<name>\w+),
"
)
args_matcher
=
re
.
compile
(
r
"
(?P<type>
(?:const )?
\w+(?:\*+|\s+))(?P<name>\w+),
"
)
# Open output files
f_client
=
cx
.
enter_context
(
open
(
args
.
client
,
"
w
"
))
...
...
This diff is collapsed.
Click to expand it.
epicardium/epicardium.h
+
1
−
1
View file @
15bb6ac6
...
...
@@ -7,7 +7,7 @@
#endif
#define API_UART_WRITE 0x1
API
(
API_UART_WRITE
,
void
epic_uart_write_str
(
char
*
str
,
intptr_t
length
));
API
(
API_UART_WRITE
,
void
epic_uart_write_str
(
const
char
*
str
,
intptr_t
length
));
#define API_UART_READ 0x2
API
(
API_UART_READ
,
char
epic_uart_read_chr
(
void
));
...
...
This diff is collapsed.
Click to expand it.
epicardium/main.c
+
11
−
10
View file @
15bb6ac6
...
...
@@ -2,6 +2,7 @@
#include
"card10.h"
#include
"uart.h"
#include
"cdcacm.h"
#include
"leds.h"
#include
"api/dispatcher.h"
extern
mxc_uart_regs_t
*
ConsoleUart
;
...
...
@@ -9,20 +10,20 @@ extern mxc_uart_regs_t * ConsoleUart;
void
epic_uart_write_str
(
char
*
str
,
intptr_t
length
)
{
UART_Write
(
ConsoleUart
,
(
uint8_t
*
)
str
,
length
);
cdcacm_write
((
uint8_t
*
)
str
,
length
);
cdcacm_write
((
uint8_t
*
)
str
,
length
);
}
char
epic_uart_read_chr
(
void
)
{
while
(
1
)
{
if
(
UART_NumReadAvail
(
ConsoleUart
)
>
0
)
{
return
UART_ReadByte
(
ConsoleUart
);
}
if
(
cdcacm_num_read_avail
()
>
0
)
{
return
cdcacm_read
();
}
}
while
(
1
)
{
if
(
UART_NumReadAvail
(
ConsoleUart
)
>
0
)
{
return
UART_ReadByte
(
ConsoleUart
);
}
if
(
cdcacm_num_read_avail
()
>
0
)
{
return
cdcacm_read
();
}
}
}
void
epic_leds_set
(
int
led
,
uint8_t
r
,
uint8_t
g
,
uint8_t
b
)
...
...
This diff is collapsed.
Click to expand it.
pycardium/mphalport.c
+
1
−
0
View file @
15bb6ac6
...
...
@@ -7,6 +7,7 @@
#include
"py/runtime.h"
#include
"epicardium.h"
#include
"mxc_delay.h"
/******************************************************************************
* Serial Communication
...
...
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