diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2018-08-23 17:08:59 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2018-08-23 17:12:21 +0200 |
commit | 3061ecca3d0fdfb87dabbf5f63c9e06c2a30f53a (patch) | |
tree | ab49cc16ed0b853452c5c2ed2d3042416d628986 /thirdparty/nRF5_SDK_15.0.0_a53641a/external/lwip/src/port/nrf_platform_port.h | |
download | iot-sensors-3061ecca3d0fdfb87dabbf5f63c9e06c2a30f53a.tar.gz iot-sensors-3061ecca3d0fdfb87dabbf5f63c9e06c2a30f53a.tar.bz2 iot-sensors-3061ecca3d0fdfb87dabbf5f63c9e06c2a30f53a.tar.xz iot-sensors-3061ecca3d0fdfb87dabbf5f63c9e06c2a30f53a.zip |
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.h | 47 |
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__ |