@.CHARSET CP1251

@ +----------------------------------------------------------+
@ |                   Определения DBGMCU (Глава 26)            |
@ |                     STM32F0x0                            |
@ +----------------------------------------------------------+

.INCLUDE "/src/inc/base.inc"

@.ITEM  APBPERIPH_BASE
.EQU  DBGMCU_BASE           , APBPERIPH_BASE + 0x15800
.EQU  DBGMCU                , PERIPH_BASE + DBGMCU_BASE
@.END

@.ITEM DBGMCU DBGMCU_BASE
.EQU DBGMCU_IDCODE, 0x00                               @ MCU device ID code
.EQU DBGMCU_CR, 0x04                                   @ Debug MCU configuration register
.EQU DBGMCU_APB1_FZ, 0x08                              @ Debug MCU APB1 freeze register
.EQU DBGMCU_APB2_FZ, 0x0C                              @ Debug MCU APB2 freeze register
@.END

@.ITEM DBGMCU_IDCODE
.EQU DBGMCU_IDCODE_REV_ID_N, 16                        @ REV_ID[15:0] Revision identifier
.EQU DBGMCU_IDCODE_DEV_ID_N, 0                         @ DEV_ID[11:0]: Device identifier
@.END

@.ITEM DBGMCU_CR
.EQU DBGMCU_CR_DBG_STANDBY, 1<<2                       @ Debug Standby mode
.EQU DBGMCU_CR_DBG_STOP, 1<<1                          @ Debug Stop mode
@.END

@.ITEM DBGMCU_APB1_FZ
.EQU DBGMCU_APB1_FZ_DBG_I2C1_SMBUS_TIMEOUT, 1<<21      @ SMBUS timeout mode stopped when core is halted
.EQU DBGMCU_APB1_FZ_DBG_IWDG_STOP, 1<<12               @ Debug independent watchdog stopped when core is halted
.EQU DBGMCU_APB1_FZ_DBG_WWDG_STOP, 1<<11               @ Debug window watchdog stopped when core is halted
.EQU DBGMCU_APB1_FZ_DBG_RTC_STOP, 1<<10                @ Debug RTC stopped when core is halted
.EQU DBGMCU_APB1_FZ_DBG_TIM14_STOP, 1<<8               @ TIM14 counter stopped when core is halted
.EQU DBGMCU_APB1_FZ_DBG_TIM7_STOP, 1<<5                @ TIM7 counter stopped when core is halted
.EQU DBGMCU_APB1_FZ_DBG_TIM6_STOP, 1<<4                @ TIM6 counter stopped when core is halted
.EQU DBGMCU_APB1_FZ_DBG_TIM3_STOP, 1<<1                @ TIM3 counter stopped when core is halted
@.END

@.ITEM DBGMCU_APB2_FZ
.EQU DBGMCU_APB2_FZ_DBG_TIM17_STOP, 1<<18              @ TIM17 counter stopped when core is halted
.EQU DBGMCU_APB2_FZ_DBG_TIM16_STOP, 1<<17              @ TIM16 counter stopped when core is halted
.EQU DBGMCU_APB2_FZ_DBG_TIM15_STOP, 1<<16              @ TIM15 counter stopped when core is halted
.EQU DBGMCU_APB2_FZ_DBG_TIM1_STOP, 1<<11               @ TIM1 counter stopped when core is halted
@.END


