summaryrefslogtreecommitdiff
path: root/src/class/bth
diff options
context:
space:
mode:
authorhathach <[email protected]>2024-11-21 17:49:38 +0700
committerhathach <[email protected]>2024-11-21 17:49:38 +0700
commitdbdc5a239c42e96eeeb8759a121798fa9b3f39c3 (patch)
tree0e5dadec079b5509ba5f9a5770092001b87f76b6 /src/class/bth
parent5d77faa835ab7faf73a9981905e57e8d79920d2d (diff)
- move freertos_hooks to board.c
- add device/midi_test_freertos example - update bth/dfu/midi device for cache line size
Diffstat (limited to 'src/class/bth')
-rwxr-xr-xsrc/class/bth/bth_device.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/class/bth/bth_device.c b/src/class/bth/bth_device.c
index a79908627..ea577db03 100755
--- a/src/class/bth/bth_device.c
+++ b/src/class/bth/bth_device.c
@@ -51,8 +51,14 @@ typedef struct
uint32_t prev_xferred_bytes;
// Endpoint Transfer buffer
- CFG_TUSB_MEM_ALIGN bt_hci_cmd_t hci_cmd;
- CFG_TUSB_MEM_ALIGN uint8_t epout_buf[CFG_TUD_BTH_DATA_EPSIZE];
+ union {
+ CFG_TUD_MEM_ALIGN bt_hci_cmd_t hci_cmd;
+ TUD_DCACHE_PADDING;
+ };
+ union {
+ CFG_TUD_MEM_ALIGN uint8_t epout_buf[CFG_TUD_BTH_DATA_EPSIZE];
+ TUD_DCACHE_PADDING;
+ };
} btd_interface_t;