esp32s2_bare_board/managed_components/cherry-embedded__cherryusb/common/usb_dcache.h
impressionyang b0e0ddebf4 feat: 修改u8g2移植配置中的I2C速率至400KHz
feat: 添加线程资源打印功能
fix🐛: 修复USB未启用其他线程卡死问题,是USB写入循环阻塞所致
feat: 升级cherryUSB,使用官方方式集成至ESP32
2025-03-22 16:56:52 +08:00

20 lines
404 B
C

/*
* Copyright (c) 2024, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef USB_DCACHE_H
#define USB_DCACHE_H
#ifdef CONFIG_USB_DCACHE_ENABLE
#if CONFIG_USB_ALIGN_SIZE % 32
#error "CONFIG_USB_ALIGN_SIZE must be multiple of 32"
#endif
#else
#define usb_dcache_clean(addr, size)
#define usb_dcache_invalidate(addr, size)
#define usb_dcache_flush(addr, size)
#endif
#endif /* USB_DCACHE_H */