Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stefan Haun
firmware
Commits
55991532
Verified
Commit
55991532
authored
Jul 25, 2019
by
Rahix
Browse files
chore(pycardium): Reorder includes
Signed-off-by:
Rahix
<
rahix@rahix.de
>
parent
d293ce3c
Changes
8
Hide whitespace changes
Inline
Side-by-side
pycardium/main.c
View file @
55991532
#include
"
py/runtime
.h"
#include
"py/gc.h"
#include
"
max32665
.h"
#include
"lib/utils/pyexec.h"
#include
"py/gc.h"
#include
"py/runtime.h"
#include
"py/stackctrl.h"
#include
<stdio.h>
#include
"max32665
.h
"
#include
<stdio
.h
>
/* Defined in linker script */
extern
void
*
__StackTop
,
*
__StackLimit
;
...
...
pycardium/modules/interrupt.c
View file @
55991532
#include
"mphalport.h"
#include
"api/common.h"
#include
"epicardium.h"
#include
"py/builtin.h"
#include
"py/obj.h"
#include
"py/runtime.h"
#include
"py/builtin.h"
#include
"epicardium.h"
#include
"api/common.h"
#include
"mphalport.h"
// TODO: these should be intialized as mp_const_none
mp_obj_t
callbacks
[
EPIC_INT_NUM
]
=
{
...
...
pycardium/modules/leds.c
View file @
55991532
#include
"epicardium.h"
#include
"py/obj.h"
#include
"py/objlist.h"
#include
"py/runtime.h"
#include
"epicardium.h"
static
mp_obj_t
mp_leds_set
(
mp_obj_t
led_in
,
mp_obj_t
color_in
)
{
int
led
=
mp_obj_get_int
(
led_in
);
...
...
pycardium/modules/light_sensor.c
View file @
55991532
#include
"epicardium.h"
#include
"py/builtin.h"
#include
"py/obj.h"
#include
"py/runtime.h"
#include
"py/builtin.h"
#include
"epicardium.h"
static
mp_obj_t
mp_light_sensor_start
()
{
...
...
pycardium/modules/sys_display.c
View file @
55991532
#include
"epicardium.h"
#include
"py/obj.h"
#include
"py/objstr.h"
#include
"py/objint.h"
#include
"py/objstr.h"
#include
"py/runtime.h"
#include
"epicardium.h"
#include
<stdio.h>
static
uint16_t
rgb888_to_rgb565
(
uint8_t
*
bytes
)
...
...
pycardium/modules/utime.c
View file @
55991532
#include
"py/mpconfig.h"
#include
"extmod/utime_mphal.h"
#include
"mxc_delay.h"
#include
"extmod/utime_mphal.h"
#include
"py/mpconfig.h"
static
const
mp_rom_map_elem_t
time_module_globals_table
[]
=
{
{
MP_ROM_QSTR
(
MP_QSTR___name__
),
MP_ROM_QSTR
(
MP_QSTR_utime
)
},
{
MP_ROM_QSTR
(
MP_QSTR_sleep
),
MP_ROM_PTR
(
&
mp_utime_sleep_obj
)
},
...
...
pycardium/modules/vibra.c
View file @
55991532
#include
"epicardium.h"
#include
"py/builtin.h"
#include
"py/obj.h"
#include
"py/runtime.h"
#include
"py/builtin.h"
#include
"epicardium.h"
static
mp_obj_t
mp_vibra_set
(
mp_obj_t
state_obj
)
{
...
...
pycardium/mphalport.c
View file @
55991532
#include
<stdint.h>
#include
"api/common.h"
#include
"epicardium.h"
#include
"max32665.h"
#include
"mxc_delay.h"
#include
"tmr.h"
/* stdarg.h must be included before mpprint.h */
#include
<stdarg.h>
#include
<stdio.h>
#include
<string.h>
#include
"py/lexer.h"
#include
"py/mpconfig.h"
...
...
@@ -11,12 +16,9 @@
#include
"py/runtime.h"
#include
"py/mpprint.h"
#include
"mxc_delay.h"
#include
"max32665.h"
#include
"tmr.h"
#include
"epicardium.h"
#include
"api/common.h"
#include
<stdint.h>
#include
<stdio.h>
#include
<string.h>
/******************************************************************************
* Serial Communication
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment