summaryrefslogtreecommitdiff
path: root/shared-bindings/network
diff options
context:
space:
mode:
authorBenjamin Shockley <benjaminshockley@hotmail.com>2020-08-20 13:48:15 -0500
committerGitHub <noreply@github.com>2020-08-20 13:48:15 -0500
commit0084f0af24e4e219bc040c52ee723959423de6e2 (patch)
tree1aebdb362f08bf6417caa87836e3e4e739afc964 /shared-bindings/network
parent9aebe2f1efc99871fcf283c304e3a8700050d736 (diff)
parent4d7b9cde33934a44c4c905a49d2f831339fc8bd2 (diff)
Merge pull request #2 from adafruit/master
Master
Diffstat (limited to 'shared-bindings/network')
-rw-r--r--shared-bindings/network/__init__.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/shared-bindings/network/__init__.c b/shared-bindings/network/__init__.c
index 69f8bea60..6af86688e 100644
--- a/shared-bindings/network/__init__.c
+++ b/shared-bindings/network/__init__.c
@@ -36,22 +36,17 @@
#include "shared-bindings/network/__init__.h"
-#if MICROPY_PY_NETWORK
+#if CIRCUITPY_NETWORK
-//| :mod:`network` --- Network Interface Management
-//| ===============================================
-//|
-//| .. module:: network
-//| :synopsis: Network Interface Management
-//| :platform: SAMD
+//| """Network Interface Management
//|
//| This module provides a registry of configured NICs.
//| It is used by the 'socket' module to look up a suitable
-//| NIC when a socket is created.
-//|
-//| .. function:: route
+//| NIC when a socket is created."""
//|
-//| Returns a list of all configured NICs.
+//| def route() -> Any:
+//| """Returns a list of all configured NICs."""
+//| ...
//|
STATIC mp_obj_t network_route(void) {
@@ -71,4 +66,4 @@ const mp_obj_module_t network_module = {
.globals = (mp_obj_dict_t*)&mp_module_network_globals,
};
-#endif // MICROPY_PY_NETWORK
+#endif // CIRCUITPY_NETWORK