Added missing USB registers.

master
Ondřej Hruška 9 years ago
parent 32bb59cec0
commit debca1da2f
  1. 1
      lib/INI_BASE.s
  2. 20
      lib/INI_USB.s

@ -68,6 +68,7 @@ _COMP EQU (_APB1 + 0x7C00) ; Analog Comparator base
_RI EQU (_APB1 + 0x7C04) ; Routing Interface base (analog pin connections) _RI EQU (_APB1 + 0x7C04) ; Routing Interface base (analog pin connections)
_OPAMP EQU (_APB1 + 0x7C5C) ; OpAmp config base _OPAMP EQU (_APB1 + 0x7C5C) ; OpAmp config base
_USB EQU (_APB1 + 0x5C00) ; USB registers base
; *** Peripheral Bus 2 devices *** ; *** Peripheral Bus 2 devices ***

@ -1,6 +1,6 @@
;******************************************************************************** ;********************************************************************************
; SOUBOR : INI_BITS_USB.S ; SOUBOR : INI_USB.S
; AUTOR : Petr Dousa, Ondrej Hruska ; AUTOR : Ondrej Hruska
; DATUM : 10/2015 ; DATUM : 10/2015
; POPIS : Bitove masky ridicich registru pro USB ; POPIS : Bitove masky ridicich registru pro USB
; ;
@ -16,7 +16,21 @@
;* ;*
;**************************************************************************** ;****************************************************************************
; TODO where are the registers?? USB_EP0R EQU (_USB + 0x00) ;USB endpoint n register
USB_EP1R EQU (_USB + 0x04)
USB_EP2R EQU (_USB + 0x08)
USB_EP3R EQU (_USB + 0x0C)
USB_EP4R EQU (_USB + 0x10)
USB_EP5R EQU (_USB + 0x14)
USB_EP6R EQU (_USB + 0x18)
USB_EP7R EQU (_USB + 0x1C)
USB_CNTR EQU (_USB + 0x40) ;USB control register
USB_ISTR EQU (_USB + 0x44) ;USB interrupt status register
USB_FNR EQU (_USB + 0x48) ;USB frame number register
USB_DADDR EQU (_USB + 0x4C) ;USB device address
USB_BTABLE EQU (_USB + 0x50) ;Buffer descriptor table (pointer to user's buffer description table)
;**************************************************************************** ;****************************************************************************

Loading…
Cancel
Save