bluekitchen / btstack

Dual-mode Bluetooth stack, with small memory footprint.
http://bluekitchen-gmbh.com
Other
1.69k stars 607 forks source link

Remove force baudrate to 3000000 for broadcom chipsets #595

Closed amorniroli closed 4 months ago

amorniroli commented 4 months ago

Is your feature request related to a problem? Please describe. Not really a problem.

Describe the solution you'd like There is a limitation in hci.c which is forcing baudrate to 3000000 mbps for broadcom chipsets. In my case (CYW20706), I have no problems with DMA and 4000000 baudrate mbps.

image

I'd like to have this limitation put under a configuration define.

Describe alternatives you've considered /

Additional context /

Best regards,

Alessandro

mringwal commented 4 months ago

Hi Alessandro. That limitation is rather historic. I think some older chipsets fail to upload the PatchRAMat 4 mbps. Anyway, as none of the examples ports use 4 mbps by default and the main baud rate is set by the application/port, I've just removed the code (until someone shows up with a realistic use case for this). If it's needed in the future (for yet unknown reasons), we'll add a compile time flag that's needed to enable it.

Fix/Removed on develop branch