mirror of https://github.com/ARMmbed/mbed-os.git
move nordic ll to target nordic
parent
d09f66b4c5
commit
d1593fecc1
|
@ -1,49 +0,0 @@
|
||||||
Permissive Binary License
|
|
||||||
|
|
||||||
Version 1.0, September 2015
|
|
||||||
|
|
||||||
Redistribution. Redistribution and use in binary form, without
|
|
||||||
modification, are permitted provided that the following conditions are
|
|
||||||
met:
|
|
||||||
|
|
||||||
1) Redistributions must reproduce the above copyright notice and the
|
|
||||||
following disclaimer in the documentation and/or other materials
|
|
||||||
provided with the distribution.
|
|
||||||
|
|
||||||
2) Unless to the extent explicitly permitted by law, no reverse
|
|
||||||
engineering, decompilation, or disassembly of this software is
|
|
||||||
permitted.
|
|
||||||
|
|
||||||
3) Redistribution as part of a software development kit must include the
|
|
||||||
accompanying file named “DEPENDENCIES” and any dependencies listed in
|
|
||||||
that file.
|
|
||||||
|
|
||||||
4) Neither the name of the copyright holder nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived from
|
|
||||||
this software without specific prior written permission.
|
|
||||||
|
|
||||||
Limited patent license. The copyright holders (and contributors) grant a
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free patent license to
|
|
||||||
make, have made, use, offer to sell, sell, import, and otherwise
|
|
||||||
transfer this software, where such license applies only to those patent
|
|
||||||
claims licensable by the copyright holders (and contributors) that are
|
|
||||||
necessarily infringed by this software. This patent license shall not
|
|
||||||
apply to any combinations that include this software. No hardware is
|
|
||||||
licensed hereunder.
|
|
||||||
|
|
||||||
If you institute patent litigation against any entity (including a
|
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the software
|
|
||||||
itself infringes your patent(s), then your rights granted under this
|
|
||||||
license shall terminate as of the date such litigation is filed.
|
|
||||||
|
|
||||||
DISCLAIMER. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
|
|
||||||
CONTRIBUTORS "AS IS." ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT
|
|
||||||
NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
||||||
HOLDERS 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.
|
|
|
@ -1,11 +0,0 @@
|
||||||
# BLE Cordio Link Layer nordic port
|
|
||||||
|
|
||||||
This folder contains a binary distribution and public headers that allow nordic
|
|
||||||
platforms to interface with the cordio link layer platform API.
|
|
||||||
|
|
||||||
The binary is contained in `libcordio_stack_nordic.a` and the public headers are
|
|
||||||
contained in the `platform` directory.
|
|
||||||
|
|
||||||
## Library information
|
|
||||||
|
|
||||||
Compiled with: GNU Arm Embedded Toolchain 6-2017-q2-update
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,54 +0,0 @@
|
||||||
/*************************************************************************************************/
|
|
||||||
/*!
|
|
||||||
* \brief Nordic baseband driver header.
|
|
||||||
*
|
|
||||||
* Copyright (c) 2009-2018 ARM Ltd., all rights reserved.
|
|
||||||
* SPDX-License-Identifier: LicenseRef-PBL
|
|
||||||
*
|
|
||||||
* This file and the related binary are licensed under the
|
|
||||||
* Permissive Binary License, Version 1.0 (the "License");
|
|
||||||
* you may not use these files except in compliance with the License.
|
|
||||||
*
|
|
||||||
* You may obtain a copy of the License here:
|
|
||||||
* LICENSE-permissive-binary-license-1.0.txt and at
|
|
||||||
* https://www.mbed.com/licenses/PBL-1.0
|
|
||||||
*
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
/*************************************************************************************************/
|
|
||||||
|
|
||||||
#ifndef BB_DRV_NORDIC_H
|
|
||||||
#define BB_DRV_NORDIC_H
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "bb_api.h"
|
|
||||||
|
|
||||||
/**************************************************************************************************
|
|
||||||
Data Types
|
|
||||||
**************************************************************************************************/
|
|
||||||
|
|
||||||
/*! \brief IRQ callback datatypes. */
|
|
||||||
typedef void (*bbDrvIrqCback_t)(void);
|
|
||||||
|
|
||||||
/*************************************************************************************************/
|
|
||||||
/*!
|
|
||||||
* \brief Called to register a protocol's Radio and Timer IRQ callback functions.
|
|
||||||
*
|
|
||||||
* \param protId Protocol ID.
|
|
||||||
* \param timerCback Timer IRQ callback.
|
|
||||||
* \param radioCback Timer IRQ callback.
|
|
||||||
*
|
|
||||||
* \return None.
|
|
||||||
*/
|
|
||||||
/*************************************************************************************************/
|
|
||||||
void BbDrvRegisterProtIrq(uint8_t protId, bbDrvIrqCback_t timerCback, bbDrvIrqCback_t radioCback);
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
};
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* BB_DRV_NORDIC_H */
|
|
|
@ -1,74 +0,0 @@
|
||||||
/*************************************************************************************************/
|
|
||||||
/*!
|
|
||||||
* \file
|
|
||||||
*
|
|
||||||
* \brief Private platform definitions.
|
|
||||||
*
|
|
||||||
* Copyright (c) 2009-2018 ARM Ltd., all rights reserved.
|
|
||||||
* SPDX-License-Identifier: LicenseRef-PBL
|
|
||||||
*
|
|
||||||
* This file and the related binary are licensed under the
|
|
||||||
* Permissive Binary License, Version 1.0 (the "License");
|
|
||||||
* you may not use these files except in compliance with the License.
|
|
||||||
*
|
|
||||||
* You may obtain a copy of the License here:
|
|
||||||
* LICENSE-permissive-binary-license-1.0.txt and at
|
|
||||||
* https://www.mbed.com/licenses/PBL-1.0
|
|
||||||
*
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
/*************************************************************************************************/
|
|
||||||
|
|
||||||
#ifndef PLATFORM_BTN_H
|
|
||||||
#define PLATFORM_BTN_H
|
|
||||||
|
|
||||||
#include "platform_nordic.h"
|
|
||||||
#include "wsf_msg.h"
|
|
||||||
|
|
||||||
/**************************************************************************************************
|
|
||||||
Macros
|
|
||||||
**************************************************************************************************/
|
|
||||||
|
|
||||||
#if (BUTTONS_NUMBER >= 1)
|
|
||||||
#define BUTTON_0_BITMASK (1 << BSP_BUTTON_0)
|
|
||||||
#endif
|
|
||||||
#if (BUTTONS_NUMBER >= 2)
|
|
||||||
#define BUTTON_1_BITMASK (1 << BSP_BUTTON_1)
|
|
||||||
#endif
|
|
||||||
#if (BUTTONS_NUMBER >= 3)
|
|
||||||
#define BUTTON_2_BITMASK (1 << BSP_BUTTON_2)
|
|
||||||
#endif
|
|
||||||
#if (BUTTONS_NUMBER >= 4)
|
|
||||||
#define BUTTON_3_BITMASK (1 << BSP_BUTTON_3)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define BUTTON_ACTIVE_STATE 0
|
|
||||||
|
|
||||||
/**************************************************************************************************
|
|
||||||
Types
|
|
||||||
**************************************************************************************************/
|
|
||||||
|
|
||||||
/*! \brief Button configuration structure. */
|
|
||||||
typedef struct
|
|
||||||
{
|
|
||||||
uint8_t pinNo; /*!< Pin to be used as a button. */
|
|
||||||
uint8_t activeState; /*!< APP_BUTTON_ACTIVE_HIGH or APP_BUTTON_ACTIVE_LOW. */
|
|
||||||
nrf_gpio_pin_pull_t pullCfg; /*!< Pull-up or -down configuration. */
|
|
||||||
} platformButtonCfg_t;
|
|
||||||
|
|
||||||
/**************************************************************************************************
|
|
||||||
Global Variables
|
|
||||||
**************************************************************************************************/
|
|
||||||
|
|
||||||
extern platformButtonCfg_t platformButtons[];
|
|
||||||
|
|
||||||
/**************************************************************************************************
|
|
||||||
Function Declarations
|
|
||||||
**************************************************************************************************/
|
|
||||||
|
|
||||||
void PlatformInitBtns(platformButtonCfg_t *pButtons, uint8_t buttonCount);
|
|
||||||
uint32_t PlatformReadBtns(void);
|
|
||||||
void PlatformRegisterBtnsHandler(wsfHandlerId_t handlerId, wsfEventMask_t eventMask);
|
|
||||||
|
|
||||||
#endif /* PLATFORM_BTN_H */
|
|
|
@ -1,89 +0,0 @@
|
||||||
/*************************************************************************************************/
|
|
||||||
/*!
|
|
||||||
* \file
|
|
||||||
*
|
|
||||||
* \brief Private platform definitions.
|
|
||||||
*
|
|
||||||
* Copyright (c) 2009-2018 ARM Ltd., all rights reserved.
|
|
||||||
* SPDX-License-Identifier: LicenseRef-PBL
|
|
||||||
*
|
|
||||||
* This file and the related binary are licensed under the
|
|
||||||
* Permissive Binary License, Version 1.0 (the "License");
|
|
||||||
* you may not use these files except in compliance with the License.
|
|
||||||
*
|
|
||||||
* You may obtain a copy of the License here:
|
|
||||||
* LICENSE-permissive-binary-license-1.0.txt and at
|
|
||||||
* https://www.mbed.com/licenses/PBL-1.0
|
|
||||||
*
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
/*************************************************************************************************/
|
|
||||||
|
|
||||||
#ifndef PLATFORM_INT_H
|
|
||||||
#define PLATFORM_INT_H
|
|
||||||
|
|
||||||
#include "platform_api.h"
|
|
||||||
|
|
||||||
/* Nordic specific definitions. */
|
|
||||||
#include <stdbool.h>
|
|
||||||
#include "boards.h"
|
|
||||||
#include "nrf.h"
|
|
||||||
|
|
||||||
/**************************************************************************************************
|
|
||||||
Macros
|
|
||||||
**************************************************************************************************/
|
|
||||||
|
|
||||||
#if defined(BOARD_PCA10000) || defined(BOARD_PCA10031)
|
|
||||||
|
|
||||||
#define LED_CPU_ACTIVE() nrf_gpio_pin_set (LED_RGB_RED); \
|
|
||||||
nrf_gpio_pin_clear(LED_RGB_GREEN); \
|
|
||||||
nrf_gpio_pin_set (LED_RGB_BLUE)
|
|
||||||
#define LED_CPU_SLEEP() nrf_gpio_pin_set (LED_RGB_RED); \
|
|
||||||
nrf_gpio_pin_set (LED_RGB_GREEN); \
|
|
||||||
nrf_gpio_pin_set (LED_RGB_BLUE)
|
|
||||||
#define LED_ERROR() nrf_gpio_pin_clear(LED_RGB_RED); \
|
|
||||||
nrf_gpio_pin_set (LED_RGB_GREEN); \
|
|
||||||
nrf_gpio_pin_set (LED_RGB_BLUE)
|
|
||||||
#define LED_CLEAR_ERROR()
|
|
||||||
|
|
||||||
#elif defined(BOARD_PCA10001)
|
|
||||||
|
|
||||||
#define LED_CPU_ACTIVE() nrf_gpio_pin_set (BSP_LED_0)
|
|
||||||
#define LED_CPU_SLEEP() nrf_gpio_pin_clear(BSP_LED_0)
|
|
||||||
#define LED_ERROR() nrf_gpio_pin_set (BSP_LED_1)
|
|
||||||
#define LED_CLEAR_ERROR() nrf_gpio_pin_clear(BSP_LED_1)
|
|
||||||
|
|
||||||
#elif defined(BOARD_PCA10028) || defined(BOARD_PCA10040) || defined(BOARD_PCA10056)
|
|
||||||
|
|
||||||
/* Inverted LED "on" logic */
|
|
||||||
#define LED_CPU_ACTIVE() nrf_gpio_pin_clear(BSP_LED_1) /* edge of board */
|
|
||||||
#define LED_CPU_SLEEP() nrf_gpio_pin_set (BSP_LED_1) /* edge of board */
|
|
||||||
#define LED_ERROR() nrf_gpio_pin_clear(BSP_LED_3) /* edge of board */
|
|
||||||
#define LED_CLEAR_ERROR() nrf_gpio_pin_set (BSP_LED_3) /* edge of board */
|
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
#warning "Board not specified"
|
|
||||||
|
|
||||||
#define LED_CPU_ACTIVE()
|
|
||||||
#define LED_CPU_SLEEP()
|
|
||||||
#define LED_ERROR()
|
|
||||||
#define LED_CLEAR_ERROR()
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**************************************************************************************************
|
|
||||||
Global Variables
|
|
||||||
**************************************************************************************************/
|
|
||||||
|
|
||||||
extern uint8_t *SystemHeapStart;
|
|
||||||
extern uint32_t SystemHeapSize;
|
|
||||||
|
|
||||||
/**************************************************************************************************
|
|
||||||
Function Declarations
|
|
||||||
**************************************************************************************************/
|
|
||||||
|
|
||||||
void platformTimeInit(void);
|
|
||||||
|
|
||||||
#endif /* PLATFORM_INT_H */
|
|
|
@ -1,48 +0,0 @@
|
||||||
/*************************************************************************************************/
|
|
||||||
/*!
|
|
||||||
* \file
|
|
||||||
*
|
|
||||||
* \brief Baseband driver internal interface file.
|
|
||||||
*
|
|
||||||
* Copyright (c) 2009-2018 ARM Ltd., all rights reserved.
|
|
||||||
* SPDX-License-Identifier: LicenseRef-PBL
|
|
||||||
*
|
|
||||||
* This file and the related binary are licensed under the
|
|
||||||
* Permissive Binary License, Version 1.0 (the "License");
|
|
||||||
* you may not use these files except in compliance with the License.
|
|
||||||
*
|
|
||||||
* You may obtain a copy of the License here:
|
|
||||||
* LICENSE-permissive-binary-license-1.0.txt and at
|
|
||||||
* https://www.mbed.com/licenses/PBL-1.0
|
|
||||||
*
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
/*************************************************************************************************/
|
|
||||||
|
|
||||||
#ifndef BB_BLE_DRV_INT_H
|
|
||||||
#define BB_BLE_DRV_INT_H
|
|
||||||
|
|
||||||
#include "wsf_types.h"
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**************************************************************************************************
|
|
||||||
Function Declarations
|
|
||||||
**************************************************************************************************/
|
|
||||||
|
|
||||||
/* Inline encryption */
|
|
||||||
void BbBleDrvInlineEncryptTxEnable(bool_t enable);
|
|
||||||
void BbBleDrvInlineEncryptSetPacketCount(uint64_t count);
|
|
||||||
void BbBleDrvInlineEncryptDecryptSuppressMic(bool_t enable);
|
|
||||||
void BbBleDrvInlineEncryptDecryptSetKey(uint8_t * key);
|
|
||||||
void BbBleDrvInlineEncryptDecryptSetIv(uint8_t * iv);
|
|
||||||
void BbBleDrvInlineEncryptDecryptSetDirection(uint8_t dir);
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
};
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* BB_BLE_DRV_INT_H */
|
|
Loading…
Reference in New Issue