summaryrefslogtreecommitdiffstatshomepage
path: root/drivers
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2023-10-26 11:39:40 +1100
committerDamien George <damien@micropython.org>2023-10-26 16:20:53 +1100
commit90023b4dcf7bfeb6eccd5d0d13efc4832cf187e7 (patch)
tree97cab73dc63d239084f2ee8a05d8d712da9cf60c /drivers
parent5b4a2baff6b42b2b428cd58a95407a66387e4305 (diff)
downloadmicropython-90023b4dcf7bfeb6eccd5d0d13efc4832cf187e7.tar.gz
micropython-90023b4dcf7bfeb6eccd5d0d13efc4832cf187e7.zip
extmod/modmachine: Clean up decls of machine types to use common ones.
The machine_i2c_type, machine_spi_type and machine_timer_type symbols are already declared in extmod/modmachine.h and should not be declared anywhere else. Also move declarations of machine_pin_type and machine_rtc_type to the common header in extmod. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/esp-hosted/esp_hosted_hal.c3
-rw-r--r--drivers/ninaw10/nina_wifi_bsp.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/drivers/esp-hosted/esp_hosted_hal.c b/drivers/esp-hosted/esp_hosted_hal.c
index 4c3ecad130..e33b2cce47 100644
--- a/drivers/esp-hosted/esp_hosted_hal.c
+++ b/drivers/esp-hosted/esp_hosted_hal.c
@@ -34,9 +34,8 @@
#include <string.h>
#include "py/runtime.h"
-#include "modmachine.h"
#include "extmod/machine_spi.h"
-#include "mpconfigboard.h"
+#include "extmod/modmachine.h"
#ifdef MICROPY_HW_WIFI_LED
#include "led.h"
#endif
diff --git a/drivers/ninaw10/nina_wifi_bsp.c b/drivers/ninaw10/nina_wifi_bsp.c
index c65fb111fb..42770a33cc 100644
--- a/drivers/ninaw10/nina_wifi_bsp.c
+++ b/drivers/ninaw10/nina_wifi_bsp.c
@@ -35,9 +35,8 @@
#include <string.h>
#include "py/runtime.h"
-#include "modmachine.h"
#include "extmod/machine_spi.h"
-#include "mpconfigboard.h"
+#include "extmod/modmachine.h"
#include "nina_bsp.h"
#include "nina_wifi_drv.h"