mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-24 13:43:38 +00:00
chipset: assert hci packet buffers are suitable for firmware upload or patches (atwilc3000,bcm,cc256x,intel)
This commit is contained in:
parent
1cd2cf6ccf
commit
7a4d61a383
@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
||||
### Added
|
||||
GATT Client: allow to register for any notification/indication and/or any connection
|
||||
hci_cmd: added hci_read_inquiry_scan_activity and hci_write_inquiry_scan_activity
|
||||
chipset: assert hci packet buffers are suitable for firmware upload or patches (atwilc3000,bcm,cc256x,intel)
|
||||
|
||||
### Changed
|
||||
- AVRCP Target: volume in avrcp_target_volume_changed is reported as current value in interim response to register for volume change notifications
|
||||
|
@ -35,6 +35,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#define BTSTACK_FILE__ "btstack_chipset_atwilc3000.c"
|
||||
|
||||
/*
|
||||
* btstack_chipset_atwilc3000.c
|
||||
*
|
||||
@ -42,18 +44,24 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#define BTSTACK_FILE__ "btstack_chipset_atwilc3000.c"
|
||||
|
||||
#include "btstack_config.h"
|
||||
#include "btstack_chipset_atwilc3000.h"
|
||||
#include "btstack_debug.h"
|
||||
|
||||
|
||||
#include <stddef.h> /* NULL */
|
||||
#include <stdio.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h> /* memcpy */
|
||||
|
||||
#include "btstack_chipset_atwilc3000.h"
|
||||
#include "btstack_debug.h"
|
||||
#include "hci.h"
|
||||
|
||||
// assert outgoing and incoming hci packet buffers can hold max hci command resp. event packet
|
||||
#if HCI_OUTGOING_PACKET_BUFFER_SIZE < (HCI_CMD_HEADER_SIZE + 255)
|
||||
#error "HCI_OUTGOING_PACKET_BUFFER_SIZE to small. Outgoing HCI packet buffer to small for largest HCI Command packet. Please set HCI_ACL_PAYLOAD_SIZE to 258 or higher."
|
||||
#endif
|
||||
#if HCI_INCOMING_PACKET_BUFFER_SIZE < (HCI_EVENT_HEADER_SIZE_HEADER_SIZE + 255)
|
||||
#error "HCI_INCOMING_PACKET_BUFFER_SIZE to small. Incoming HCI packet buffer to small for largest HCI Event packet. Please set HCI_ACL_PAYLOAD_SIZE to 257 or higher."
|
||||
#endif
|
||||
|
||||
// Address to load firmware
|
||||
#define IRAM_START 0x80000000
|
||||
|
||||
|
@ -52,6 +52,7 @@
|
||||
#include "btstack_control.h"
|
||||
#include "btstack_debug.h"
|
||||
#include "btstack_chipset_bcm.h"
|
||||
#include "hci.h"
|
||||
|
||||
#ifdef HAVE_POSIX_FILE_IO
|
||||
#include <ctype.h>
|
||||
@ -64,6 +65,14 @@
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
|
||||
// assert outgoing and incoming hci packet buffers can hold max hci command resp. event packet
|
||||
#if HCI_OUTGOING_PACKET_BUFFER_SIZE < (HCI_CMD_HEADER_SIZE + 255)
|
||||
#error "HCI_OUTGOING_PACKET_BUFFER_SIZE to small. Outgoing HCI packet buffer to small for largest HCI Command packet. Please set HCI_ACL_PAYLOAD_SIZE to 258 or higher."
|
||||
#endif
|
||||
#if HCI_INCOMING_PACKET_BUFFER_SIZE < (HCI_EVENT_HEADER_SIZE_HEADER_SIZE + 255)
|
||||
#error "HCI_INCOMING_PACKET_BUFFER_SIZE to small. Incoming HCI packet buffer to small for largest HCI Event packet. Please set HCI_ACL_PAYLOAD_SIZE to 257 or higher."
|
||||
#endif
|
||||
|
||||
static int send_download_command;
|
||||
static uint32_t init_script_offset;
|
||||
|
||||
|
@ -64,11 +64,20 @@
|
||||
#include "btstack_config.h"
|
||||
#include "btstack_chipset_cc256x.h"
|
||||
#include "btstack_debug.h"
|
||||
#include "hci.h"
|
||||
|
||||
#include <stddef.h> /* NULL */
|
||||
#include <stdio.h>
|
||||
#include <string.h> /* memcpy */
|
||||
|
||||
// assert outgoing and incoming hci packet buffers can hold max hci command resp. event packet
|
||||
#if HCI_OUTGOING_PACKET_BUFFER_SIZE < (HCI_CMD_HEADER_SIZE + 255)
|
||||
#error "HCI_OUTGOING_PACKET_BUFFER_SIZE to small. Outgoing HCI packet buffer to small for largest HCI Command packet. Please set HCI_ACL_PAYLOAD_SIZE to 258 or higher."
|
||||
#endif
|
||||
#if HCI_INCOMING_PACKET_BUFFER_SIZE < (HCI_EVENT_HEADER_SIZE_HEADER_SIZE + 255)
|
||||
#error "HCI_INCOMING_PACKET_BUFFER_SIZE to small. Incoming HCI packet buffer to small for largest HCI Event packet. Please set HCI_ACL_PAYLOAD_SIZE to 257 or higher."
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__) && defined(__MSP430X__) && (__MSP430X__ > 0)
|
||||
#include "hal_compat.h"
|
||||
#endif
|
||||
|
@ -42,13 +42,23 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#include "btstack_chipset_intel_firmware.h"
|
||||
#include "hci_cmd.h"
|
||||
|
||||
#include "bluetooth.h"
|
||||
#include "hci_dump.h"
|
||||
#include "btstack_event.h"
|
||||
#include "btstack_debug.h"
|
||||
#include "btstack_util.h"
|
||||
#include "btstack_event.h"
|
||||
#include "btstack_run_loop.h"
|
||||
#include "btstack_util.h"
|
||||
#include "hci.h"
|
||||
#include "hci_cmd.h"
|
||||
#include "hci_dump.h"
|
||||
|
||||
// assert outgoing and incoming hci packet buffers can hold max hci command resp. event packet
|
||||
#if HCI_OUTGOING_PACKET_BUFFER_SIZE < (HCI_CMD_HEADER_SIZE + 255)
|
||||
#error "HCI_OUTGOING_PACKET_BUFFER_SIZE to small. Outgoing HCI packet buffer to small for largest HCI Command packet. Please set HCI_ACL_PAYLOAD_SIZE to 258 or higher."
|
||||
#endif
|
||||
#if HCI_INCOMING_PACKET_BUFFER_SIZE < (HCI_EVENT_HEADER_SIZE_HEADER_SIZE + 255)
|
||||
#error "HCI_INCOMING_PACKET_BUFFER_SIZE to small. Incoming HCI packet buffer to small for largest HCI Event packet. Please set HCI_ACL_PAYLOAD_SIZE to 257 or higher."
|
||||
#endif
|
||||
|
||||
// Vendor specific structs
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user