Слияние кода завершено, страница обновится автоматически
/* STM8S103K.h */
/* Copyright (c) 2003-2016 STMicroelectronics */
#ifndef __STM8S103K__
#define __STM8S103K__
/* STM8S103K */
/* Check MCU name */
#ifdef MCU_NAME
#define STM8S103K 1
#if (MCU_NAME != STM8S103K)
#error "wrong include file STM8S103K.h for chosen MCU!"
#endif
#endif
#ifdef __CSMC__
#define DEF_8BIT_REG_AT(NAME,ADDRESS) volatile unsigned char NAME @ADDRESS
#define DEF_16BIT_REG_AT(NAME,ADDRESS) volatile unsigned int NAME @ADDRESS
#endif
#ifdef __RAISONANCE__
#define DEF_8BIT_REG_AT(NAME,ADDRESS) at ADDRESS hreg NAME
#define DEF_16BIT_REG_AT(NAME,ADDRESS) at ADDRESS hreg16 NAME
#endif
/* Port A */
/*****************************************************************/
/* Port A data output latch register */
DEF_8BIT_REG_AT(PA_ODR,0x5000);
/* Port A input pin value register */
DEF_8BIT_REG_AT(PA_IDR,0x5001);
/* Port A data direction register */
DEF_8BIT_REG_AT(PA_DDR,0x5002);
/* Port A control register 1 */
DEF_8BIT_REG_AT(PA_CR1,0x5003);
/* Port A control register 2 */
DEF_8BIT_REG_AT(PA_CR2,0x5004);
/* Port B */
/*****************************************************************/
/* Port B data output latch register */
DEF_8BIT_REG_AT(PB_ODR,0x5005);
/* Port B input pin value register */
DEF_8BIT_REG_AT(PB_IDR,0x5006);
/* Port B data direction register */
DEF_8BIT_REG_AT(PB_DDR,0x5007);
/* Port B control register 1 */
DEF_8BIT_REG_AT(PB_CR1,0x5008);
/* Port B control register 2 */
DEF_8BIT_REG_AT(PB_CR2,0x5009);
/* Port C */
/*****************************************************************/
/* Port C data output latch register */
DEF_8BIT_REG_AT(PC_ODR,0x500a);
/* Port C input pin value register */
DEF_8BIT_REG_AT(PC_IDR,0x500b);
/* Port C data direction register */
DEF_8BIT_REG_AT(PC_DDR,0x500c);
/* Port C control register 1 */
DEF_8BIT_REG_AT(PC_CR1,0x500d);
/* Port C control register 2 */
DEF_8BIT_REG_AT(PC_CR2,0x500e);
/* Port D */
/*****************************************************************/
/* Port D data output latch register */
DEF_8BIT_REG_AT(PD_ODR,0x500f);
/* Port D input pin value register */
DEF_8BIT_REG_AT(PD_IDR,0x5010);
/* Port D data direction register */
DEF_8BIT_REG_AT(PD_DDR,0x5011);
/* Port D control register 1 */
DEF_8BIT_REG_AT(PD_CR1,0x5012);
/* Port D control register 2 */
DEF_8BIT_REG_AT(PD_CR2,0x5013);
/* Port E */
/*****************************************************************/
/* Port E data output latch register */
DEF_8BIT_REG_AT(PE_ODR,0x5014);
/* Port E input pin value register */
DEF_8BIT_REG_AT(PE_IDR,0x5015);
/* Port E data direction register */
DEF_8BIT_REG_AT(PE_DDR,0x5016);
/* Port E control register 1 */
DEF_8BIT_REG_AT(PE_CR1,0x5017);
/* Port E control register 2 */
DEF_8BIT_REG_AT(PE_CR2,0x5018);
/* Port F */
/*****************************************************************/
/* Port F data output latch register */
DEF_8BIT_REG_AT(PF_ODR,0x5019);
/* Port F input pin value register */
DEF_8BIT_REG_AT(PF_IDR,0x501a);
/* Port F data direction register */
DEF_8BIT_REG_AT(PF_DDR,0x501b);
/* Port F control register 1 */
DEF_8BIT_REG_AT(PF_CR1,0x501c);
/* Port F control register 2 */
DEF_8BIT_REG_AT(PF_CR2,0x501d);
/* Flash */
/*****************************************************************/
/* Flash control register 1 */
DEF_8BIT_REG_AT(FLASH_CR1,0x505a);
/* Flash control register 2 */
DEF_8BIT_REG_AT(FLASH_CR2,0x505b);
/* Flash complementary control register 2 */
DEF_8BIT_REG_AT(FLASH_NCR2,0x505c);
/* Flash protection register */
DEF_8BIT_REG_AT(FLASH_FPR,0x505d);
/* Flash complementary protection register */
DEF_8BIT_REG_AT(FLASH_NFPR,0x505e);
/* Flash in-application programming status register */
DEF_8BIT_REG_AT(FLASH_IAPSR,0x505f);
/* Flash Program memory unprotection register */
DEF_8BIT_REG_AT(FLASH_PUKR,0x5062);
/* Data EEPROM unprotection register */
DEF_8BIT_REG_AT(FLASH_DUKR,0x5064);
/* External Interrupt Control Register (ITC) */
/*****************************************************************/
/* External interrupt control register 1 */
DEF_8BIT_REG_AT(EXTI_CR1,0x50a0);
/* External interrupt control register 2 */
DEF_8BIT_REG_AT(EXTI_CR2,0x50a1);
/* Reset (RST) */
/*****************************************************************/
/* Reset status register 1 */
DEF_8BIT_REG_AT(RST_SR,0x50b3);
/* Clock Control (CLK) */
/*****************************************************************/
/* Internal clock control register */
DEF_8BIT_REG_AT(CLK_ICKR,0x50c0);
/* External clock control register */
DEF_8BIT_REG_AT(CLK_ECKR,0x50c1);
/* Clock master status register */
DEF_8BIT_REG_AT(CLK_CMSR,0x50c3);
/* Clock master switch register */
DEF_8BIT_REG_AT(CLK_SWR,0x50c4);
/* Clock switch control register */
DEF_8BIT_REG_AT(CLK_SWCR,0x50c5);
/* Clock divider register */
DEF_8BIT_REG_AT(CLK_CKDIVR,0x50c6);
/* Peripheral clock gating register 1 */
DEF_8BIT_REG_AT(CLK_PCKENR1,0x50c7);
/* Clock security system register */
DEF_8BIT_REG_AT(CLK_CSSR,0x50c8);
/* Configurable clock control register */
DEF_8BIT_REG_AT(CLK_CCOR,0x50c9);
/* Peripheral clock gating register 2 */
DEF_8BIT_REG_AT(CLK_PCKENR2,0x50ca);
/* CAN clock control register */
DEF_8BIT_REG_AT(CLK_CANCCR,0x50cb);
/* HSI clock calibration trimming register */
DEF_8BIT_REG_AT(CLK_HSITRIMR,0x50cc);
/* SWIM clock control register */
DEF_8BIT_REG_AT(CLK_SWIMCCR,0x50cd);
/* Window Watchdog (WWDG) */
/*****************************************************************/
/* WWDG Control Register */
DEF_8BIT_REG_AT(WWDG_CR,0x50d1);
/* WWDR Window Register */
DEF_8BIT_REG_AT(WWDG_WR,0x50d2);
/* Independent Watchdog (IWDG) */
/*****************************************************************/
/* IWDG Key Register */
DEF_8BIT_REG_AT(IWDG_KR,0x50e0);
/* IWDG Prescaler Register */
DEF_8BIT_REG_AT(IWDG_PR,0x50e1);
/* IWDG Reload Register */
DEF_8BIT_REG_AT(IWDG_RLR,0x50e2);
/* Auto Wake-Up (AWU) */
/*****************************************************************/
/* AWU Control/Status Register */
DEF_8BIT_REG_AT(AWU_CSR,0x50f0);
/* AWU asynchronous prescaler buffer register */
DEF_8BIT_REG_AT(AWU_APR,0x50f1);
/* AWU Timebase selection register */
DEF_8BIT_REG_AT(AWU_TBR,0x50f2);
/* Beeper (BEEP) */
/*****************************************************************/
/* BEEP Control/Status Register */
DEF_8BIT_REG_AT(BEEP_CSR,0x50f3);
/* Serial Peripheral Interface (SPI) */
/*****************************************************************/
/* SPI Control Register 1 */
DEF_8BIT_REG_AT(SPI_CR1,0x5200);
/* SPI Control Register 2 */
DEF_8BIT_REG_AT(SPI_CR2,0x5201);
/* SPI Interrupt Control Register */
DEF_8BIT_REG_AT(SPI_ICR,0x5202);
/* SPI Status Register */
DEF_8BIT_REG_AT(SPI_SR,0x5203);
/* SPI Data Register */
DEF_8BIT_REG_AT(SPI_DR,0x5204);
/* SPI CRC Polynomial Register */
DEF_8BIT_REG_AT(SPI_CRCPR,0x5205);
/* SPI Rx CRC Register */
DEF_8BIT_REG_AT(SPI_RXCRCR,0x5206);
/* SPI Tx CRC Register */
DEF_8BIT_REG_AT(SPI_TXCRCR,0x5207);
/* I2C Bus Interface (I2C) */
/*****************************************************************/
/* I2C control register 1 */
DEF_8BIT_REG_AT(I2C_CR1,0x5210);
/* I2C control register 2 */
DEF_8BIT_REG_AT(I2C_CR2,0x5211);
/* I2C frequency register */
DEF_8BIT_REG_AT(I2C_FREQR,0x5212);
/* I2C Own address register low */
DEF_8BIT_REG_AT(I2C_OARL,0x5213);
/* I2C Own address register high */
DEF_8BIT_REG_AT(I2C_OARH,0x5214);
/* I2C data register */
DEF_8BIT_REG_AT(I2C_DR,0x5216);
/* I2C status register 1 */
DEF_8BIT_REG_AT(I2C_SR1,0x5217);
/* I2C status register 2 */
DEF_8BIT_REG_AT(I2C_SR2,0x5218);
/* I2C status register 3 */
DEF_8BIT_REG_AT(I2C_SR3,0x5219);
/* I2C interrupt control register */
DEF_8BIT_REG_AT(I2C_ITR,0x521a);
/* I2C Clock control register low */
DEF_8BIT_REG_AT(I2C_CCRL,0x521b);
/* I2C Clock control register high */
DEF_8BIT_REG_AT(I2C_CCRH,0x521c);
/* I2C TRISE register */
DEF_8BIT_REG_AT(I2C_TRISER,0x521d);
/* I2C packet error checking register */
DEF_8BIT_REG_AT(I2C_PECR,0x521e);
/* Universal synch/asynch receiver transmitter (UART1) */
/*****************************************************************/
/* UART1 Status Register */
DEF_8BIT_REG_AT(UART1_SR,0x5230);
/* UART1 Data Register */
DEF_8BIT_REG_AT(UART1_DR,0x5231);
/* UART1 Baud Rate Register 1 */
DEF_8BIT_REG_AT(UART1_BRR1,0x5232);
/* UART1 Baud Rate Register 2 */
DEF_8BIT_REG_AT(UART1_BRR2,0x5233);
/* UART1 Control Register 1 */
DEF_8BIT_REG_AT(UART1_CR1,0x5234);
/* UART1 Control Register 2 */
DEF_8BIT_REG_AT(UART1_CR2,0x5235);
/* UART1 Control Register 3 */
DEF_8BIT_REG_AT(UART1_CR3,0x5236);
/* UART1 Control Register 4 */
DEF_8BIT_REG_AT(UART1_CR4,0x5237);
/* UART1 Control Register 5 */
DEF_8BIT_REG_AT(UART1_CR5,0x5238);
/* UART1 Guard time Register */
DEF_8BIT_REG_AT(UART1_GTR,0x5239);
/* UART1 Prescaler Register */
DEF_8BIT_REG_AT(UART1_PSCR,0x523a);
/* 16-Bit Timer 1 (TIM1) */
/*****************************************************************/
/* TIM1 Control register 1 */
DEF_8BIT_REG_AT(TIM1_CR1,0x5250);
/* TIM1 Control register 2 */
DEF_8BIT_REG_AT(TIM1_CR2,0x5251);
/* TIM1 Slave Mode Control register */
DEF_8BIT_REG_AT(TIM1_SMCR,0x5252);
/* TIM1 external trigger register */
DEF_8BIT_REG_AT(TIM1_ETR,0x5253);
/* TIM1 Interrupt enable register */
DEF_8BIT_REG_AT(TIM1_IER,0x5254);
/* TIM1 Status register 1 */
DEF_8BIT_REG_AT(TIM1_SR1,0x5255);
/* TIM1 Status register 2 */
DEF_8BIT_REG_AT(TIM1_SR2,0x5256);
/* TIM1 Event Generation register */
DEF_8BIT_REG_AT(TIM1_EGR,0x5257);
/* TIM1 Capture/Compare mode register 1 */
DEF_8BIT_REG_AT(TIM1_CCMR1,0x5258);
/* TIM1 Capture/Compare mode register 2 */
DEF_8BIT_REG_AT(TIM1_CCMR2,0x5259);
/* TIM1 Capture/Compare mode register 3 */
DEF_8BIT_REG_AT(TIM1_CCMR3,0x525a);
/* TIM1 Capture/Compare mode register 4 */
DEF_8BIT_REG_AT(TIM1_CCMR4,0x525b);
/* TIM1 Capture/Compare enable register 1 */
DEF_8BIT_REG_AT(TIM1_CCER1,0x525c);
/* TIM1 Capture/Compare enable register 2 */
DEF_8BIT_REG_AT(TIM1_CCER2,0x525d);
/* TIM1 Counter */
DEF_16BIT_REG_AT(TIM1_CNTR,0x525e);
/* Data bits High */
DEF_8BIT_REG_AT(TIM1_CNTRH,0x525e);
/* Data bits Low */
DEF_8BIT_REG_AT(TIM1_CNTRL,0x525f);
/* TIM1 Prescaler register */
DEF_16BIT_REG_AT(TIM1_PSCR,0x5260);
/* Data bits High */
DEF_8BIT_REG_AT(TIM1_PSCRH,0x5260);
/* Data bits Low */
DEF_8BIT_REG_AT(TIM1_PSCRL,0x5261);
/* TIM1 Auto-reload register */
DEF_16BIT_REG_AT(TIM1_ARR,0x5262);
/* Data bits High */
DEF_8BIT_REG_AT(TIM1_ARRH,0x5262);
/* Data bits Low */
DEF_8BIT_REG_AT(TIM1_ARRL,0x5263);
/* TIM1 Repetition counter register */
DEF_8BIT_REG_AT(TIM1_RCR,0x5264);
/* TIM1 Capture/Compare register 1 */
DEF_16BIT_REG_AT(TIM1_CCR1,0x5265);
/* Data bits High */
DEF_8BIT_REG_AT(TIM1_CCR1H,0x5265);
/* Data bits Low */
DEF_8BIT_REG_AT(TIM1_CCR1L,0x5266);
/* TIM1 Capture/Compare register 2 */
DEF_16BIT_REG_AT(TIM1_CCR2,0x5267);
/* Data bits High */
DEF_8BIT_REG_AT(TIM1_CCR2H,0x5267);
/* Data bits Low */
DEF_8BIT_REG_AT(TIM1_CCR2L,0x5268);
/* TIM1 Capture/Compare register 3 */
DEF_16BIT_REG_AT(TIM1_CCR3,0x5269);
/* Data bits High */
DEF_8BIT_REG_AT(TIM1_CCR3H,0x5269);
/* Data bits Low */
DEF_8BIT_REG_AT(TIM1_CCR3L,0x526a);
/* TIM1 Capture/Compare register 4 */
DEF_16BIT_REG_AT(TIM1_CCR4,0x526b);
/* Data bits High */
DEF_8BIT_REG_AT(TIM1_CCR4H,0x526b);
/* Data bits Low */
DEF_8BIT_REG_AT(TIM1_CCR4L,0x526c);
/* TIM1 Break register */
DEF_8BIT_REG_AT(TIM1_BKR,0x526d);
/* TIM1 Dead-time register */
DEF_8BIT_REG_AT(TIM1_DTR,0x526e);
/* TIM1 Output idle state register */
DEF_8BIT_REG_AT(TIM1_OISR,0x526f);
/* 16-Bit Timer 2 (TIM2) */
/*****************************************************************/
/* TIM2 Control register 1 */
DEF_8BIT_REG_AT(TIM2_CR1,0x5300);
/* TIM2 Interrupt enable register */
DEF_8BIT_REG_AT(TIM2_IER,0x5303);
/* TIM2 Status register 1 */
DEF_8BIT_REG_AT(TIM2_SR1,0x5304);
/* TIM2 Status register 2 */
DEF_8BIT_REG_AT(TIM2_SR2,0x5305);
/* TIM2 Event Generation register */
DEF_8BIT_REG_AT(TIM2_EGR,0x5306);
/* TIM2 Capture/Compare mode register 1 */
DEF_8BIT_REG_AT(TIM2_CCMR1,0x5307);
/* TIM2 Capture/Compare mode register 2 */
DEF_8BIT_REG_AT(TIM2_CCMR2,0x5308);
/* TIM2 Capture/Compare mode register 3 */
DEF_8BIT_REG_AT(TIM2_CCMR3,0x5309);
/* TIM2 Capture/Compare enable register 1 */
DEF_8BIT_REG_AT(TIM2_CCER1,0x530a);
/* TIM2 Capture/Compare enable register 2 */
DEF_8BIT_REG_AT(TIM2_CCER2,0x530b);
/* TIM2 Counter */
DEF_16BIT_REG_AT(TIM2_CNTR,0x530c);
/* Data bits High */
DEF_8BIT_REG_AT(TIM2_CNTRH,0x530c);
/* Data bits Low */
DEF_8BIT_REG_AT(TIM2_CNTRL,0x530d);
/* TIM2 Prescaler register */
DEF_8BIT_REG_AT(TIM2_PSCR,0x530e);
/* TIM2 Auto-reload register */
DEF_16BIT_REG_AT(TIM2_ARR,0x530f);
/* Data bits High */
DEF_8BIT_REG_AT(TIM2_ARRH,0x530f);
/* Data bits Low */
DEF_8BIT_REG_AT(TIM2_ARRL,0x5310);
/* TIM2 Capture/Compare register 1 */
DEF_16BIT_REG_AT(TIM2_CCR1,0x5311);
/* Data bits High */
DEF_8BIT_REG_AT(TIM2_CCR1H,0x5311);
/* Data bits Low */
DEF_8BIT_REG_AT(TIM2_CCR1L,0x5312);
/* TIM2 Capture/Compare register 2 */
DEF_16BIT_REG_AT(TIM2_CCR2,0x5313);
/* Data bits High */
DEF_8BIT_REG_AT(TIM2_CCR2H,0x5313);
/* Data bits Low */
DEF_8BIT_REG_AT(TIM2_CCR2L,0x5314);
/* TIM2 Capture/Compare register 3 */
DEF_16BIT_REG_AT(TIM2_CCR3,0x5315);
/* Data bits High */
DEF_8BIT_REG_AT(TIM2_CCR3H,0x5315);
/* Data bits Low */
DEF_8BIT_REG_AT(TIM2_CCR3L,0x5316);
/* 8-Bit Timer 4 (TIM4) */
/*****************************************************************/
/* TIM4 Control register 1 */
DEF_8BIT_REG_AT(TIM4_CR1,0x5340);
/* TIM4 Interrupt enable register */
DEF_8BIT_REG_AT(TIM4_IER,0x5343);
/* TIM4 Status register */
DEF_8BIT_REG_AT(TIM4_SR,0x5344);
/* TIM4 Event Generation register */
DEF_8BIT_REG_AT(TIM4_EGR,0x5345);
/* TIM4 Counter */
DEF_8BIT_REG_AT(TIM4_CNTR,0x5346);
/* TIM4 Prescaler register */
DEF_8BIT_REG_AT(TIM4_PSCR,0x5347);
/* TIM4 Auto-reload register */
DEF_8BIT_REG_AT(TIM4_ARR,0x5348);
/* 10-Bit A/D Converter (ADC1) */
/*****************************************************************/
/* ADC Data buffer Register 0 */
DEF_16BIT_REG_AT(ADC_DB0R,0x53e0);
/* Data Buffer register 0 High */
DEF_8BIT_REG_AT(ADC_DB0RH,0x53e0);
/* Data Buffer register 0 Low */
DEF_8BIT_REG_AT(ADC_DB0RL,0x53e1);
/* ADC Data buffer Register 1 */
DEF_16BIT_REG_AT(ADC_DB1R,0x53e2);
/* Data Buffer register 1 High */
DEF_8BIT_REG_AT(ADC_DB1RH,0x53e2);
/* Data Buffer register 1 Low */
DEF_8BIT_REG_AT(ADC_DB1RL,0x53e3);
/* ADC Data buffer Register 2 */
DEF_16BIT_REG_AT(ADC_DB2R,0x53e4);
/* Data Buffer register 2 High */
DEF_8BIT_REG_AT(ADC_DB2RH,0x53e4);
/* Data Buffer register 2 Low */
DEF_8BIT_REG_AT(ADC_DB2RL,0x53e5);
/* ADC Data buffer Register 3 */
DEF_16BIT_REG_AT(ADC_DB3R,0x53e6);
/* Data Buffer register 3 High */
DEF_8BIT_REG_AT(ADC_DB3RH,0x53e6);
/* Data Buffer register 3 Low */
DEF_8BIT_REG_AT(ADC_DB3RL,0x53e7);
/* ADC Data buffer Register 4 */
DEF_16BIT_REG_AT(ADC_DB4R,0x53e8);
/* Data Buffer register 4 High */
DEF_8BIT_REG_AT(ADC_DB4RH,0x53e8);
/* Data Buffer register 4 Low */
DEF_8BIT_REG_AT(ADC_DB4RL,0x53e9);
/* ADC Data buffer Register 5 */
DEF_16BIT_REG_AT(ADC_DB5R,0x53ea);
/* Data Buffer register 5 High */
DEF_8BIT_REG_AT(ADC_DB5RH,0x53ea);
/* Data Buffer register 5 Low */
DEF_8BIT_REG_AT(ADC_DB5RL,0x53eb);
/* ADC Data buffer Register 6 */
DEF_16BIT_REG_AT(ADC_DB6R,0x53ec);
/* Data Buffer register 6 High */
DEF_8BIT_REG_AT(ADC_DB6RH,0x53ec);
/* Data Buffer register 6 Low */
DEF_8BIT_REG_AT(ADC_DB6RL,0x53ed);
/* ADC Data buffer Register 7 */
DEF_16BIT_REG_AT(ADC_DB7R,0x53ee);
/* Data Buffer register 7 High */
DEF_8BIT_REG_AT(ADC_DB7RH,0x53ee);
/* Data Buffer register 7 Low */
DEF_8BIT_REG_AT(ADC_DB7RL,0x53ef);
/* ADC Data buffer Register 8 */
DEF_16BIT_REG_AT(ADC_DB8R,0x53f0);
/* Data Buffer register 8 High */
DEF_8BIT_REG_AT(ADC_DB8RH,0x53f0);
/* Data Buffer register 8 Low */
DEF_8BIT_REG_AT(ADC_DB8RL,0x53f1);
/* ADC Data buffer Register 9 */
DEF_16BIT_REG_AT(ADC_DB9R,0x53f2);
/* Data Buffer register 9 High */
DEF_8BIT_REG_AT(ADC_DB9RH,0x53f2);
/* Data Buffer register 9 Low */
DEF_8BIT_REG_AT(ADC_DB9RL,0x53f3);
/* ADC Control/Status Register */
DEF_8BIT_REG_AT(ADC_CSR,0x5400);
/* ADC Configuration Register 1 */
DEF_8BIT_REG_AT(ADC_CR1,0x5401);
/* ADC Configuration Register 2 */
DEF_8BIT_REG_AT(ADC_CR2,0x5402);
/* ADC Configuration Register 3 */
DEF_8BIT_REG_AT(ADC_CR3,0x5403);
/* ADC Data Register */
DEF_16BIT_REG_AT(ADC_DR,0x5404);
/* Data bits High */
DEF_8BIT_REG_AT(ADC_DRH,0x5404);
/* Data bits Low */
DEF_8BIT_REG_AT(ADC_DRL,0x5405);
/* ADC Schmitt Trigger Disable Register */
DEF_16BIT_REG_AT(ADC_TDR,0x5406);
/* Schmitt trigger disable High */
DEF_8BIT_REG_AT(ADC_TDRH,0x5406);
/* Schmitt trigger disable Low */
DEF_8BIT_REG_AT(ADC_TDRL,0x5407);
/* ADC High Threshold Register */
DEF_16BIT_REG_AT(ADC_HTR,0x5408);
/* High Threshold Register High */
DEF_8BIT_REG_AT(ADC_HTRH,0x5408);
/* High Threshold Register Low */
DEF_8BIT_REG_AT(ADC_HTRL,0x5409);
/* ADC Low Threshold Register */
DEF_16BIT_REG_AT(ADC_LTR,0x540a);
/* Low Threshold Register High */
DEF_8BIT_REG_AT(ADC_LTRH,0x540a);
/* Low Threshold Register Low */
DEF_8BIT_REG_AT(ADC_LTRL,0x540b);
/* ADC Analog Watchdog Status Register */
DEF_16BIT_REG_AT(ADC_AWSR,0x540c);
/* Analog Watchdog Status register High */
DEF_8BIT_REG_AT(ADC_AWSRH,0x540c);
/* Analog Watchdog Status register Low */
DEF_8BIT_REG_AT(ADC_AWSRL,0x540d);
/* ADC Analog Watchdog Control Register */
DEF_16BIT_REG_AT(ADC_AWCR,0x540e);
/* Analog Watchdog Control register High */
DEF_8BIT_REG_AT(ADC_AWCRH,0x540e);
/* Analog Watchdog Control register Low */
DEF_8BIT_REG_AT(ADC_AWCRL,0x540f);
/* Global configuration register (CFG) */
/*****************************************************************/
/* CFG Global configuration register */
DEF_8BIT_REG_AT(CFG_GCR,0x7f60);
/* Interrupt Software Priority Register (ITC) */
/*****************************************************************/
/* Interrupt Software priority register 1 */
DEF_8BIT_REG_AT(ITC_SPR1,0x7f70);
/* Interrupt Software priority register 2 */
DEF_8BIT_REG_AT(ITC_SPR2,0x7f71);
/* Interrupt Software priority register 3 */
DEF_8BIT_REG_AT(ITC_SPR3,0x7f72);
/* Interrupt Software priority register 4 */
DEF_8BIT_REG_AT(ITC_SPR4,0x7f73);
/* Interrupt Software priority register 5 */
DEF_8BIT_REG_AT(ITC_SPR5,0x7f74);
/* Interrupt Software priority register 6 */
DEF_8BIT_REG_AT(ITC_SPR6,0x7f75);
/* Interrupt Software priority register 7 */
DEF_8BIT_REG_AT(ITC_SPR7,0x7f76);
#endif /* __STM8S103K__ */
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )