@ -34,13 +34,9 @@
#include <string.h>
#include "stm32f4xx_hal.h"
#include "mpconfig.h"
#include "nlr.h"
#include "misc.h"
#include "qstr.h"
#include "obj.h"
#include "runtime.h"
#include "py/nlr.h"
#include "py/obj.h"
#include "py/runtime.h"
#include "pin.h"
#include "led.h"
#include "extint.h"
@ -33,7 +33,6 @@ CROSS_COMPILE = arm-none-eabi-
INC = -I.
INC += -I..
INC += -I$(PY_SRC)
INC += -I$(BUILD)
INC += -I$(CMSIS_DIR)/inc
INC += -I$(CMSIS_DIR)/devinc
@ -29,12 +29,8 @@
#include "i2c.h"
#include "accel.h"
@ -28,13 +28,9 @@
#include <stm32f4xx_hal.h>
#include "binary.h"
#include "py/binary.h"
#include "adc.h"
#include "genhdr/pins.h"
@ -1,15 +1,10 @@
// stm32f4xx_prefix.c becomes the initial portion of the generated pins file.
#include <stdio.h>
#include <stdint.h>
#include MICROPY_HAL_H
#define AF(af_idx, af_fn, af_unit, af_type, af_ptr) \
{ \
@ -24,10 +24,7 @@
* THE SOFTWARE.
*/
#include "bufhelper.h"
void pyb_buf_get_for_send(mp_obj_t o, mp_buffer_info_t *bufinfo, byte *tmp_data) {
@ -29,13 +29,9 @@
#include <stdarg.h>
#include <errno.h>
#include "objtuple.h"
#include "py/objtuple.h"
#include "can.h"
#include "pybioctl.h"
@ -30,13 +30,8 @@
#include "parse.h"
#include "timer.h"
#include "dac.h"
@ -32,11 +32,7 @@
#include "systick.h"
#include "rtc.h"
#include "storage.h"
@ -30,15 +30,10 @@
#include "gc.h"
#include "pfenv.h"
#include "py/gc.h"
#include "py/pfenv.h"
@ -26,10 +26,7 @@
#include "ff.h"
#include "ffconf.h"
#include "fsusermount.h"
@ -27,13 +27,9 @@
#include "stream.h"
#include "py/stream.h"
#include "file.h"
@ -24,12 +24,8 @@
@ -27,11 +27,8 @@
#include "gccollect.h"
@ -26,11 +26,8 @@
STATIC const char *help_text =
"Welcome to Micro Python!\n"
@ -27,12 +27,8 @@
@ -25,12 +25,8 @@
#include "lexer.h"
#include "py/lexer.h"
mp_import_stat_t mp_import_stat(const char *path) {
@ -24,13 +24,8 @@
#include "readline.h"
#include "usb.h"
@ -24,11 +24,8 @@
#include "irq.h"
@ -28,17 +28,11 @@
#if MICROPY_HW_HAS_LCD
@ -24,13 +24,9 @@
#include "lexerfatfs.h"
@ -27,21 +27,16 @@
#include "py/parse.h"
#include "py/stackctrl.h"
#include "pendsv.h"
#include "stackctrl.h"
#include "pyexec.h"
#include "objlist.h"
#include "py/objlist.h"
#include "modnetwork.h"
/// \module network - network configuration
@ -35,16 +35,11 @@
// CC3000 defines its own ENOBUFS (different to standard one!)
#undef ENOBUFS
@ -29,15 +29,9 @@
@ -29,12 +29,9 @@
@ -29,11 +29,8 @@
#include "portmodules.h"
// To use compile-time constants we are restricted to 31-bit numbers (a small int,
@ -27,12 +27,9 @@
#include "rng.h"
@ -24,16 +24,12 @@
@ -25,18 +25,13 @@
/******************************************************************************/
@ -28,11 +28,8 @@
@ -1,10 +1,7 @@
#include "mphal.h"
@ -27,11 +27,7 @@
#include <stdlib.h>
static void *pendsv_object = NULL;
@ -28,14 +28,10 @@
/// \moduleref pyb
/// \class Pin - control I/O pins
@ -1,11 +1,6 @@
// Returns the pin mode. This value returned by this macro should be one of:
// GPIO_MODE_INPUT, GPIO_MODE_OUTPUT_PP, GPIO_MODE_OUTPUT_OD,
@ -25,16 +25,11 @@
STATIC void pin_named_pins_obj_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t self_in, mp_print_kind_t kind) {
pin_named_pins_obj_t *self = self_in;
@ -28,15 +28,12 @@
#include "pybstdio.h"
#if MICROPY_PY_BUILTINS_FLOAT
#include "formatfloat.h"
#include "py/formatfloat.h"
#endif
int pfenv_vprintf(const pfenv_t *pfenv, const char *fmt, va_list args);
@ -29,16 +29,12 @@
#include "uart.h"
// TODO make stdin, stdout and stderr writable objects so they can
// be changed by Python code. This requires some changes, as these
@ -28,14 +28,13 @@
#include "parsehelper.h"
#include "compile.h"
#include "repl.h"
#include "py/parsehelper.h"
#include "py/compile.h"
#include "py/repl.h"
#ifdef MICROPY_HAL_H
@ -44,7 +43,6 @@
#include "genhdr/py-version.h"
pyexec_mode_kind_t pyexec_mode_kind = PYEXEC_MODE_FRIENDLY_REPL;
STATIC bool repl_display_debugging_info = 0;
@ -28,8 +28,8 @@
#include "py/mpconfig.h"
#include "py/misc.h"
@ -28,10 +28,7 @@
#if MICROPY_HW_ENABLE_RNG
@ -28,11 +28,7 @@
@ -28,12 +28,8 @@
#include "sdcard.h"
#include "servo.h"
@ -70,10 +70,7 @@
#include "stm32f4xx_it.h"
#include "flash.h"
@ -25,11 +25,8 @@
@ -32,17 +32,13 @@
#include "usbd_cdc_msc_hid.h"
#include "usbd_cdc_interface.h"
/// \class Timer - periodically call a function
@ -34,12 +34,8 @@
#include "usbd_msc_storage.h"
@ -39,7 +39,7 @@
/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
@ -34,7 +34,7 @@
#include "diskio.h"