feat: add profiled DualSense PCM haptics experiment

This commit is contained in:
Joey Yakimowich-Payne 2026-09-05 12:03:34 -06:00
commit 0c626fb3b3
29 changed files with 4469 additions and 5 deletions

View file

@ -0,0 +1,19 @@
#include <btstack.h>
#include <cyw43.h>
extern int (*native_write)(uint8_t*, size_t);
extern int (*native_read)(uint8_t*, uint32_t, uint32_t*);
extern void (*native_poll)();
// Keep definitions separate from test callers, just like the real SDK. Tests
// exercise GNU ld --wrap, not direct calls to the __wrap_ implementation.
extern "C" int cyw43_bluetooth_hci_write(uint8_t* buffer, size_t length) {
return native_write(buffer, length);
}
extern "C" int cyw43_bluetooth_hci_read(uint8_t* buffer, uint32_t capacity,
uint32_t* length) {
return native_read(buffer, capacity, length);
}
extern "C" void btstack_run_loop_base_poll_data_sources() {
native_poll();
}