| | |
| | | * @FileName : bb_def.h |
| | | * @Author : GaoQiu |
| | | * @CreateDate: 2020-09-10 |
| | | * @Copyright : Copyright(C) GaoQiu |
| | | * @Copyright : Copyright(C) PanChip |
| | | * All Rights Reserved. |
| | | * |
| | | ******************************************************************************* |
| | | * |
| | | * The information contained herein is confidential and proprietary property of |
| | | * GaoQiu and is available under the terms of Commercial License Agreement |
| | | * between GaoQiu and the licensee in separate contract or the terms described |
| | | * PanChip and is available under the terms of Commercial License Agreement |
| | | * between PanChip and the licensee in separate contract or the terms described |
| | | * here-in. |
| | | * |
| | | * This heading MUST NOT be removed from this file. |
| | |
| | | #define BB_SEQ_RAM_BASE (BB_BASE + 0x1000) |
| | | #define BB_LIST_RAM_BASE (BB_BASE + 0x8000) /* 512B */ |
| | | //#define BB_TX_RX_BUF_BASE (BB_BASE + 0x8200) /* 7.5K + 8K for BB TX/RX Buffer */ |
| | | #define BB_TX_RX_BUF_BASE (BB_BASE + 0x8100) /* 7.5K + 8K for BB TX/RX Buffer */ |
| | | //#define BB_TX_RX_BUF_BASE (BB_BASE + 0x8100) /* 7.5K + 8K for BB TX/RX Buffer */ |
| | | |
| | | #define BB_REG32(addr) (*((volatile uint32_t *)(BB_BASE + addr))) |
| | | #define RCC_REG32(addr) (*((volatile uint32_t *)(RCC_BASE + addr))) |
| | |
| | | |
| | | // For BLE ADV PDU filter module |
| | | #define BB_ADV_PDU_FLTR_CTRL_ADDR 0x940 |
| | | enum{ |
| | | BB_ADV_TYPE_FLTR_EN_Pos = 17, |
| | | #define BB_ADV_TYPE_FLTR_EN_Mask (1ul << BB_ADV_TYPE_FLTR_EN_Pos) |
| | | |
| | | BB_ADV_PDU_FLTR_EN_Pos = 16, |
| | | #define BB_ADV_PDU_FLTR_EN_Mask (1ul << BB_ADV_PDU_FLTR_EN_Pos) |
| | | |
| | | BB_ADV_PDU_FLTR_MSK_Pos = 0, |
| | | #define BB_ADV_PDU_FLTR_MSK_Mask (0xFFFF) |
| | | }; |
| | | #define BB_ADV_PDU_FLTR0_ADDR 0x944 // Format: ADV Data Type | AD Length |
| | | #define BB_ADV_PDU_FLTR1_ADDR 0x948 // Format: ADV Data Type | AD Length |
| | | #define BB_ADV_PDU_FLTR2_ADDR 0x94C // Format: ADV Data Type | AD Length |