summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/cc3000/src/ccspi.c2
-rw-r--r--drivers/dht/dht.h2
-rw-r--r--drivers/nrf24l01/nrf24l01.py1
-rw-r--r--drivers/sdcard/sdcard.py1
4 files changed, 4 insertions, 2 deletions
diff --git a/drivers/cc3000/src/ccspi.c b/drivers/cc3000/src/ccspi.c
index 1606bfd57..64900efe4 100644
--- a/drivers/cc3000/src/ccspi.c
+++ b/drivers/cc3000/src/ccspi.c
@@ -99,7 +99,7 @@ STATIC tSpiInformation sSpiInformation;
STATIC char spi_buffer[CC3000_RX_BUFFER_SIZE];
unsigned char wlan_tx_buffer[CC3000_TX_BUFFER_SIZE];
-STATIC const mp_obj_fun_builtin_t irq_callback_obj;
+STATIC const mp_obj_fun_builtin_fixed_t irq_callback_obj;
// set the pins to use to communicate with the CC3000
// the arguments must be of type pin_obj_t* and SPI_HandleTypeDef*
diff --git a/drivers/dht/dht.h b/drivers/dht/dht.h
index 8274228ac..20954036d 100644
--- a/drivers/dht/dht.h
+++ b/drivers/dht/dht.h
@@ -1,3 +1,3 @@
#include "py/obj.h"
-MP_DECLARE_CONST_FUN_OBJ(dht_readinto_obj);
+MP_DECLARE_CONST_FUN_OBJ_2(dht_readinto_obj);
diff --git a/drivers/nrf24l01/nrf24l01.py b/drivers/nrf24l01/nrf24l01.py
index a244b0b25..3c79650bf 100644
--- a/drivers/nrf24l01/nrf24l01.py
+++ b/drivers/nrf24l01/nrf24l01.py
@@ -1,6 +1,7 @@
"""NRF24L01 driver for Micro Python
"""
+from micropython import const
import pyb
# nRF24L01+ registers
diff --git a/drivers/sdcard/sdcard.py b/drivers/sdcard/sdcard.py
index fc7a8af7c..191630aeb 100644
--- a/drivers/sdcard/sdcard.py
+++ b/drivers/sdcard/sdcard.py
@@ -21,6 +21,7 @@ Example usage on ESP8266:
"""
+from micropython import const
import time