From 745f0b4521a43c8f764b0bcac2d000b17f9aa1ac Mon Sep 17 00:00:00 2001 From: hathach Date: Wed, 27 Nov 2019 11:02:24 +0700 Subject: clean up --- src/portable/microchip/samg/dcd_samg.c | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/portable/microchip/samg/dcd_samg.c b/src/portable/microchip/samg/dcd_samg.c index d3028e605..9b9ebad7b 100644 --- a/src/portable/microchip/samg/dcd_samg.c +++ b/src/portable/microchip/samg/dcd_samg.c @@ -28,8 +28,8 @@ #if CFG_TUSB_MCU == OPT_MCU_SAMG -#include "device/dcd.h" #include "sam.h" +#include "device/dcd.h" //--------------------------------------------------------------------+ // MACRO TYPEDEF CONSTANT ENUM DECLARATION @@ -40,10 +40,22 @@ /* Device API *------------------------------------------------------------------*/ +// Set up endpoint 0, clear all other endpoints +//static void bus_reset(void) +//{ +// +//} + // Initialize controller to device mode void dcd_init (uint8_t rhport) { (void) rhport; + + + + + // Pull-up & Transceiver enable + UDP->UDP_TXVC = UDP_TXVC_PUON; } // Enable device interrupt @@ -116,4 +128,14 @@ void dcd_edpt_clear_stall (uint8_t rhport, uint8_t ep_addr) (void) ep_addr; } +//--------------------------------------------------------------------+ +// ISR +//--------------------------------------------------------------------+ +void dcd_isr(uint8_t rhport) +{ + (void) rhport; + + +} + #endif -- cgit v1.3.1