aboutsummaryrefslogtreecommitdiff
path: root/thirdparty/nRF5_SDK_15.0.0_a53641a/external/lwip/src/port/nrf_platform_port.h
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/nRF5_SDK_15.0.0_a53641a/external/lwip/src/port/nrf_platform_port.h')
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/external/lwip/src/port/nrf_platform_port.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/external/lwip/src/port/nrf_platform_port.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/external/lwip/src/port/nrf_platform_port.h
new file mode 100644
index 0000000..dfd1a82
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/external/lwip/src/port/nrf_platform_port.h
@@ -0,0 +1,47 @@
+/* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
+ *
+ * The information contained herein is property of Nordic Semiconductor ASA.
+ * Terms and conditions of usage are described in detail in NORDIC
+ * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
+ *
+ * Licensees are granted free, non-transferable use of the information. NO
+ * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
+ * the file.
+ *
+ */
+
+/** @file nrf_driver.h
+ *
+ * @brief Implements lwip stack driver on nRF.
+ *
+ * @details Implements lwip stack driver on nRF.
+ */
+
+#ifndef NRF_PLATFORM_PORT_H__
+#define NRF_PLATFORM_PORT_H__
+
+#include "iot_common.h"
+
+/**@brief Prescaler value for timer module to get a tick of about 1 ms.
+ *
+ * @note Applications using lwIP and this driver, must use this value of prescaler when
+ * initializing the timer module.
+ */
+#define NRF_DRIVER_TIMER_PRESCALER 31
+
+/**@brief Initializes the driver for LwIP stack. */
+uint32_t nrf_driver_init(void);
+
+/**@brief API assumed to be implemented by the application to handle interface up event.
+ *
+ * @param[in] p_interface Identifies the interface.
+ */
+extern void nrf_driver_interface_up(iot_interface_t const * p_interface);
+
+/**@brief API assumed to be implemented by the application to handle interface down event.
+ *
+ * @param[in] p_interface Identifies the interface.
+ */
+extern void nrf_driver_interface_down(iot_interface_t const * p_interface);
+
+#endif //NRF_PLATFORM_PORT_H__