File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 2
2
#define MICROPY_HW_LED1 PIN_PA17 // red
3
3
#define UART_REPL
4
4
// #define USB_REPL
5
+
6
+ #define MICROPY_HW_BOARD_NAME "Arduino Zero"
7
+ #define MICROPY_HW_MCU_NAME "samd21g18"
Original file line number Diff line number Diff line change 2
2
#define MICROPY_HW_LED1 PIN_PA17 // red
3
3
// #define UART_REPL
4
4
#define USB_REPL
5
+
6
+ #define MICROPY_HW_BOARD_NAME "Adafruit Feather M0 BLE"
7
+ #define MICROPY_HW_MCU_NAME "samd21g18"
Original file line number Diff line number Diff line change 1
1
#include <stdint.h>
2
2
3
+ #ifndef __INCLUDED_MPCONFIGPORT_H
4
+ #define __INCLUDED_MPCONFIGPORT_H
5
+
3
6
// options to control how Micro Python is built
4
7
5
8
#define MICROPY_QSTR_BYTES_IN_HASH (1)
@@ -74,12 +77,13 @@ extern const struct _mp_obj_fun_builtin_t mp_builtin_open_obj;
74
77
#define MICROPY_PORT_BUILTINS \
75
78
{ MP_OBJ_NEW_QSTR(MP_QSTR_open), (mp_obj_t)&mp_builtin_open_obj },
76
79
80
+
81
+ // board specific definitions
82
+ #include "mpconfigboard.h"
83
+
77
84
// We need to provide a declaration/definition of alloca()
78
85
#include <alloca.h>
79
86
80
- #define MICROPY_HW_BOARD_NAME "atmel-samd"
81
- #define MICROPY_HW_MCU_NAME "samd21"
82
-
83
87
#ifdef __linux__
84
88
#define MICROPY_MIN_USE_STDOUT (1)
85
89
#endif
@@ -94,3 +98,5 @@ extern const struct _mp_obj_fun_builtin_t mp_builtin_open_obj;
94
98
#define MICROPY_PORT_ROOT_POINTERS \
95
99
const char *readline_hist[8]; \
96
100
vstr_t *repl_line;
101
+
102
+ #endif // __INCLUDED_MPCONFIGPORT_H
You can’t perform that action at this time.
0 commit comments