mirror of
https://github.com/pine64/bl_iot_sdk.git
synced 2024-10-06 06:50:19 +00:00
bouffalolab_release_bl_iot_sdk_1.6.37
Signed-off-by: qwang <qwang@bouffalolab.com>
This commit is contained in:
parent
e74d870483
commit
e51408c826
@ -1,6 +1,6 @@
|
||||
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -309,6 +309,12 @@ static u8_t mod_bind(struct bt_mesh_model *model, u16_t key_idx)
|
||||
return STATUS_INSUFF_RESOURCES;
|
||||
}
|
||||
|
||||
/* Add by bouffalolab */
|
||||
u8_t local_mod_bind(struct bt_mesh_model *model, u16_t key_idx)
|
||||
{
|
||||
return mod_bind(model, key_idx);
|
||||
}
|
||||
|
||||
static u8_t mod_unbind(struct bt_mesh_model *model, u16_t key_idx, bool store)
|
||||
{
|
||||
int i;
|
||||
|
@ -150,4 +150,39 @@ int bt_mesh_local_model_bind(u16_t net_idx, u16_t mod_app_idx)
|
||||
}
|
||||
}
|
||||
return err;
|
||||
}
|
||||
}
|
||||
|
||||
extern u8_t local_mod_bind(struct bt_mesh_model *model, u16_t key_idx);
|
||||
int bt_mesh_local_model_bind_direct(u16_t net_idx, u16_t mod_app_idx)
|
||||
{
|
||||
int i, j, err = 0;
|
||||
const struct bt_mesh_comp* dev_comp = bt_mesh_comp_get();
|
||||
u16_t addr = bt_mesh_primary_addr();
|
||||
u8_t status;
|
||||
|
||||
for (i = 0; i < dev_comp->elem_count; i++) {
|
||||
struct bt_mesh_elem *elem = &dev_comp->elem[i];
|
||||
|
||||
for (j = 0; j < elem->model_count; j++) {
|
||||
struct bt_mesh_model *model = &elem->models[j];
|
||||
|
||||
if(model->id == BT_MESH_MODEL_ID_CFG_CLI
|
||||
|| model->id == BT_MESH_MODEL_ID_CFG_SRV){
|
||||
continue;
|
||||
}
|
||||
err = local_mod_bind(model, mod_app_idx);
|
||||
if(err == STATUS_SUCCESS){
|
||||
BT_WARN("model bind status[%d]", err);
|
||||
}
|
||||
}
|
||||
|
||||
for (j = 0; j < elem->vnd_model_count; j++) {
|
||||
struct bt_mesh_model *model = &elem->vnd_models[j];
|
||||
err = local_mod_bind(model, mod_app_idx);
|
||||
if(err == STATUS_SUCCESS){
|
||||
BT_WARN("vendor bind status[%d]", err);
|
||||
}
|
||||
}
|
||||
}
|
||||
return err;
|
||||
}
|
||||
|
@ -29,6 +29,21 @@ int bt_mesh_model_unsubscribe_group_addr(u16_t elem_addr, u16_t cid,
|
||||
*/
|
||||
int bt_mesh_local_model_bind(u16_t net_idx, u16_t mod_app_idx);
|
||||
|
||||
/** @def bt_mesh_local_model_bind_direct
|
||||
*
|
||||
* @brief bind all local model to appkey, same as bt_mesh_local_model_bind.
|
||||
But don't use local loop.
|
||||
*
|
||||
* @note When appkey is added, use this function to quickly bind
|
||||
* all local model.
|
||||
*
|
||||
* @param net_idx The index of network key.
|
||||
* @param mod_app_idx The index of application key.
|
||||
*
|
||||
* @return 0[success],[!0] Error code.
|
||||
*/
|
||||
int bt_mesh_local_model_bind_direct(u16_t net_idx, u16_t mod_app_idx);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Binary file not shown.
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
Binary file not shown.
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
@ -45,55 +45,39 @@ int internel_cal_size_tx_hdr = sizeof(struct bl_txhdr);
|
||||
extern struct bl_hw wifi_hw;
|
||||
static struct bl_hw *bl_hw_static = &wifi_hw;
|
||||
|
||||
#ifndef ARRAY_LEN
|
||||
#define ARRAY_LEN(a) (sizeof(a) / sizeof((a)[0]))
|
||||
#endif
|
||||
|
||||
#if defined(CFG_CHIP_BL808)
|
||||
void bl_tx_push(struct bl_hw *bl_hw, struct bl_txhdr *txhdr)
|
||||
{
|
||||
volatile struct hostdesc *host;
|
||||
uint32_t* p = txhdr->p;
|
||||
uint32_t offset;
|
||||
uint32_t len;
|
||||
|
||||
struct txdesc_host *txdesc_host;
|
||||
volatile struct txdesc_host *txdesc_host;
|
||||
|
||||
//host = &(ipc_host_txdesc_get(bl_hw->ipc_env)->host);
|
||||
txdesc_host = ipc_host_txdesc_get(bl_hw->ipc_env);
|
||||
ASSERT_ERR(txdesc_host);//TODO protect when host is NULL
|
||||
host = &(txdesc_host->host);
|
||||
ASSERT_ERR(host);//TODO protect when host is NULL
|
||||
|
||||
{
|
||||
u8 *src, *dst;
|
||||
int i;
|
||||
dst = (typeof(dst))host;
|
||||
src = (typeof(src))&txhdr->host;
|
||||
for (i = 0; i < sizeof(*host) / sizeof(*src); i++) {
|
||||
*dst++ = *src++;
|
||||
memcpy((void *)host, &txhdr->host, sizeof(*host));
|
||||
|
||||
len = 0;
|
||||
for (size_t i = 0; i < ARRAY_LEN(host->pbuf_chained_len); ++i) {
|
||||
if (host->pbuf_chained_len[i] == 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
memcpy((uint8_t *)txdesc_host->eth_packet + len, (void *)host->pbuf_chained_ptr[i], host->pbuf_chained_len[i]);
|
||||
len += host->pbuf_chained_len[i];
|
||||
|
||||
offset = 0;
|
||||
if (host->pbuf_chained_len[0]) {
|
||||
memcpy(((uint8_t *)&(txdesc_host->eth_packet[0])) + offset, \
|
||||
host->pbuf_chained_ptr[0], host->pbuf_chained_len[0]);
|
||||
offset += host->pbuf_chained_len[0];
|
||||
}
|
||||
if (host->pbuf_chained_len[1]) {
|
||||
memcpy(((uint8_t *)&(txdesc_host->eth_packet[1])) + offset, \
|
||||
host->pbuf_chained_ptr[1], host->pbuf_chained_len[1]);
|
||||
offset += host->pbuf_chained_len[0];
|
||||
}
|
||||
if (host->pbuf_chained_len[2]) {
|
||||
memcpy(((uint8_t *)&(txdesc_host->eth_packet[2])) + offset, \
|
||||
host->pbuf_chained_ptr[2], host->pbuf_chained_len[2]);
|
||||
offset += host->pbuf_chained_len[2];
|
||||
}
|
||||
if (host->pbuf_chained_len[3]) {
|
||||
memcpy(((uint8_t *)&(txdesc_host->eth_packet[3])) + offset, \
|
||||
host->pbuf_chained_ptr[3], host->pbuf_chained_len[3]);
|
||||
offset += host->pbuf_chained_len[3];
|
||||
host->pbuf_chained_ptr[i] = 0;
|
||||
host->pbuf_chained_len[i] = 0;
|
||||
}
|
||||
host->pbuf_chained_ptr[0] = (uint32_t)(&(txdesc_host->eth_packet[0]));
|
||||
host->pbuf_chained_len[0] = offset;
|
||||
host->pbuf_chained_ptr[1] = 0;
|
||||
host->pbuf_chained_len[1] = 0;
|
||||
host->pbuf_chained_len[0] = len;
|
||||
|
||||
ipc_host_txdesc_push(bl_hw->ipc_env, p);
|
||||
#ifdef CFG_BL_STATISTIC
|
||||
@ -105,19 +89,13 @@ void bl_tx_push(struct bl_hw *bl_hw, struct bl_txhdr *txhdr)
|
||||
{
|
||||
volatile struct hostdesc *host;
|
||||
uint32_t* p = txhdr->p;
|
||||
volatile struct txdesc_host *txdesc_host;
|
||||
|
||||
host = &(ipc_host_txdesc_get(bl_hw->ipc_env)->host);
|
||||
ASSERT_ERR(host);//TODO protect when host is NULL
|
||||
txdesc_host = ipc_host_txdesc_get(bl_hw->ipc_env);
|
||||
ASSERT_ERR(txdesc_host);//TODO protect when host is NULL
|
||||
host = &(txdesc_host->host);
|
||||
|
||||
{
|
||||
u8 *src, *dst;
|
||||
int i;
|
||||
dst = (typeof(dst))host;
|
||||
src = (typeof(src))&txhdr->host;
|
||||
for (i = 0; i < sizeof(*host) / sizeof(*src); i++) {
|
||||
*dst++ = *src++;
|
||||
}
|
||||
}
|
||||
memcpy((void *)host, &txhdr->host, sizeof(*host));
|
||||
|
||||
ipc_host_txdesc_push(bl_hw->ipc_env, p);
|
||||
#ifdef CFG_BL_STATISTIC
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
@ -175,9 +175,9 @@ struct txdesc_host
|
||||
/// API of the embedded part
|
||||
struct hostdesc host;
|
||||
|
||||
uint32_t pad_txdesc[220/4];
|
||||
uint32_t pad_txdesc[204/4];
|
||||
|
||||
uint32_t pad_buf[512/4];
|
||||
uint32_t pad_buf[400/4];
|
||||
};
|
||||
|
||||
/// Structure containing the information about the PHY channel that is used
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,7 +1,7 @@
|
||||
# Component Makefile
|
||||
#
|
||||
## These include paths would be exported to project level
|
||||
COMPONENT_ADD_INCLUDEDIRS += bl602_hal platform_hal sec_common
|
||||
COMPONENT_ADD_INCLUDEDIRS += bl602_hal platform_hal
|
||||
|
||||
## not be exported to project level
|
||||
COMPONENT_PRIV_INCLUDEDIRS :=
|
||||
@ -27,7 +27,6 @@ COMPONENT_SRCS := bl602_hal/bl_uart.c \
|
||||
bl602_hal/hal_button.c \
|
||||
bl602_hal/bl_pwm.c \
|
||||
bl602_hal/bl_sec_aes.c \
|
||||
bl602_hal/bl_sec_sha.c \
|
||||
bl602_hal/bl_wifi.c \
|
||||
bl602_hal/bl_wdt.c \
|
||||
bl602_hal/bl_wdt_cli.c \
|
||||
@ -63,7 +62,9 @@ COMPONENT_SRCS := bl602_hal/bl_uart.c \
|
||||
bl602_hal/hosal_ota.c \
|
||||
bl602_hal/hosal_timer.c \
|
||||
bl602_hal/hosal_efuse.c \
|
||||
sec_common/bl_sec_sha.c \
|
||||
sec_common/bl_sec_pka.c \
|
||||
sec_common/bl_sec_aes.c \
|
||||
|
||||
COMPONENT_SRCDIRS := bl602_hal platform_hal sec_common
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Bouffalolab.
|
||||
* Copyright (c) 2016-2022 Bouffalolab.
|
||||
*
|
||||
* This file is part of
|
||||
* *** Bouffalolab Software Dev Kit ***
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user