From 3061ecca3d0fdfb87dabbf5f63c9e06c2a30f53a Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Thu, 23 Aug 2018 17:08:59 +0200 Subject: o Initial import. --- .../external/lwip/src/port/nrf_platform_port.h | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 thirdparty/nRF5_SDK_15.0.0_a53641a/external/lwip/src/port/nrf_platform_port.h (limited to 'thirdparty/nRF5_SDK_15.0.0_a53641a/external/lwip/src/port/nrf_platform_port.h') 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__ -- cgit v1.2.3