summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/moduselect.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-12-07 17:03:47 +0000
committerDamien George <damien.p.george@gmail.com>2014-12-07 17:03:47 +0000
commitd0caaadaeea48e8f76dca3125a2dea3465a58416 (patch)
tree487534121492922cdaa320708bc1929168c50585 /stmhal/moduselect.c
parent1f8a2f662369c0f51cfa8720d9a11cd187948bf6 (diff)
downloadmicropython-d0caaadaeea48e8f76dca3125a2dea3465a58416.tar.gz
micropython-d0caaadaeea48e8f76dca3125a2dea3465a58416.zip
stmhal: Allow network, uselect, usocket mods to be used by other ports.
Remove include of stm32f4xx_hal.h, replace by include of MICROPY_HAL_H where needed, and make it compile without float support. This makes these 3 modules much more generic and usable by other ports.
Diffstat (limited to 'stmhal/moduselect.c')
-rw-r--r--stmhal/moduselect.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/stmhal/moduselect.c b/stmhal/moduselect.c
index 0d5d6dd4ad..b354e486e7 100644
--- a/stmhal/moduselect.c
+++ b/stmhal/moduselect.c
@@ -28,8 +28,6 @@
#include <stdio.h>
#include <errno.h>
-#include "stm32f4xx_hal.h"
-
#include "mpconfig.h"
#include "misc.h"
#include "nlr.h"
@@ -37,6 +35,7 @@
#include "obj.h"
#include "objlist.h"
#include "pybioctl.h"
+#include MICROPY_HAL_H
/// \module select - Provides select function to wait for events on a stream
///