프로젝트 정리: 미사용 드라이버 삭제
This commit is contained in:
@@ -1,137 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) 2015 - 2021, Nordic Semiconductor ASA
|
||||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this
|
||||
* list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form, except as embedded into a Nordic
|
||||
* Semiconductor ASA integrated circuit in a product or a software update for
|
||||
* such product, must reproduce the above copyright notice, this list of
|
||||
* conditions and the following disclaimer in the documentation and/or other
|
||||
* materials provided with the distribution.
|
||||
*
|
||||
* 3. Neither the name of Nordic Semiconductor ASA nor the names of its
|
||||
* contributors may be used to endorse or promote products derived from this
|
||||
* software without specific prior written permission.
|
||||
*
|
||||
* 4. This software, with or without modification, must only be used with a
|
||||
* Nordic Semiconductor ASA integrated circuit.
|
||||
*
|
||||
* 5. Any software provided in binary form under this license must not be reverse
|
||||
* engineered, decompiled, modified and/or disassembled.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
|
||||
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||
* OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
* DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
||||
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||||
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef NRF_DRV_COMP_H__
|
||||
#define NRF_DRV_COMP_H__
|
||||
|
||||
#include <nrfx_comp.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @defgroup nrf_drv_comp COMP driver - legacy layer
|
||||
* @{
|
||||
* @ingroup nrf_comp
|
||||
*
|
||||
* @brief @tagAPI52 Layer providing compatibility with the former API.
|
||||
*/
|
||||
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
typedef nrfx_comp_config_t nrf_drv_comp_config_t;
|
||||
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define VOLTAGE_THRESHOLD_TO_INT NRFX_VOLTAGE_THRESHOLD_TO_INT
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define COMP_CONFIG_TH NRFX_COMP_CONFIG_TH
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define NRF_DRV_COMP_DEFAULT_CONFIG NRFX_COMP_DEFAULT_CONFIG
|
||||
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define comp_events_handler_t nrfx_comp_event_handler_t
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define NRF_DRV_COMP_SHORT_STOP_AFTER_CROSS_EVT NRFX_COMP_SHORT_STOP_AFTER_CROSS_EVT
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define NRF_DRV_COMP_SHORT_STOP_AFTER_UP_EVT NRFX_COMP_SHORT_STOP_AFTER_UP_EVT
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define NRF_DRV_COMP_SHORT_STOP_AFTER_DOWN_EVT NRFX_COMP_SHORT_STOP_AFTER_DOWN_EVT
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_comp_short_mask_t nrfx_comp_short_mask_t
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define NRF_DRV_COMP_EVT_EN_CROSS_MASK NRFX_COMP_EVT_EN_CROSS_MASK
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define NRF_DRV_COMP_EVT_EN_UP_MASK NRFX_COMP_EVT_EN_UP_MASK
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define NRF_DRV_COMP_EVT_EN_DOWN_MASK NRFX_COMP_EVT_EN_DOWN_MASK
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define NRF_DRV_COMP_EVT_EN_READY_MASK NRFX_COMP_EVT_EN_READY_MASK
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_comp_evt_en_mask_t nrfx_comp_evt_en_mask_t
|
||||
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_comp_uninit nrfx_comp_uninit
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_comp_pin_select nrfx_comp_pin_select
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_comp_start nrfx_comp_start
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_comp_stop nrfx_comp_stop
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_comp_sample nrfx_comp_sample
|
||||
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_comp_task_address_get nrfx_comp_task_address_get
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_comp_event_address_get nrfx_comp_event_address_get
|
||||
|
||||
/**
|
||||
* @brief Function for initializing the COMP driver.
|
||||
*
|
||||
* This function initializes the COMP driver, but does not enable the peripheral or any interrupts.
|
||||
* To start the driver, call the function @ref nrf_drv_comp_start() after initialization.
|
||||
*
|
||||
* If no configuration structure is provided, the driver is initialized with the default settings.
|
||||
*
|
||||
* @param[in] p_config Pointer to the structure with initial configuration.
|
||||
* @param[in] event_handler Handler function.
|
||||
*
|
||||
* @retval NRF_ERROR_INVALID_PARAM If the configuration is invalid.
|
||||
* @retval NRF_ERROR_INVALID_STATE If the driver has already been initialized.
|
||||
* @retval NRF_ERROR_BUSY If the LPCOMP driver is initialized.
|
||||
*/
|
||||
__STATIC_INLINE ret_code_t nrf_drv_comp_init(nrf_drv_comp_config_t const * p_config,
|
||||
comp_events_handler_t event_handler)
|
||||
{
|
||||
if (p_config == NULL)
|
||||
{
|
||||
static nrfx_comp_config_t const default_config = NRFX_COMP_DEFAULT_CONFIG(NRF_COMP_INPUT_0);
|
||||
p_config = &default_config;
|
||||
}
|
||||
return nrfx_comp_init(p_config, event_handler);
|
||||
}
|
||||
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // NRF_DRV_COMP_H__
|
||||
@@ -1,112 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) 2015 - 2021, Nordic Semiconductor ASA
|
||||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this
|
||||
* list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form, except as embedded into a Nordic
|
||||
* Semiconductor ASA integrated circuit in a product or a software update for
|
||||
* such product, must reproduce the above copyright notice, this list of
|
||||
* conditions and the following disclaimer in the documentation and/or other
|
||||
* materials provided with the distribution.
|
||||
*
|
||||
* 3. Neither the name of Nordic Semiconductor ASA nor the names of its
|
||||
* contributors may be used to endorse or promote products derived from this
|
||||
* software without specific prior written permission.
|
||||
*
|
||||
* 4. This software, with or without modification, must only be used with a
|
||||
* Nordic Semiconductor ASA integrated circuit.
|
||||
*
|
||||
* 5. Any software provided in binary form under this license must not be reverse
|
||||
* engineered, decompiled, modified and/or disassembled.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
|
||||
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||
* OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
* DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
||||
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||||
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef NRF_DRV_I2S_H__
|
||||
#define NRF_DRV_I2S_H__
|
||||
|
||||
#include <nrfx_i2s.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @defgroup nrf_drv_i2s I2S driver - legacy layer
|
||||
* @{
|
||||
* @ingroup nrf_i2s
|
||||
*
|
||||
* @brief @tagAPI52 Layer providing compatibility with the former API.
|
||||
*/
|
||||
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
typedef nrfx_i2s_config_t nrf_drv_i2s_config_t;
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
typedef nrfx_i2s_buffers_t nrf_drv_i2s_buffers_t;
|
||||
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define NRF_DRV_I2S_PIN_NOT_USED NRFX_I2S_PIN_NOT_USED
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define NRF_DRV_I2S_FLAG_SYNCHRONIZED_MODE NRFX_I2S_FLAG_SYNCHRONIZED_MODE
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define NRF_DRV_I2S_DEFAULT_CONFIG NRFX_I2S_DEFAULT_CONFIG
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define NRF_DRV_I2S_STATUS_NEXT_BUFFERS_NEEDED NRFX_I2S_STATUS_NEXT_BUFFERS_NEEDED
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_i2s_data_handler_t nrfx_i2s_data_handler_t
|
||||
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_i2s_uninit nrfx_i2s_uninit
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_i2s_start nrfx_i2s_start
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_i2s_next_buffers_set nrfx_i2s_next_buffers_set
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_i2s_stop nrfx_i2s_stop
|
||||
|
||||
/**
|
||||
* @brief Function for initializing the I2S driver.
|
||||
*
|
||||
* @param[in] p_config Pointer to the structure with initial configuration.
|
||||
* If NULL, the default configuration is used.
|
||||
* @param[in] handler Data handler provided by the user. Must not be NULL.
|
||||
*
|
||||
* @retval NRF_SUCCESS If initialization was successful.
|
||||
* @retval NRF_ERROR_INVALID_STATE If the driver was already initialized.
|
||||
* @retval NRF_ERROR_INVALID_PARAM If the requested combination of configuration
|
||||
* options is not allowed by the I2S peripheral.
|
||||
*/
|
||||
__STATIC_INLINE ret_code_t nrf_drv_i2s_init(nrf_drv_i2s_config_t const * p_config,
|
||||
nrf_drv_i2s_data_handler_t handler)
|
||||
{
|
||||
if (p_config == NULL)
|
||||
{
|
||||
static nrfx_i2s_config_t const default_config = NRFX_I2S_DEFAULT_CONFIG;
|
||||
p_config = &default_config;
|
||||
}
|
||||
return nrfx_i2s_init(p_config, handler);
|
||||
}
|
||||
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // NRF_DRV_I2S_H__
|
||||
@@ -1,82 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) 2014 - 2021, Nordic Semiconductor ASA
|
||||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this
|
||||
* list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form, except as embedded into a Nordic
|
||||
* Semiconductor ASA integrated circuit in a product or a software update for
|
||||
* such product, must reproduce the above copyright notice, this list of
|
||||
* conditions and the following disclaimer in the documentation and/or other
|
||||
* materials provided with the distribution.
|
||||
*
|
||||
* 3. Neither the name of Nordic Semiconductor ASA nor the names of its
|
||||
* contributors may be used to endorse or promote products derived from this
|
||||
* software without specific prior written permission.
|
||||
*
|
||||
* 4. This software, with or without modification, must only be used with a
|
||||
* Nordic Semiconductor ASA integrated circuit.
|
||||
*
|
||||
* 5. Any software provided in binary form under this license must not be reverse
|
||||
* engineered, decompiled, modified and/or disassembled.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
|
||||
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||
* OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
* DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
||||
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||||
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef NRF_DRV_LPCOMP_H__
|
||||
#define NRF_DRV_LPCOMP_H__
|
||||
|
||||
#include <nrfx_lpcomp.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @defgroup nrf_drv_lpcomp LPCOMP driver - legacy layer
|
||||
* @{
|
||||
* @ingroup nrf_lpcomp
|
||||
*
|
||||
* @brief Layer providing compatibility with the former API.
|
||||
*/
|
||||
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
typedef nrfx_lpcomp_config_t nrf_drv_lpcomp_config_t;
|
||||
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define NRF_DRV_LPCOMP_DEFAULT_CONFIG NRFX_LPCOMP_DEFAULT_CONFIG
|
||||
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define lpcomp_events_handler_t nrfx_lpcomp_event_handler_t
|
||||
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_lpcomp_init nrfx_lpcomp_init
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_lpcomp_uninit nrfx_lpcomp_uninit
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_lpcomp_enable nrfx_lpcomp_enable
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_lpcomp_disable nrfx_lpcomp_disable
|
||||
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // NRF_DRV_LPCOMP_H__
|
||||
@@ -1,116 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) 2015 - 2021, Nordic Semiconductor ASA
|
||||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this
|
||||
* list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form, except as embedded into a Nordic
|
||||
* Semiconductor ASA integrated circuit in a product or a software update for
|
||||
* such product, must reproduce the above copyright notice, this list of
|
||||
* conditions and the following disclaimer in the documentation and/or other
|
||||
* materials provided with the distribution.
|
||||
*
|
||||
* 3. Neither the name of Nordic Semiconductor ASA nor the names of its
|
||||
* contributors may be used to endorse or promote products derived from this
|
||||
* software without specific prior written permission.
|
||||
*
|
||||
* 4. This software, with or without modification, must only be used with a
|
||||
* Nordic Semiconductor ASA integrated circuit.
|
||||
*
|
||||
* 5. Any software provided in binary form under this license must not be reverse
|
||||
* engineered, decompiled, modified and/or disassembled.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
|
||||
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||
* OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
* DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
||||
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||||
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef NRF_DRV_PDM_H__
|
||||
#define NRF_DRV_PDM_H__
|
||||
|
||||
#include <nrfx_pdm.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @defgroup nrf_drv_pdm PDM driver - legacy layer
|
||||
* @{
|
||||
* @ingroup nrf_pdm
|
||||
*
|
||||
* @brief @tagAPI52 Layer providing compatibility with the former API.
|
||||
*/
|
||||
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
typedef nrfx_pdm_config_t nrf_drv_pdm_config_t;
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
typedef nrfx_pdm_evt_t nrf_drv_pdm_evt_t;
|
||||
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define NRF_PDM_MAX_BUFFER_SIZE NRFX_PDM_MAX_BUFFER_SIZE
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define NRF_DRV_PDM_DEFAULT_CONFIG NRFX_PDM_DEFAULT_CONFIG
|
||||
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define PDM_NO_ERROR NRFX_PDM_NO_ERROR
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define PDM_ERROR_OVERFLOW NRFX_PDM_ERROR_OVERFLOW
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_pdm_error_t nrfx_pdm_error_t
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_pdm_event_handler_t nrfx_pdm_event_handler_t
|
||||
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_pdm_uninit nrfx_pdm_uninit
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_pdm_task_address_get nrfx_pdm_task_address_get
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_pdm_enable_check nrfx_pdm_enable_check
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_pdm_start nrfx_pdm_start
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_pdm_stop nrfx_pdm_stop
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_pdm_buffer_set nrfx_pdm_buffer_set
|
||||
|
||||
/**
|
||||
* @brief Function for initializing the PDM interface.
|
||||
*
|
||||
* @param[in] p_config Pointer to the structure with initial configuration. Cannot be NULL.
|
||||
* @param[in] event_handler Event handler provided by the user. Cannot be NULL.
|
||||
*
|
||||
* @retval NRF_SUCCESS If initialization was successful.
|
||||
* @retval NRF_ERROR_INVALID_STATE If the driver is already initialized.
|
||||
* @retval NRF_ERROR_INVALID_PARAM If invalid parameters were specified.
|
||||
*/
|
||||
__STATIC_INLINE ret_code_t nrf_drv_pdm_init(nrf_drv_pdm_config_t const * p_config,
|
||||
nrf_drv_pdm_event_handler_t event_handler)
|
||||
{
|
||||
if (p_config == NULL)
|
||||
{
|
||||
return NRFX_ERROR_INVALID_PARAM;
|
||||
}
|
||||
return nrfx_pdm_init(p_config, event_handler);
|
||||
}
|
||||
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // NRF_DRV_PDM_H__
|
||||
@@ -1,130 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) 2015 - 2021, Nordic Semiconductor ASA
|
||||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this
|
||||
* list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form, except as embedded into a Nordic
|
||||
* Semiconductor ASA integrated circuit in a product or a software update for
|
||||
* such product, must reproduce the above copyright notice, this list of
|
||||
* conditions and the following disclaimer in the documentation and/or other
|
||||
* materials provided with the distribution.
|
||||
*
|
||||
* 3. Neither the name of Nordic Semiconductor ASA nor the names of its
|
||||
* contributors may be used to endorse or promote products derived from this
|
||||
* software without specific prior written permission.
|
||||
*
|
||||
* 4. This software, with or without modification, must only be used with a
|
||||
* Nordic Semiconductor ASA integrated circuit.
|
||||
*
|
||||
* 5. Any software provided in binary form under this license must not be reverse
|
||||
* engineered, decompiled, modified and/or disassembled.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
|
||||
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||
* OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
* DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
||||
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||||
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef NRF_DRV_QDEC_H__
|
||||
#define NRF_DRV_QDEC_H__
|
||||
|
||||
#include <nrfx_qdec.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @defgroup nrf_drv_qdec QDEC driver - legacy layer
|
||||
* @{
|
||||
* @ingroup nrf_qdec
|
||||
*
|
||||
* @brief Layer providing compatibility with the former API.
|
||||
*/
|
||||
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
typedef nrfx_qdec_config_t nrf_drv_qdec_config_t;
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
typedef nrfx_qdec_sample_data_evt_t nrf_drv_qdec_sample_data_evt_t;
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
typedef nrfx_qdec_report_data_evt_t nrf_drv_qdec_report_data_evt_t;
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
typedef nrfx_qdec_event_t nrf_drv_qdec_event_t;
|
||||
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define NRF_DRV_QDEC_DEFAULT_CONFIG NRFX_QDEC_DEFAULT_CONFIG
|
||||
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define qdec_event_handler_t nrfx_qdec_event_handler_t
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_qdec_uninit nrfx_qdec_uninit
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_qdec_enable nrfx_qdec_enable
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_qdec_disable nrfx_qdec_disable
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_qdec_accumulators_read nrfx_qdec_accumulators_read
|
||||
|
||||
/**
|
||||
* @brief Function for initializing QDEC.
|
||||
*
|
||||
* @param[in] p_config Pointer to the structure with initial configuration.
|
||||
* @param[in] event_handler Event handler function.
|
||||
*
|
||||
* @retval NRF_SUCCESS If initialization was successful.
|
||||
* @retval NRF_ERROR_INVALID_PARAM If invalid parameters were supplied.
|
||||
* @retval NRF_ERROR_INVALID_STATE If QDEC was already initialized.
|
||||
*/
|
||||
__STATIC_INLINE ret_code_t nrf_drv_qdec_init(nrf_drv_qdec_config_t const * p_config,
|
||||
qdec_event_handler_t event_handler)
|
||||
{
|
||||
if (p_config == NULL)
|
||||
{
|
||||
static nrf_drv_qdec_config_t const default_config = NRFX_QDEC_DEFAULT_CONFIG;
|
||||
p_config = &default_config;
|
||||
}
|
||||
return nrfx_qdec_init(p_config, event_handler);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Function for returning the address of a specific timer task.
|
||||
*
|
||||
* @param[in] task QDEC task.
|
||||
* @param[out] p_task Task address.
|
||||
*/
|
||||
void nrf_drv_qdec_task_address_get(nrf_qdec_task_t task, uint32_t * p_task)
|
||||
{
|
||||
*p_task = nrfx_qdec_task_address_get(task);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Function for returning the address of a specific timer event.
|
||||
*
|
||||
* @param[in] event QDEC event.
|
||||
* @param[out] p_event Event address.
|
||||
*/
|
||||
void nrf_drv_qdec_event_address_get(nrf_qdec_event_t event, uint32_t * p_event)
|
||||
{
|
||||
*p_event = nrfx_qdec_event_address_get(event);
|
||||
}
|
||||
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // NRF_DRV_QDEC_H__
|
||||
@@ -1,122 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) 2016 - 2021, Nordic Semiconductor ASA
|
||||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this
|
||||
* list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form, except as embedded into a Nordic
|
||||
* Semiconductor ASA integrated circuit in a product or a software update for
|
||||
* such product, must reproduce the above copyright notice, this list of
|
||||
* conditions and the following disclaimer in the documentation and/or other
|
||||
* materials provided with the distribution.
|
||||
*
|
||||
* 3. Neither the name of Nordic Semiconductor ASA nor the names of its
|
||||
* contributors may be used to endorse or promote products derived from this
|
||||
* software without specific prior written permission.
|
||||
*
|
||||
* 4. This software, with or without modification, must only be used with a
|
||||
* Nordic Semiconductor ASA integrated circuit.
|
||||
*
|
||||
* 5. Any software provided in binary form under this license must not be reverse
|
||||
* engineered, decompiled, modified and/or disassembled.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
|
||||
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||
* OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
* DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
||||
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||||
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef NRF_DRV_QSPI_H__
|
||||
#define NRF_DRV_QSPI_H__
|
||||
|
||||
#include <nrfx_qspi.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @defgroup nrf_drv_qspi QSPI driver - legacy layer
|
||||
* @{
|
||||
* @ingroup nrf_qspi
|
||||
*
|
||||
* @brief @tagAPI52840 Layer providing compatibility with the former API.
|
||||
*/
|
||||
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
typedef nrfx_qspi_config_t nrf_drv_qspi_config_t;
|
||||
|
||||
#if QSPI_PIN_SCK == NRF_QSPI_PIN_NOT_CONNECTED
|
||||
#undef QSPI_PIN_SCK
|
||||
#define QSPI_PIN_SCK BSP_QSPI_SCK_PIN
|
||||
#endif
|
||||
#if QSPI_PIN_CSN == NRF_QSPI_PIN_NOT_CONNECTED
|
||||
#undef QSPI_PIN_CSN
|
||||
#define QSPI_PIN_CSN BSP_QSPI_CSN_PIN
|
||||
#endif
|
||||
#if QSPI_PIN_IO0 == NRF_QSPI_PIN_NOT_CONNECTED
|
||||
#undef QSPI_PIN_IO0
|
||||
#define QSPI_PIN_IO0 BSP_QSPI_IO0_PIN
|
||||
#endif
|
||||
#if QSPI_PIN_IO1 == NRF_QSPI_PIN_NOT_CONNECTED
|
||||
#undef QSPI_PIN_IO1
|
||||
#define QSPI_PIN_IO1 BSP_QSPI_IO1_PIN
|
||||
#endif
|
||||
#if QSPI_PIN_IO2 == NRF_QSPI_PIN_NOT_CONNECTED
|
||||
#undef QSPI_PIN_IO2
|
||||
#define QSPI_PIN_IO2 BSP_QSPI_IO2_PIN
|
||||
#endif
|
||||
#if QSPI_PIN_IO3 == NRF_QSPI_PIN_NOT_CONNECTED
|
||||
#undef QSPI_PIN_IO3
|
||||
#define QSPI_PIN_IO3 BSP_QSPI_IO3_PIN
|
||||
#endif
|
||||
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define NRF_DRV_QSPI_DEFAULT_CONFIG NRFX_QSPI_DEFAULT_CONFIG
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define NRF_DRV_QSPI_DEFAULT_CINSTR NRFX_QSPI_DEFAULT_CINSTR
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define NRF_DRV_QSPI_EVENT_DONE NRFX_QSPI_EVENT_DONE
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_qspi_evt_t nrfx_qspi_evt_t
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_qspi_handler_t nrfx_qspi_handler_t
|
||||
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_qspi_init nrfx_qspi_init
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_qspi_uninit nrfx_qspi_uninit
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_qspi_read nrfx_qspi_read
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_qspi_write nrfx_qspi_write
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_qspi_erase nrfx_qspi_erase
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_qspi_chip_erase nrfx_qspi_chip_erase
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_qspi_mem_busy_check nrfx_qspi_mem_busy_check
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_qspi_cinstr_xfer nrfx_qspi_cinstr_xfer
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_qspi_cinstr_quick_send nrfx_qspi_cinstr_quick_send
|
||||
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // NRF_DRV_QSPI_H__
|
||||
@@ -1,63 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) 2018 - 2021, Nordic Semiconductor ASA
|
||||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this
|
||||
* list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form, except as embedded into a Nordic
|
||||
* Semiconductor ASA integrated circuit in a product or a software update for
|
||||
* such product, must reproduce the above copyright notice, this list of
|
||||
* conditions and the following disclaimer in the documentation and/or other
|
||||
* materials provided with the distribution.
|
||||
*
|
||||
* 3. Neither the name of Nordic Semiconductor ASA nor the names of its
|
||||
* contributors may be used to endorse or promote products derived from this
|
||||
* software without specific prior written permission.
|
||||
*
|
||||
* 4. This software, with or without modification, must only be used with a
|
||||
* Nordic Semiconductor ASA integrated circuit.
|
||||
*
|
||||
* 5. Any software provided in binary form under this license must not be reverse
|
||||
* engineered, decompiled, modified and/or disassembled.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
|
||||
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||
* OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
* DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
||||
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||||
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "nrf_drv_spis.h"
|
||||
|
||||
static nrf_drv_spis_event_handler_t m_handlers[SPIS_COUNT];
|
||||
|
||||
static void spis_event_handler(nrfx_spis_evt_t const * p_event,
|
||||
void * p_context)
|
||||
{
|
||||
uint32_t inst_idx = (uint32_t)p_context;
|
||||
m_handlers[inst_idx](*p_event);
|
||||
}
|
||||
|
||||
ret_code_t nrf_drv_spis_init(nrf_drv_spis_t const * const p_instance,
|
||||
nrf_drv_spis_config_t const * p_config,
|
||||
nrf_drv_spis_event_handler_t event_handler)
|
||||
{
|
||||
uint32_t inst_idx = p_instance->drv_inst_idx;
|
||||
m_handlers[inst_idx] = event_handler;
|
||||
|
||||
return nrfx_spis_init(p_instance,
|
||||
p_config,
|
||||
spis_event_handler,
|
||||
(void *)inst_idx);
|
||||
}
|
||||
@@ -1,144 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) 2014 - 2021, Nordic Semiconductor ASA
|
||||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this
|
||||
* list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form, except as embedded into a Nordic
|
||||
* Semiconductor ASA integrated circuit in a product or a software update for
|
||||
* such product, must reproduce the above copyright notice, this list of
|
||||
* conditions and the following disclaimer in the documentation and/or other
|
||||
* materials provided with the distribution.
|
||||
*
|
||||
* 3. Neither the name of Nordic Semiconductor ASA nor the names of its
|
||||
* contributors may be used to endorse or promote products derived from this
|
||||
* software without specific prior written permission.
|
||||
*
|
||||
* 4. This software, with or without modification, must only be used with a
|
||||
* Nordic Semiconductor ASA integrated circuit.
|
||||
*
|
||||
* 5. Any software provided in binary form under this license must not be reverse
|
||||
* engineered, decompiled, modified and/or disassembled.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
|
||||
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||
* OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
* DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
||||
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||||
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef NRF_DRV_SPIS_H__
|
||||
#define NRF_DRV_SPIS_H__
|
||||
|
||||
#include <nrfx_spis.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @defgroup nrf_drv_spis SPIS driver - legacy layer
|
||||
* @{
|
||||
* @ingroup nrf_spis
|
||||
*
|
||||
* @brief Layer providing compatibility with the former API.
|
||||
*/
|
||||
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
typedef nrfx_spis_t nrf_drv_spis_t;
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
typedef nrfx_spis_config_t nrf_drv_spis_config_t;
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
typedef nrfx_spis_evt_t nrf_drv_spis_event_t;
|
||||
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define NRF_DRV_SPIS_INSTANCE NRFX_SPIS_INSTANCE
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define NRF_DRV_SPIS_DEFAULT_CONFIG NRFX_SPIS_DEFAULT_CONFIG
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define NRF_DRV_SPIS_DEFAULT_CSN_PULLUP NRFX_SPIS_DEFAULT_CSN_PULLUP
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define NRF_DRV_SPIS_DEFAULT_MISO_DRIVE NRFX_SPIS_DEFAULT_MISO_DRIVE
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define NRF_DRV_SPIS_PIN_NOT_USED NRFX_SPIS_PIN_NOT_USED
|
||||
|
||||
/** @brief Macro for providing API backward compatibility. */
|
||||
#define NRF_DRV_SPIS_BIT_ORDER_LSB_FIRST NRF_SPIS_BIT_ORDER_LSB_FIRST
|
||||
/** @brief Macro for providing API backward compatibility. */
|
||||
#define NRF_DRV_SPIS_BIT_ORDER_MSB_FIRST NRF_SPIS_BIT_ORDER_MSB_FIRST
|
||||
/** @brief Macro for providing API backward compatibility. */
|
||||
#define nrf_drv_spis_endian_t nrf_spis_bit_order_t
|
||||
/** @brief Macro for providing API backward compatibility. */
|
||||
#define NRF_DRV_SPIS_MODE_0 NRF_SPIS_MODE_0
|
||||
/** @brief Macro for providing API backward compatibility. */
|
||||
#define NRF_DRV_SPIS_MODE_1 NRF_SPIS_MODE_1
|
||||
/** @brief Macro for providing API backward compatibility. */
|
||||
#define NRF_DRV_SPIS_MODE_2 NRF_SPIS_MODE_2
|
||||
/** @brief Macro for providing API backward compatibility. */
|
||||
#define NRF_DRV_SPIS_MODE_3 NRF_SPIS_MODE_3
|
||||
/** @brief Macro for providing API backward compatibility. */
|
||||
#define nrf_drv_spis_mode_t nrf_spis_mode_t
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define NRF_DRV_SPIS_BUFFERS_SET_DONE NRFX_SPIS_BUFFERS_SET_DONE
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define NRF_DRV_SPIS_XFER_DONE NRFX_SPIS_XFER_DONE
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define NRF_DRV_SPIS_EVT_TYPE_MAX NRFX_SPIS_EVT_TYPE_MAX
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_spis_event_type_t nrfx_spis_evt_type_t
|
||||
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_spis_uninit nrfx_spis_uninit
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_spis_buffers_set nrfx_spis_buffers_set
|
||||
|
||||
/** @brief SPI slave event callback function type.
|
||||
*
|
||||
* @param[in] event SPI slave driver event.
|
||||
*/
|
||||
typedef void (*nrf_drv_spis_event_handler_t)(nrf_drv_spis_event_t event);
|
||||
|
||||
/** @brief Function for initializing the SPI slave driver instance.
|
||||
*
|
||||
* @note When the nRF52 Anomaly 109 workaround for SPIS is enabled, this function
|
||||
* initializes the GPIOTE driver as well, and uses one of GPIOTE channels
|
||||
* to detect falling edges on CSN pin.
|
||||
*
|
||||
* @param[in] p_instance Pointer to the driver instance structure.
|
||||
* @param[in] p_config Pointer to the structure with the initial configuration.
|
||||
* If NULL, the default configuration will be used.
|
||||
* @param[in] event_handler Function to be called by the SPI slave driver upon event.
|
||||
*
|
||||
* @retval NRF_SUCCESS If the initialization was successful.
|
||||
* @retval NRF_ERROR_INVALID_PARAM If an invalid parameter is supplied.
|
||||
* @retval NRFX_ERROR_INVALID_STATE If the instance is already initialized.
|
||||
* @retval NRF_ERROR_BUSY If some other peripheral with the same
|
||||
* instance ID is already in use. This is
|
||||
* possible only if PERIPHERAL_RESOURCE_SHARING_ENABLED
|
||||
* is set to a value other than zero.
|
||||
* @retval NRF_ERROR_INTERNAL GPIOTE channel for detecting falling edges
|
||||
* on CSN pin cannot be initialized. Possible
|
||||
* only when using nRF52 Anomaly 109 workaround.
|
||||
*/
|
||||
ret_code_t nrf_drv_spis_init(nrf_drv_spis_t const * const p_instance,
|
||||
nrf_drv_spis_config_t const * p_config,
|
||||
nrf_drv_spis_event_handler_t event_handler);
|
||||
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // NRF_DRV_SPIS_H__
|
||||
@@ -1,66 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) 2015 - 2021, Nordic Semiconductor ASA
|
||||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this
|
||||
* list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form, except as embedded into a Nordic
|
||||
* Semiconductor ASA integrated circuit in a product or a software update for
|
||||
* such product, must reproduce the above copyright notice, this list of
|
||||
* conditions and the following disclaimer in the documentation and/or other
|
||||
* materials provided with the distribution.
|
||||
*
|
||||
* 3. Neither the name of Nordic Semiconductor ASA nor the names of its
|
||||
* contributors may be used to endorse or promote products derived from this
|
||||
* software without specific prior written permission.
|
||||
*
|
||||
* 4. This software, with or without modification, must only be used with a
|
||||
* Nordic Semiconductor ASA integrated circuit.
|
||||
*
|
||||
* 5. Any software provided in binary form under this license must not be reverse
|
||||
* engineered, decompiled, modified and/or disassembled.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
|
||||
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||
* OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
* DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
||||
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||||
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "nrf_drv_swi.h"
|
||||
|
||||
static nrfx_drv_state_t m_drv_state = NRFX_DRV_STATE_UNINITIALIZED;
|
||||
|
||||
ret_code_t nrf_drv_swi_init(void)
|
||||
{
|
||||
if (m_drv_state == NRFX_DRV_STATE_INITIALIZED)
|
||||
{
|
||||
return NRF_ERROR_MODULE_ALREADY_INITIALIZED;
|
||||
}
|
||||
|
||||
m_drv_state = NRFX_DRV_STATE_INITIALIZED;
|
||||
return NRF_SUCCESS;
|
||||
}
|
||||
|
||||
ret_code_t nrf_drv_swi_uninit(void)
|
||||
{
|
||||
if (m_drv_state == NRFX_DRV_STATE_UNINITIALIZED)
|
||||
{
|
||||
return NRF_ERROR_INVALID_STATE;
|
||||
}
|
||||
|
||||
nrfx_swi_all_free();
|
||||
m_drv_state = NRFX_DRV_STATE_UNINITIALIZED;
|
||||
return NRF_SUCCESS;
|
||||
}
|
||||
@@ -1,108 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) 2015 - 2021, Nordic Semiconductor ASA
|
||||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this
|
||||
* list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form, except as embedded into a Nordic
|
||||
* Semiconductor ASA integrated circuit in a product or a software update for
|
||||
* such product, must reproduce the above copyright notice, this list of
|
||||
* conditions and the following disclaimer in the documentation and/or other
|
||||
* materials provided with the distribution.
|
||||
*
|
||||
* 3. Neither the name of Nordic Semiconductor ASA nor the names of its
|
||||
* contributors may be used to endorse or promote products derived from this
|
||||
* software without specific prior written permission.
|
||||
*
|
||||
* 4. This software, with or without modification, must only be used with a
|
||||
* Nordic Semiconductor ASA integrated circuit.
|
||||
*
|
||||
* 5. Any software provided in binary form under this license must not be reverse
|
||||
* engineered, decompiled, modified and/or disassembled.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
|
||||
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||
* OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
* DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
||||
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||||
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef NRF_DRV_SWI_H__
|
||||
#define NRF_DRV_SWI_H__
|
||||
|
||||
#include <nrfx_swi.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @defgroup nrf_drv_swi SWI driver - legacy layer
|
||||
* @{
|
||||
* @ingroup nrf_swi_egu
|
||||
*
|
||||
* @brief Layer providing compatibility with the former API.
|
||||
*/
|
||||
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define NRF_SWI_UNALLOCATED NRFX_SWI_UNALLOCATED
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define SWI_DEFAULT_PRIORITY NRFX_SWI_DEFAULT_PRIORITY
|
||||
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_swi_t nrfx_swi_t
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_swi_flags_t nrfx_swi_flags_t
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_swi_handler_t nrfx_swi_handler_t
|
||||
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_swi_alloc nrfx_swi_alloc
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_swi_free nrfx_swi_free
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_swi_trigger nrfx_swi_trigger
|
||||
|
||||
#if NRF_MODULE_ENABLED(EGU) || defined(__SDK_DOXYGEN__)
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_swi_task_trigger_address_get nrfx_swi_task_trigger_address_get
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_swi_event_triggered_address_get nrfx_swi_event_triggered_address_get
|
||||
#endif // NRF_MODULE_ENABLED(EGU) || defined(__SDK_DOXYGEN__)
|
||||
|
||||
/**
|
||||
* @brief Function for initializing the SWI module.
|
||||
*
|
||||
* @retval NRF_SUCCESS If the module was successfully initialized.
|
||||
* @retval NRF_ERROR_MODULE_ALREADY_INITIALIZED If the module has already been initialized.
|
||||
*/
|
||||
ret_code_t nrf_drv_swi_init(void);
|
||||
|
||||
/**
|
||||
* @brief Function for uninitializing the SWI module.
|
||||
*
|
||||
* This function also frees all SWIs.
|
||||
*
|
||||
* @retval NRF_SUCCESS If the module was successfully uninitialized.
|
||||
* @retval NRF_ERROR_INVALID_STATE If the module has not been initialized yet.
|
||||
*/
|
||||
ret_code_t nrf_drv_swi_uninit(void);
|
||||
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // NRF_DRV_SWI_H__
|
||||
@@ -1,80 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) 2016 - 2021, Nordic Semiconductor ASA
|
||||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this
|
||||
* list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form, except as embedded into a Nordic
|
||||
* Semiconductor ASA integrated circuit in a product or a software update for
|
||||
* such product, must reproduce the above copyright notice, this list of
|
||||
* conditions and the following disclaimer in the documentation and/or other
|
||||
* materials provided with the distribution.
|
||||
*
|
||||
* 3. Neither the name of Nordic Semiconductor ASA nor the names of its
|
||||
* contributors may be used to endorse or promote products derived from this
|
||||
* software without specific prior written permission.
|
||||
*
|
||||
* 4. This software, with or without modification, must only be used with a
|
||||
* Nordic Semiconductor ASA integrated circuit.
|
||||
*
|
||||
* 5. Any software provided in binary form under this license must not be reverse
|
||||
* engineered, decompiled, modified and/or disassembled.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
|
||||
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||
* OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
* DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
||||
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||||
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef NRF_DRV_SYSTICK_H__
|
||||
#define NRF_DRV_SYSTICK_H__
|
||||
|
||||
#include <nrfx_systick.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @defgroup nrf_drv_systick ARM(R) SysTick driver - legacy layer
|
||||
* @{
|
||||
* @ingroup nrf_systick
|
||||
*
|
||||
* @brief Layer providing compatibility with the former API.
|
||||
*/
|
||||
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
typedef nrfx_systick_state_t nrf_drv_systick_state_t;
|
||||
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_systick_init nrfx_systick_init
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_systick_get nrfx_systick_get
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_systick_test nrfx_systick_test
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_systick_delay_ticks nrfx_systick_delay_ticks
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_systick_delay_us nrfx_systick_delay_us
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_systick_delay_ms nrfx_systick_delay_ms
|
||||
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // NRF_DRV_SYSTICK_H__
|
||||
@@ -1,134 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) 2015 - 2021, Nordic Semiconductor ASA
|
||||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this
|
||||
* list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form, except as embedded into a Nordic
|
||||
* Semiconductor ASA integrated circuit in a product or a software update for
|
||||
* such product, must reproduce the above copyright notice, this list of
|
||||
* conditions and the following disclaimer in the documentation and/or other
|
||||
* materials provided with the distribution.
|
||||
*
|
||||
* 3. Neither the name of Nordic Semiconductor ASA nor the names of its
|
||||
* contributors may be used to endorse or promote products derived from this
|
||||
* software without specific prior written permission.
|
||||
*
|
||||
* 4. This software, with or without modification, must only be used with a
|
||||
* Nordic Semiconductor ASA integrated circuit.
|
||||
*
|
||||
* 5. Any software provided in binary form under this license must not be reverse
|
||||
* engineered, decompiled, modified and/or disassembled.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
|
||||
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||
* OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
* DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
||||
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||||
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef NRF_DRV_TWIS_H__
|
||||
#define NRF_DRV_TWIS_H__
|
||||
|
||||
#include <nrfx_twis.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @defgroup nrf_drv_twis TWIS driver - legacy layer
|
||||
* @{
|
||||
* @ingroup nrf_twis
|
||||
*
|
||||
* @brief Layer providing compatibility with the former API.
|
||||
*/
|
||||
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
typedef nrfx_twis_t nrf_drv_twis_t;
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
typedef nrfx_twis_config_t nrf_drv_twis_config_t;
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
typedef nrfx_twis_evt_t nrf_drv_twis_evt_t;
|
||||
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define NRF_DRV_TWIS_INSTANCE NRFX_TWIS_INSTANCE
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define NRF_DRV_TWIS_DEFAULT_CONFIG NRFX_TWIS_DEFAULT_CONFIG
|
||||
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define TWIS_EVT_READ_REQ NRFX_TWIS_EVT_READ_REQ
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define TWIS_EVT_READ_DONE NRFX_TWIS_EVT_READ_DONE
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define TWIS_EVT_READ_ERROR NRFX_TWIS_EVT_READ_ERROR
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define TWIS_EVT_WRITE_REQ NRFX_TWIS_EVT_WRITE_REQ
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define TWIS_EVT_WRITE_DONE NRFX_TWIS_EVT_WRITE_DONE
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define TWIS_EVT_WRITE_ERROR NRFX_TWIS_EVT_WRITE_ERROR
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define TWIS_EVT_GENERAL_ERROR NRFX_TWIS_EVT_GENERAL_ERROR
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_twis_evt_type_t nrfx_twis_evt_type_t
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define NRF_DRV_TWIS_ERROR_OVERFLOW NRFX_TWIS_ERROR_OVERFLOW
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define NRF_DRV_TWIS_ERROR_DATA_NACK NRFX_TWIS_ERROR_DATA_NACK
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define NRF_DRV_TWIS_ERROR_OVERREAD NRFX_TWIS_ERROR_OVERREAD
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define NRF_DRV_TWIS_ERROR_UNEXPECTED_EVENT NRFX_TWIS_ERROR_UNEXPECTED_EVENT
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_twis_error_t nrfx_twis_error_t
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_twis_event_handler_t nrfx_twis_event_handler_t
|
||||
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_twis_init nrfx_twis_init
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_twis_uninit nrfx_twis_uninit
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_twis_enable nrfx_twis_enable
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_twis_disable nrfx_twis_disable
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_twis_error_get_and_clear nrfx_twis_error_get_and_clear
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_twis_tx_prepare nrfx_twis_tx_prepare
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_twis_tx_amount nrfx_twis_tx_amount
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_twis_rx_prepare nrfx_twis_rx_prepare
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_twis_rx_amount nrfx_twis_rx_amount
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_twis_is_busy nrfx_twis_is_busy
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_twis_is_waiting_tx_buff nrfx_twis_is_waiting_tx_buff
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_twis_is_waiting_rx_buff nrfx_twis_is_waiting_rx_buff
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_twis_is_pending_tx nrfx_twis_is_pending_tx
|
||||
/** @brief Macro for forwarding the new implementation. */
|
||||
#define nrf_drv_twis_is_pending_rx nrfx_twis_is_pending_rx
|
||||
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // NRF_DRV_TWIS_H__
|
||||
@@ -1,272 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) 2016 - 2021, Nordic Semiconductor ASA
|
||||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this
|
||||
* list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form, except as embedded into a Nordic
|
||||
* Semiconductor ASA integrated circuit in a product or a software update for
|
||||
* such product, must reproduce the above copyright notice, this list of
|
||||
* conditions and the following disclaimer in the documentation and/or other
|
||||
* materials provided with the distribution.
|
||||
*
|
||||
* 3. Neither the name of Nordic Semiconductor ASA nor the names of its
|
||||
* contributors may be used to endorse or promote products derived from this
|
||||
* software without specific prior written permission.
|
||||
*
|
||||
* 4. This software, with or without modification, must only be used with a
|
||||
* Nordic Semiconductor ASA integrated circuit.
|
||||
*
|
||||
* 5. Any software provided in binary form under this license must not be reverse
|
||||
* engineered, decompiled, modified and/or disassembled.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
|
||||
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||
* OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
* DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
||||
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||||
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef NRF_DRV_USBD_H__
|
||||
#define NRF_DRV_USBD_H__
|
||||
|
||||
#include "nrfx.h"
|
||||
#include "nrfx_usbd.h"
|
||||
#include "nrf_drv_usbd_errata.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @defgroup nrf_drv_usbd USBD driver - legacy layer
|
||||
* @{
|
||||
* @ingroup nrf_usbd
|
||||
*
|
||||
* @brief @tagAPI52 Layer providing compatibility with the former API.
|
||||
*/
|
||||
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_DRV_USBD_DMASCHEDULER_PRIORITIZED NRFX_USBD_DMASCHEDULER_PRIORITIZED
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_DRV_USBD_DMASCHEDULER_ROUNDROBIN NRFX_USBD_DMASCHEDULER_ROUNDROBIN
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_DRV_USBD_EPSIZE NRFX_USBD_EPSIZE
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_DRV_USBD_ISOSIZE NRFX_USBD_ISOSIZE
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_DRV_USBD_FEEDER_BUFFER_SIZE NRFX_USBD_EPSIZE
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_DRV_USBD_EPIN NRFX_USBD_EPIN
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_DRV_USBD_EPOUT NRFX_USBD_EPOUT
|
||||
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
typedef nrfx_usbd_ep_t nrf_drv_usbd_ep_t;
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_DRV_USBD_EPOUT0 NRFX_USBD_EPOUT0
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_DRV_USBD_EPOUT1 NRFX_USBD_EPOUT1
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_DRV_USBD_EPOUT2 NRFX_USBD_EPOUT2
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_DRV_USBD_EPOUT3 NRFX_USBD_EPOUT3
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_DRV_USBD_EPOUT4 NRFX_USBD_EPOUT4
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_DRV_USBD_EPOUT5 NRFX_USBD_EPOUT5
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_DRV_USBD_EPOUT6 NRFX_USBD_EPOUT6
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_DRV_USBD_EPOUT7 NRFX_USBD_EPOUT7
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_DRV_USBD_EPOUT8 NRFX_USBD_EPOUT8
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_DRV_USBD_EPIN0 NRFX_USBD_EPIN0
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_DRV_USBD_EPIN1 NRFX_USBD_EPIN1
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_DRV_USBD_EPIN2 NRFX_USBD_EPIN2
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_DRV_USBD_EPIN3 NRFX_USBD_EPIN3
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_DRV_USBD_EPIN4 NRFX_USBD_EPIN4
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_DRV_USBD_EPIN5 NRFX_USBD_EPIN5
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_DRV_USBD_EPIN6 NRFX_USBD_EPIN6
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_DRV_USBD_EPIN7 NRFX_USBD_EPIN7
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_DRV_USBD_EPIN8 NRFX_USBD_EPIN8
|
||||
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
typedef nrfx_usbd_event_type_t nrf_drv_usbd_event_type_t;
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_DRV_USBD_EVT_SOF NRFX_USBD_EVT_SOF
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_DRV_USBD_EVT_RESET NRFX_USBD_EVT_RESET
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_DRV_USBD_EVT_SUSPEND NRFX_USBD_EVT_SUSPEND
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_DRV_USBD_EVT_RESUME NRFX_USBD_EVT_RESUME
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_DRV_USBD_EVT_WUREQ NRFX_USBD_EVT_WUREQ
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_DRV_USBD_EVT_SETUP NRFX_USBD_EVT_SETUP
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_DRV_USBD_EVT_EPTRANSFER NRFX_USBD_EVT_EPTRANSFER
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_DRV_USBD_EVT_CNT NRFX_USBD_EVT_CNT
|
||||
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_USBD_EP_OK NRFX_USBD_EP_OK
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_USBD_EP_WAITING NRFX_USBD_EP_WAITING
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_USBD_EP_OVERLOAD NRFX_USBD_EP_OVERLOAD
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_USBD_EP_ABORTED NRFX_USBD_EP_ABORTED
|
||||
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
typedef nrfx_usbd_ep_status_t nrf_drv_usbd_ep_status_t;
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
typedef nrfx_usbd_evt_t nrf_drv_usbd_evt_t;
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
typedef nrfx_usbd_event_handler_t nrf_drv_usbd_event_handler_t;
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
typedef nrfx_usbd_data_ptr_t nrf_drv_usbd_data_ptr_t;
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
typedef nrfx_usbd_ep_transfer_t nrf_drv_usbd_ep_transfer_t;
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
typedef nrfx_usbd_transfer_flags_t nrf_drv_usbd_transfer_flags_t;
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_DRV_USBD_TRANSFER_ZLP_FLAG NRFX_USBD_TRANSFER_ZLP_FLAG
|
||||
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
typedef nrfx_usbd_transfer_t nrf_drv_usbd_transfer_t;
|
||||
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_DRV_USBD_TRANSFER_IN_FLAGS(name, tx_buff, tx_size, tx_flags) \
|
||||
NRFX_USBD_TRANSFER_IN(name, tx_buff, tx_size, tx_flags)
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_DRV_USBD_TRANSFER_IN(name, tx_buff, tx_size) \
|
||||
NRFX_USBD_TRANSFER_IN(name, tx_buff, tx_size, 0)
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_DRV_USBD_TRANSFER_IN_ZLP(name, tx_buff, tx_size) \
|
||||
NRFX_USBD_TRANSFER_IN(name, tx_buff, tx_size, NRFX_USBD_TRANSFER_ZLP_FLAG)
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define NRF_DRV_USBD_TRANSFER_OUT NRFX_USBD_TRANSFER_OUT
|
||||
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
typedef nrfx_usbd_feeder_t nrf_drv_usbd_feeder_t;
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
typedef nrfx_usbd_consumer_t nrf_drv_usbd_consumer_t;
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
typedef nrfx_usbd_handler_t nrf_drv_usbd_handler_t;
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
typedef nrfx_usbd_handler_desc_t nrf_drv_usbd_handler_desc_t;
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
typedef nrfx_usbd_setup_t nrf_drv_usbd_setup_t;
|
||||
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define nrf_drv_usbd_init nrfx_usbd_init
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define nrf_drv_usbd_enable nrfx_usbd_enable
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define nrf_drv_usbd_disable nrfx_usbd_disable
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define nrf_drv_usbd_start nrfx_usbd_start
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define nrf_drv_usbd_stop nrfx_usbd_stop
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define nrf_drv_usbd_is_initialized nrfx_usbd_is_initialized
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define nrf_drv_usbd_is_enabled nrfx_usbd_is_enabled
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define nrf_drv_usbd_is_started nrfx_usbd_is_started
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define nrf_drv_usbd_suspend nrfx_usbd_suspend
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define nrf_drv_usbd_wakeup_req nrfx_usbd_wakeup_req
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define nrf_drv_usbd_suspend_check nrfx_usbd_suspend_check
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define nrf_drv_usbd_suspend_irq_config nrfx_usbd_suspend_irq_config
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define nrf_drv_usbd_active_irq_config nrfx_usbd_active_irq_config
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define nrf_drv_usbd_force_bus_wakeup nrfx_usbd_force_bus_wakeup
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define nrf_drv_usbd_bus_suspend_check nrfx_usbd_bus_suspend_check
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define nrf_drv_usbd_ep_max_packet_size_set nrfx_usbd_ep_max_packet_size_set
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define nrf_drv_usbd_ep_max_packet_size_get nrfx_usbd_ep_max_packet_size_get
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define nrf_drv_usbd_ep_enable_check nrfx_usbd_ep_enable_check
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define nrf_drv_usbd_ep_enable nrfx_usbd_ep_enable
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define nrf_drv_usbd_ep_disable nrfx_usbd_ep_disable
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define nrf_drv_usbd_ep_default_config nrfx_usbd_ep_default_config
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define nrf_drv_usbd_ep_transfer nrfx_usbd_ep_transfer
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define nrf_drv_usbd_ep_handled_transfer nrfx_usbd_ep_handled_transfer
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define nrf_drv_usbd_feeder_buffer_get nrfx_usbd_feeder_buffer_get
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define nrf_drv_usbd_ep_status_get nrfx_usbd_ep_status_get
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define nrf_drv_usbd_epout_size_get nrfx_usbd_epout_size_get
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define nrf_drv_usbd_ep_is_busy nrfx_usbd_ep_is_busy
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define nrf_drv_usbd_ep_stall nrfx_usbd_ep_stall
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define nrf_drv_usbd_ep_stall_clear nrfx_usbd_ep_stall_clear
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define nrf_drv_usbd_ep_stall_check nrfx_usbd_ep_stall_check
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define nrf_drv_usbd_ep_dtoggle_clear nrfx_usbd_ep_dtoggle_clear
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define nrf_drv_usbd_setup_get nrfx_usbd_setup_get
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define nrf_drv_usbd_setup_data_clear nrfx_usbd_setup_data_clear
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define nrf_drv_usbd_setup_clear nrfx_usbd_setup_clear
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define nrf_drv_usbd_setup_stall nrfx_usbd_setup_stall
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define nrf_drv_usbd_ep_abort nrfx_usbd_ep_abort
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define nrf_drv_usbd_last_setup_dir_get nrfx_usbd_last_setup_dir_get
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
#define nrf_drv_usbd_transfer_out_drop nrfx_usbd_transfer_out_drop
|
||||
|
||||
/** @brief Type definition for forwarding the new implementation. */
|
||||
static inline ret_code_t nrf_drv_usbd_uninit(void)
|
||||
{
|
||||
nrfx_usbd_uninit();
|
||||
return NRF_SUCCESS;
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
/** @} */
|
||||
#endif /* NRF_DRV_USBD_H__ */
|
||||
@@ -1,70 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) 2017 - 2021, Nordic Semiconductor ASA
|
||||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this
|
||||
* list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form, except as embedded into a Nordic
|
||||
* Semiconductor ASA integrated circuit in a product or a software update for
|
||||
* such product, must reproduce the above copyright notice, this list of
|
||||
* conditions and the following disclaimer in the documentation and/or other
|
||||
* materials provided with the distribution.
|
||||
*
|
||||
* 3. Neither the name of Nordic Semiconductor ASA nor the names of its
|
||||
* contributors may be used to endorse or promote products derived from this
|
||||
* software without specific prior written permission.
|
||||
*
|
||||
* 4. This software, with or without modification, must only be used with a
|
||||
* Nordic Semiconductor ASA integrated circuit.
|
||||
*
|
||||
* 5. Any software provided in binary form under this license must not be reverse
|
||||
* engineered, decompiled, modified and/or disassembled.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
|
||||
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||
* OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
* DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
||||
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||||
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef NRF_DRV_USBD_ERRATA_H__
|
||||
#define NRF_DRV_USBD_ERRATA_H__
|
||||
|
||||
#include "nrfx.h"
|
||||
|
||||
#ifndef NRFX_USBD_ERRATA_ENABLE
|
||||
#ifdef NRF_DRV_USBD_ERRATA_ENABLE
|
||||
#define NRFX_USBD_ERRATA_ENABLE NRF_DRV_USBD_ERRATA_ENABLE
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include "../src/nrfx_usbd_errata.h"
|
||||
|
||||
#ifndef NRF_DRV_USBD_ERRATA_ENABLE
|
||||
#define NRF_DRV_USBD_ERRATA_ENABLE NRFX_USBD_ERRATA_ENABLE
|
||||
#endif
|
||||
|
||||
#define nrf_drv_usbd_errata_type_52840 nrfx_usbd_errata_type_52840
|
||||
#define nrf_drv_usbd_errata_type_52840_proto1 nrfx_usbd_errata_type_52840_proto1
|
||||
#define nrf_drv_usbd_errata_type_52840_fp1 nrfx_usbd_errata_type_52840_fp1
|
||||
#define nrf_drv_usbd_errata_type_52840_fp2 nrfx_usbd_errata_type_52840_fp2
|
||||
#define nrf_drv_usbd_errata_104 nrfx_usbd_errata_104
|
||||
#define nrf_drv_usbd_errata_154 nrfx_usbd_errata_154
|
||||
#define nrf_drv_usbd_errata_166 nrfx_usbd_errata_166
|
||||
#define nrf_drv_usbd_errata_171 nrfx_usbd_errata_171
|
||||
#define nrf_drv_usbd_errata_187 nrfx_usbd_errata_187
|
||||
#define nrf_drv_usbd_errata_sizeepout_rw nrfx_usbd_errata_sizeepout_rw
|
||||
#define nrf_drv_usb_errata_199 nrfx_usb_errata_199
|
||||
|
||||
#endif /* NRF_DRV_USBD_ERRATA_H__ */
|
||||
Reference in New Issue
Block a user