drivers/nble: Introduce basic skeleton

Introduce the basic skeleton for NBLE, which is the Bluetooth LE API
implementation targeting a custom firmware running on Nordic
Semiconductor nRF51 chips.

Change-Id: I1ce69d6ee0205e71f6bd8d256d9233c93d2cde41
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
Johan Hedberg 2016-01-11 14:27:50 +02:00 committed by Anas Nashif
commit fd975d27fb
7 changed files with 340 additions and 0 deletions

69
drivers/nble/conn.c Normal file
View file

@ -0,0 +1,69 @@
/*
* Copyright (c) 2016 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <errno.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/conn.h>
struct bt_conn *bt_conn_ref(struct bt_conn *conn)
{
return NULL;
}
void bt_conn_unref(struct bt_conn *conn)
{
}
struct bt_conn *bt_conn_lookup_addr_le(const bt_addr_le_t *peer)
{
return NULL;
}
const bt_addr_le_t *bt_conn_get_dst(const struct bt_conn *conn)
{
return NULL;
}
int bt_conn_get_info(const struct bt_conn *conn, struct bt_conn_info *info)
{
return -ENOSYS;
}
int bt_conn_disconnect(struct bt_conn *conn, uint8_t reason)
{
return -ENOSYS;
}
struct bt_conn *bt_conn_create_le(const bt_addr_le_t *peer,
const struct bt_le_conn_param *param)
{
return NULL;
}
int bt_conn_security(struct bt_conn *conn, bt_security_t sec)
{
return -ENOSYS;
}
uint8_t bt_conn_enc_key_size(struct bt_conn *conn)
{
return 0;
}
void bt_conn_cb_register(struct bt_conn_cb *cb)
{
}