temp code

This commit is contained in:
hathach
2024-05-17 16:13:59 +07:00
parent ab5f276877
commit 5fee292606
5 changed files with 50 additions and 13 deletions

View File

@@ -1,8 +1,15 @@
#ifndef USB_CH32_USBFS_REG_H
#define USB_CH32_USBFS_REG_H
#if (CFG_TUSB_MCU == OPT_MCU_CH32V20X)
#if (CFG_TUSB_MCU == OPT_MCU_CH32V307)
#include <ch32v30x.h>
#define USBHD_IRQn OTG_FS_IRQn
#elif (CFG_TUSB_MCU == OPT_MCU_CH32V20X)
#include <ch32v20x.h>
#elif (CFG_TUSB_MCU == OPT_MCU_CH32F20X)
#include <ch32f20x.h>
#endif
// CTRL

View File

@@ -1,6 +1,6 @@
#include "tusb_option.h"
#if CFG_TUD_ENABLED && (CFG_TUSB_MCU == OPT_MCU_CH32V20X)
#if CFG_TUD_ENABLED && (CFG_TUSB_MCU == OPT_MCU_CH32V20X || CFG_TUSB_MCU == OPT_MCU_CH32V307)
#include <stdio.h>
#include "device/dcd.h"