aboutsummaryrefslogtreecommitdiff
path: root/AT91SAM7S256/Source/d_usb.r
diff options
context:
space:
mode:
authorNicolas Schodet2023-03-06 17:36:31 +0100
committerNicolas Schodet2023-03-06 17:36:31 +0100
commitd383f2bcdb6ff13cc562fce1ff55d826035debad (patch)
treef5cd0440869b8ba823fd254b361cdefe95e153b4 /AT91SAM7S256/Source/d_usb.r
parent8fce63fda48a6593870ffd3c584c9dd0808bc2c2 (diff)
Simplify source tree
Now just use make in the root directory to build.
Diffstat (limited to 'AT91SAM7S256/Source/d_usb.r')
-rw-r--r--AT91SAM7S256/Source/d_usb.r65
1 files changed, 0 insertions, 65 deletions
diff --git a/AT91SAM7S256/Source/d_usb.r b/AT91SAM7S256/Source/d_usb.r
deleted file mode 100644
index 6c7a0c3..0000000
--- a/AT91SAM7S256/Source/d_usb.r
+++ /dev/null
@@ -1,65 +0,0 @@
-//
-// Programmer
-//
-// Date init 14.12.2004
-//
-// Reviser $Author:: Dkandlun $
-//
-// Revision date $Date:: 14-11-07 12:40 $
-//
-// Filename $Workfile:: d_usb.r $
-//
-// Version $Revision:: 1 $
-//
-// Archive $Archive:: /LMS2006/Sys01/Main_V02/Firmware/Source/d_usb. $
-//
-// Platform C
-//
-
-#ifdef SAM7S256
-
-#ifdef PROTOTYPE_PCB_3
-#define ENABLEUsbPU *AT91C_PIOA_PER = AT91C_PIO_PA16; /* PIO allowed to control bit 16 */\
- *AT91C_PIOA_OER = AT91C_PIO_PA16; /* Output pin 16 enabled */\
- *AT91C_PIOA_SODR = AT91C_PIO_PA16 /* Pin 16 set = enable USB pull-up */
-#endif
-
-#ifdef PROTOTYPE_PCB_4
-#define ENABLEUsbPU *AT91C_PIOA_PER = AT91C_PIO_PA16; /* PIO allowed to control bit 16 */\
- *AT91C_PIOA_OER = AT91C_PIO_PA16; /* Output pin 16 enabled */\
- *AT91C_PIOA_CODR = AT91C_PIO_PA16 /* Pin 16 clear = enable USB pull-up */
-
-#define DISABLEUsbPU *AT91C_PIOA_PER = AT91C_PIO_PA16; /* PIO allowed to control bit 16 */\
- *AT91C_PIOA_OER = AT91C_PIO_PA16; /* Output pin 16 enabled */\
- *AT91C_PIOA_SODR = AT91C_PIO_PA16 /* Pin 16 set = disable USB pull-up */
-#endif
-
-
-#define USBHwInit *AT91C_CKGR_PLLR |= AT91C_CKGR_USBDIV_1; /* Set the PLL USB Divider (96MHz/2) */\
- *AT91C_PMC_SCER = AT91C_PMC_UDP; /* WRITE-ONLY REG! Enables the 48MHz USB clock UDPCK (SysClk) */\
- *AT91C_PMC_PCER = (1 << AT91C_ID_UDP); /* WRITE-ONLY REG! Enable USB clock (Peripheral Clock) */\
- \
- /* Enable UDP PullUp (USB_DP_PUP) : enable & Clear of the corresponding PIO */ \
- \
- /* Removed 22022006 14:20 pc ENABLEUsbPU BlueCore delay , No pull up before OK serial-no rec. from B.C.*/
-
-
-static ULONG USBTimeOut;
-
-#define USBTimedOut (USB_TIMEOUT < ((((*AT91C_PITC_PIIR) & AT91C_PITC_CPIV) - USBTimeOut) & AT91C_PITC_CPIV))
-
-#define USBGetActualTime USBTimeOut = ((*AT91C_PITC_PIIR) & AT91C_PITC_CPIV)
-
-#define USBReadADCValue(ADValue) *ADValue = *AT91C_ADC_CDR4
-
-#define USBExit
-
-#define USBDisconnect DISABLEUsbPU
-
-#define USBConnect ENABLEUsbPU
-
-#endif
-
-#ifdef PCWIN
-
-#endif