Microchip® Advanced Software Framework

usb_dual.c File Reference

SAM USB Dual Role driver file.

Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.

#include <compiler.h>
#include "usb_dual.h"
#include <uhc.h>

Macros

#define _usb_is_id_device()   port_pin_get_input_level(USB_ID_PIN)
 
#define udc_start()
 
#define udc_stop()
 

Functions

void usb_dual_disable (void)
 Deinitialize the dual role driver. More...
 
bool usb_dual_enable (void)
 Initialize the USB peripheral and set right role according to ID pin. More...
 

Variables

static bool _initialized = false
 

#define _usb_is_id_device ( )    port_pin_get_input_level(USB_ID_PIN)

Referenced by usb_dual_enable().

#define udc_start ( )

Referenced by usb_dual_enable().

#define udc_stop ( )

bool _initialized = false
static