Bootstrap and definition library for programming STM32L100RC in ARM assembler. This was a class project to learn ARM assembly
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.5 KiB

9 years ago
;********************************************************************************
; SOUBOR : INI_CRC.S
9 years ago
; AUTOR : Petr Dousa, Ondrej Hruska
; DATUM : 10/2015
; POPIS : Bitove masky ridicich registru pro CRC (checksum generator)
;
; CRC calculation unit (CRC)
;
9 years ago
; Toto je soucast knihovny pro STM32L100 vyvijene na Katedre mereni FEL CVUT.
;********************************************************************************
;****************************************************************************
;*
;* REGISTERS
;*
9 years ago
;****************************************************************************
; CRC module
CRC_DR EQU (_CRC + 0x00) ; CRC Data register,
CRC_IDR EQU (_CRC + 0x04) ; CRC Independent data register,
CRC_CR EQU (_CRC + 0x08) ; CRC Control register,
;****************************************************************************
;*
;* BIT MASKS AND DEFINITIONS
;*
;****************************************************************************
9 years ago
;****************** Bit definition for CRC_DR register ********************
9 years ago
CRC_DR_DR EQU 0xFFFFFFFF ; Data register bits
;****************** Bit definition for CRC_IDR register *******************
9 years ago
CRC_IDR_IDR EQU 0xFF ; General-purpose 8-bit data register bits
;******************* Bit definition for CRC_CR register *******************
9 years ago
CRC_CR_RESET EQU 0x00000001 ; RESET bit
END