feat: add profiled DualSense PCM haptics experiment
This commit is contained in:
parent
3b1366067b
commit
0c626fb3b3
29 changed files with 4469 additions and 5 deletions
19
tests/haptics_transport_probe_native_stubs/sdk.cpp
Normal file
19
tests/haptics_transport_probe_native_stubs/sdk.cpp
Normal 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();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue