Skip to content
Snippets Groups Projects
Verified Commit 55991532 authored by rahix's avatar rahix
Browse files

chore(pycardium): Reorder includes


Signed-off-by: default avatarRahix <rahix@rahix.de>
parent d293ce3c
No related branches found
No related tags found
No related merge requests found
#include "py/runtime.h" #include "max32665.h"
#include "py/gc.h"
#include "lib/utils/pyexec.h" #include "lib/utils/pyexec.h"
#include "py/gc.h"
#include "py/runtime.h"
#include "py/stackctrl.h" #include "py/stackctrl.h"
#include <stdio.h>
#include "max32665.h" #include <stdio.h>
/* Defined in linker script */ /* Defined in linker script */
extern void *__StackTop, *__StackLimit; extern void *__StackTop, *__StackLimit;
......
#include "mphalport.h"
#include "api/common.h"
#include "epicardium.h"
#include "py/builtin.h"
#include "py/obj.h" #include "py/obj.h"
#include "py/runtime.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 // TODO: these should be intialized as mp_const_none
mp_obj_t callbacks[EPIC_INT_NUM] = { mp_obj_t callbacks[EPIC_INT_NUM] = {
......
#include "epicardium.h"
#include "py/obj.h" #include "py/obj.h"
#include "py/objlist.h" #include "py/objlist.h"
#include "py/runtime.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) 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); int led = mp_obj_get_int(led_in);
......
#include "epicardium.h"
#include "py/builtin.h"
#include "py/obj.h" #include "py/obj.h"
#include "py/runtime.h" #include "py/runtime.h"
#include "py/builtin.h"
#include "epicardium.h"
static mp_obj_t mp_light_sensor_start() static mp_obj_t mp_light_sensor_start()
{ {
......
#include "epicardium.h"
#include "py/obj.h" #include "py/obj.h"
#include "py/objstr.h"
#include "py/objint.h" #include "py/objint.h"
#include "py/objstr.h"
#include "py/runtime.h" #include "py/runtime.h"
#include "epicardium.h"
#include <stdio.h> #include <stdio.h>
static uint16_t rgb888_to_rgb565(uint8_t *bytes) static uint16_t rgb888_to_rgb565(uint8_t *bytes)
......
#include "py/mpconfig.h"
#include "extmod/utime_mphal.h"
#include "mxc_delay.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[] = { 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___name__), MP_ROM_QSTR(MP_QSTR_utime) },
{ MP_ROM_QSTR(MP_QSTR_sleep), MP_ROM_PTR(&mp_utime_sleep_obj) }, { MP_ROM_QSTR(MP_QSTR_sleep), MP_ROM_PTR(&mp_utime_sleep_obj) },
......
#include "epicardium.h"
#include "py/builtin.h"
#include "py/obj.h" #include "py/obj.h"
#include "py/runtime.h" #include "py/runtime.h"
#include "py/builtin.h"
#include "epicardium.h"
static mp_obj_t mp_vibra_set(mp_obj_t state_obj) static mp_obj_t mp_vibra_set(mp_obj_t state_obj)
{ {
......
#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 <stdarg.h>
#include <stdio.h>
#include <string.h>
#include "py/lexer.h" #include "py/lexer.h"
#include "py/mpconfig.h" #include "py/mpconfig.h"
...@@ -11,12 +16,9 @@ ...@@ -11,12 +16,9 @@
#include "py/runtime.h" #include "py/runtime.h"
#include "py/mpprint.h" #include "py/mpprint.h"
#include "mxc_delay.h" #include <stdint.h>
#include "max32665.h" #include <stdio.h>
#include "tmr.h" #include <string.h>
#include "epicardium.h"
#include "api/common.h"
/****************************************************************************** /******************************************************************************
* Serial Communication * Serial Communication
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment