Skip to content
Snippets Groups Projects
Select Git revision
  • 43ea73faa6f94c816ded5d2d3369f0b49c5834e0
  • wip-bootstrap default
  • dualcore
  • ch3/leds
  • ch3/time
  • master
6 results

mpconfigport.h

Blame
    • Damien George's avatar
      43ea73fa
      pic16bit: Initial version of port to 16-bit PIC family. · 43ea73fa
      Damien George authored
      Reference MCU is dsPIC33J256GP506 with 256k ROM and 8k RAM, on the dsPIC
      DSC Starter Kit board.  The REPL works, GC works, pyb module has LED and
      Switch objects.  It passes some tests from the test suite (most it can't
      run because it doesn't have the Python features enabled).
      43ea73fa
      History
      pic16bit: Initial version of port to 16-bit PIC family.
      Damien George authored
      Reference MCU is dsPIC33J256GP506 with 256k ROM and 8k RAM, on the dsPIC
      DSC Starter Kit board.  The REPL works, GC works, pyb module has LED and
      Switch objects.  It passes some tests from the test suite (most it can't
      run because it doesn't have the Python features enabled).
    mpconfigport.h 4.30 KiB
    /*
     * This file is part of the Micro Python project, http://micropython.org/
     *
     * The MIT License (MIT)
     *
     * Copyright (c) 2015 Damien P. George
     *
     * Permission is hereby granted, free of charge, to any person obtaining a copy
     * of this software and associated documentation files (the "Software"), to deal
     * in the Software without restriction, including without limitation the rights
     * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
     * copies of the Software, and to permit persons to whom the Software is
     * furnished to do so, subject to the following conditions:
     *
     * The above copyright notice and this permission notice shall be included in
     * all copies or substantial portions of the Software.
     *
     * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
     * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
     * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
     * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
     * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
     * THE SOFTWARE.
     */
    
    #include <stdint.h>
    
    // options to control how MicroPython is built
    #define MICROPY_OBJ_REPR            (MICROPY_OBJ_REPR_B)
    #define MICROPY_ALLOC_PATH_MAX      (64)
    #define MICROPY_EMIT_X64            (0)
    #define MICROPY_EMIT_THUMB          (0)
    #define MICROPY_EMIT_INLINE_THUMB   (0)
    #define MICROPY_COMP_MODULE_CONST   (0)
    #define MICROPY_COMP_CONST          (0)
    #define MICROPY_MEM_STATS           (0)
    #define MICROPY_DEBUG_PRINTERS      (0)
    #define MICROPY_ENABLE_GC           (1)
    #define MICROPY_REPL_EVENT_DRIVEN   (0)
    #define MICROPY_HELPER_REPL         (1)
    #define MICROPY_HELPER_LEXER_UNIX   (0)
    #define MICROPY_ENABLE_SOURCE_LINE  (0)
    #define MICROPY_ENABLE_DOC_STRING   (0)
    #define MICROPY_ERROR_REPORTING     (MICROPY_ERROR_REPORTING_TERSE)
    #define MICROPY_PY_BUILTINS_BYTEARRAY (0)
    #define MICROPY_PY_BUILTINS_MEMORYVIEW (0)
    #define MICROPY_PY_BUILTINS_FROZENSET (0)
    #define MICROPY_PY_BUILTINS_SET     (0)
    #define MICROPY_PY_BUILTINS_SLICE   (0)
    #define MICROPY_PY_BUILTINS_PROPERTY (0)
    #define MICROPY_PY_MICROPYTHON_MEM_INFO (1)
    #define MICROPY_PY___FILE__         (0)
    #define MICROPY_PY_GC               (1)
    #define MICROPY_PY_ARRAY            (0)
    #define MICROPY_PY_COLLECTIONS      (0)
    #define MICROPY_PY_MATH             (0)
    #define MICROPY_PY_CMATH            (0)
    #define MICROPY_PY_IO               (0)
    #define MICROPY_PY_STRUCT           (0)
    #define MICROPY_PY_SYS              (0)
    #define MICROPY_MODULE_FROZEN       (0)
    #define MICROPY_CPYTHON_COMPAT      (0)
    #define MICROPY_LONGINT_IMPL        (MICROPY_LONGINT_IMPL_MPZ)
    #define MICROPY_FLOAT_IMPL          (MICROPY_FLOAT_IMPL_NONE)
    
    // type definitions for the specific machine
    
    #define MP_ENDIANNESS_LITTLE        (1)
    #define BYTES_PER_WORD              (2)