aboutsummaryrefslogtreecommitdiff
path: root/stmhal/modpyb.c
diff options
context:
space:
mode:
authorDamien George2014-10-02 14:34:15 +0100
committerDamien George2014-10-02 17:32:02 +0100
commit3550de4ebeb449e221f2dc900d1937510d67cc95 (patch)
treedb6a31c4cdf5cbade4a29ce4918e967d72686932 /stmhal/modpyb.c
parent5fc6aa810063d586ed779f42f2329f625247234f (diff)
stmhal: Add basic CAN bus support.
Diffstat (limited to 'stmhal/modpyb.c')
-rw-r--r--stmhal/modpyb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/stmhal/modpyb.c b/stmhal/modpyb.c
index 7f39098ca..ae2a1d7c4 100644
--- a/stmhal/modpyb.c
+++ b/stmhal/modpyb.c
@@ -49,6 +49,7 @@
#include "i2c.h"
#include "spi.h"
#include "uart.h"
+#include "can.h"
#include "adc.h"
#include "storage.h"
#include "sdcard.h"
@@ -436,6 +437,7 @@ STATIC const mp_map_elem_t pyb_module_globals_table[] = {
{ MP_OBJ_NEW_QSTR(MP_QSTR_I2C), (mp_obj_t)&pyb_i2c_type },
{ MP_OBJ_NEW_QSTR(MP_QSTR_SPI), (mp_obj_t)&pyb_spi_type },
{ MP_OBJ_NEW_QSTR(MP_QSTR_UART), (mp_obj_t)&pyb_uart_type },
+ { MP_OBJ_NEW_QSTR(MP_QSTR_CAN), (mp_obj_t)&pyb_can_type },
{ MP_OBJ_NEW_QSTR(MP_QSTR_ADC), (mp_obj_t)&pyb_adc_type },
{ MP_OBJ_NEW_QSTR(MP_QSTR_ADCAll), (mp_obj_t)&pyb_adc_all_type },