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.
48 lines
1.6 KiB
48 lines
1.6 KiB
9 years ago
|
;********************************************************************************
|
||
9 years ago
|
; FILE : INI_CRC.S
|
||
|
; AUTHOR : Petr Dousa, Ondrej Hruska
|
||
|
; DATE : 10/2015
|
||
9 years ago
|
; DESCR : Control registers and bit masks for CRC (checksum generator)
|
||
9 years ago
|
;
|
||
9 years ago
|
; CRC calculation unit (CRC)
|
||
|
;
|
||
9 years ago
|
; Part of an assembler library for STM32L100, based on the STM32 CMSIS.
|
||
|
; Developed for educational purposes at the Department of Measure of CTU in Prague.
|
||
|
; See the LICENSE file for detailed terms of use.
|
||
9 years ago
|
;********************************************************************************
|
||
|
|
||
|
|
||
|
;****************************************************************************
|
||
9 years ago
|
;*
|
||
|
;* REGISTERS
|
||
|
;*
|
||
9 years ago
|
;****************************************************************************
|
||
|
|
||
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
|
|
||
9 years ago
|
CRC_DR_DR EQU 0xFFFFFFFF ; Data register bits
|
||
|
|
||
|
;****************** Bit definition for CRC_IDR register *******************
|
||
9 years ago
|
|
||
9 years ago
|
CRC_IDR_IDR EQU 0xFF ; General-purpose 8-bit data register bits
|
||
|
|
||
|
;******************* Bit definition for CRC_CR register *******************
|
||
9 years ago
|
|
||
9 years ago
|
CRC_CR_RESET EQU 0x00000001 ; RESET bit
|
||
|
|
||
|
END
|