Commit 2afaf931 authored by schneider's avatar schneider
Browse files

fix(mpconfig): Remove hard coded value for interrupt numbers

parent 314a22e5
...@@ -11,7 +11,6 @@ shift 5 ...@@ -11,7 +11,6 @@ shift 5
OUTPUT_DIR="$(dirname "$OUTPUT")" OUTPUT_DIR="$(dirname "$OUTPUT")"
# call gcc -E to generate qstr.i.last # call gcc -E to generate qstr.i.last
gcc -E -DNO_QSTR -I"$SOURCE_DIR/micropython" -I"$PROJECT_SRC" -I"$OUTPUT_DIR" "$@" >"$OUTPUT_DIR/qstr.i.last" gcc -E -DNO_QSTR -I"$SOURCE_DIR/micropython" -I"$PROJECT_SRC" -I"$OUTPUT_DIR" "$@" >"$OUTPUT_DIR/qstr.i.last"
......
...@@ -79,7 +79,7 @@ upy = static_library( ...@@ -79,7 +79,7 @@ upy = static_library(
micropython_additional_sources, micropython_additional_sources,
micropython_extmod_sources, micropython_extmod_sources,
mp_headers, mp_headers,
include_directories: micropython_includes, include_directories: [micropython_includes, include_directories('../epicardium')],
c_args: '-w', c_args: '-w',
) )
......
// TODO: we need this define, but the header is not found...
//#include "epicardium/epicardium.h"
#define EPIC_INT_NUM 9
/* Hardware Name */ /* Hardware Name */
#define MICROPY_HW_BOARD_NAME "card10" #define MICROPY_HW_BOARD_NAME "card10"
#define MICROPY_HW_MCU_NAME "max32666" #define MICROPY_HW_MCU_NAME "max32666"
...@@ -97,6 +93,12 @@ typedef long mp_off_t; ...@@ -97,6 +93,12 @@ typedef long mp_off_t;
/* TODO: Document this */ /* TODO: Document this */
#define MP_STATE_PORT MP_STATE_VM #define MP_STATE_PORT MP_STATE_VM
#ifndef NO_QSTR
#include "epicardium.h"
#else
#define EPIC_INT_NUM 1
#endif
/* For some reason, we need to define readline history manually */ /* For some reason, we need to define readline history manually */
#define MICROPY_PORT_ROOT_POINTERS \ #define MICROPY_PORT_ROOT_POINTERS \
const char *readline_hist[16]; \ const char *readline_hist[16]; \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment