diff options
author | Dave Hylands <dhylands@gmail.com> | 2014-03-14 00:51:26 -0700 |
---|---|---|
committer | Dave Hylands <dhylands@gmail.com> | 2014-03-14 09:48:49 -0700 |
commit | 0a64c92a9c3bd7d648c8a0d087fa7e739a5eeaa3 (patch) | |
tree | 0d36bb17c7bbb00c14a61a072d667162d7c9ff8f /stmhal/pybmodule.c | |
parent | 33bdd2119d9ca28404acc2b0891d5a74997a0d05 (diff) |
stmhal - add led support. Add netduino_plus_2 support
Tweaked a couple of the USB files to compile if neither dev nor host was defined.
Tested on netduiono plus 2 and stm32f4discovery boards
Diffstat (limited to 'stmhal/pybmodule.c')
-rw-r--r-- | stmhal/pybmodule.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/stmhal/pybmodule.c b/stmhal/pybmodule.c index b03951439..2abcb2370 100644 --- a/stmhal/pybmodule.c +++ b/stmhal/pybmodule.c @@ -15,6 +15,7 @@ #include "gccollect.h" #include "systick.h" #include "pyexec.h" +#include "led.h" #if 0 #include "rtc.h" #include "servo.h" @@ -23,7 +24,6 @@ #include "usrsw.h" #include "sdcard.h" #include "accel.h" -#include "led.h" #include "i2c.h" #include "usart.h" #include "adc.h" @@ -268,8 +268,9 @@ STATIC const mp_map_elem_t pyb_module_globals_table[] = { #endif { MP_OBJ_NEW_QSTR(MP_QSTR_hid), (mp_obj_t)&pyb_hid_send_report_obj }, - +#endif { MP_OBJ_NEW_QSTR(MP_QSTR_Led), (mp_obj_t)&pyb_Led_obj }, +#if 0 { MP_OBJ_NEW_QSTR(MP_QSTR_I2C), (mp_obj_t)&pyb_I2C_obj }, { MP_OBJ_NEW_QSTR(MP_QSTR_Usart), (mp_obj_t)&pyb_Usart_obj }, { MP_OBJ_NEW_QSTR(MP_QSTR_ADC_all), (mp_obj_t)&pyb_ADC_all_obj }, |