A Low_Cost DAPLink Based On CH32X033F8P6
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

29 lines
425 B

#include "main.h"
#include "dap_main.h"
#include "cdc_main.h"
#include "usb_desc.h"
#include "usart.h"
#include "led.h"
int main(void)
{
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
SystemCoreClockUpdate();
DAP_Init();
DAP_USB_Init();
CDC_Init();
USART4_DMA_Init();
USART4_Init();
USART4_DMA_Recv();
LED_Init();
while (1)
{
DAP_Task();
CDC_Task();
}
}