windows/msvc: Include machine_pinbase.c in build and enable umachine module

Fixes linker errors since [ad229477] and adds the umachine module so tests pass.
This commit is contained in:
stijn 2016-06-23 09:55:28 +02:00 committed by Damien George
parent 0fb7a7a7ce
commit 4b9046328d
2 changed files with 2 additions and 0 deletions

View File

@ -158,6 +158,7 @@ extern const struct _mp_obj_module_t mp_module_os;
extern const struct _mp_obj_module_t mp_module_time;
#define MICROPY_PORT_BUILTIN_MODULES \
{ MP_OBJ_NEW_QSTR(MP_QSTR_utime), (mp_obj_t)&mp_module_time }, \
{ MP_OBJ_NEW_QSTR(MP_QSTR_umachine), (mp_obj_t)&mp_module_machine }, \
{ MP_OBJ_NEW_QSTR(MP_QSTR_uos), (mp_obj_t)&mp_module_os }, \
#if MICROPY_USE_READLINE == 1

View File

@ -14,6 +14,7 @@
<ClCompile Include="$(PyBaseDir)unix\modtime.c"/>
<ClCompile Include="$(PyBaseDir)unix\modmachine.c" />
<ClCompile Include="$(PyBaseDir)extmod\machine_mem.c" />
<ClCompile Include="$(PyBaseDir)extmod\machine_pinbase.c" />
<ClCompile Include="$(PyBaseDir)extmod\modubinascii.c" />
<ClCompile Include="$(PyBaseDir)extmod\moductypes.c" />
<ClCompile Include="$(PyBaseDir)extmod\moduhashlib.c" />