Introduce a Makefile for the OS_NONE device example

It currently supports the SAMD21 and SAMD51 only. More will be
added later.
This commit is contained in:
Scott Shawcroft
2018-11-24 10:55:51 -08:00
parent 3bb53273cd
commit bf70f89240
16 changed files with 548 additions and 19 deletions

View File

@@ -71,13 +71,6 @@ static void bus_reset(void) {
*------------------------------------------------------------------*/
bool dcd_init (uint8_t rhport)
{
// Reset to get in a clean state.
USB->DEVICE.CTRLA.bit.SWRST = true;
while (USB->DEVICE.SYNCBUSY.bit.SWRST == 0) {
}
while (USB->DEVICE.SYNCBUSY.bit.SWRST == 1) {}
(void) rhport;
USB->DEVICE.DESCADD.reg = (uint32_t) &sram_registers;
USB->DEVICE.CTRLB.reg = USB_DEVICE_CTRLB_SPDCONF_FS;