Subversion Repositories DashDisplay

Rev

Rev 50 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 50 Rev 61
Line 711... Line 711...
711
#define PERIPH_BASE           (0x40000000UL)              /*!< Peripheral base address in the alias region */
711
#define PERIPH_BASE           (0x40000000UL)              /*!< Peripheral base address in the alias region */
712
#define FSMC_BASE             (0x60000000UL)              /*!< FSMC base address */
712
#define FSMC_BASE             (0x60000000UL)              /*!< FSMC base address */
713
#define FSMC_R_BASE           (0xA0000000UL)              /*!< FSMC registers base address */
713
#define FSMC_R_BASE           (0xA0000000UL)              /*!< FSMC registers base address */
714
#define SRAM_BB_BASE          (0x22000000UL)              /*!< SRAM base address in the bit-band region */
714
#define SRAM_BB_BASE          (0x22000000UL)              /*!< SRAM base address in the bit-band region */
715
#define PERIPH_BB_BASE        (0x42000000UL)              /*!< Peripheral base address in the bit-band region */
715
#define PERIPH_BB_BASE        (0x42000000UL)              /*!< Peripheral base address in the bit-band region */
-
 
716
#define FLASH_END             (0x0805FFFFUL)              /*!< Program end FLASH address for Cat4 */
716
#define FLASH_BANK2_BASE      (0x08030000UL)              /*!< FLASH BANK2 base address in the alias region */
717
#define FLASH_BANK2_BASE      (0x08030000UL)              /*!< FLASH BANK2 base address in the alias region */
717
#define FLASH_BANK1_END       (0x0802FFFFUL)              /*!< Program end FLASH BANK1 address */
718
#define FLASH_BANK1_END       (0x0802FFFFUL)              /*!< Program end FLASH BANK1 address */
718
#define FLASH_BANK2_END       (0x0805FFFFUL)              /*!< Program end FLASH BANK2 address */
719
#define FLASH_BANK2_END       (0x0805FFFFUL)              /*!< Program end FLASH BANK2 address */
719
#define FLASH_EEPROM_END      (0x08082FFFUL)              /*!< FLASH EEPROM end address  (12KB) */
720
#define FLASH_EEPROM_END      (0x08082FFFUL)              /*!< FLASH EEPROM end address  (12KB) */
720
 
721
 
Line 903... Line 904...
903
 
904
 
904
/** @addtogroup Exported_constants
905
/** @addtogroup Exported_constants
905
  * @{
906
  * @{
906
  */
907
  */
907
 
908
 
-
 
909
  /** @addtogroup Hardware_Constant_Definition
-
 
910
    * @{
-
 
911
    */
-
 
912
#define LSI_STARTUP_TIME 200U /*!< LSI Maximum startup time in us */
-
 
913
 
-
 
914
  /**
-
 
915
    * @}
-
 
916
    */
-
 
917
 
908
/** @addtogroup Peripheral_Registers_Bits_Definition
918
/** @addtogroup Peripheral_Registers_Bits_Definition
909
  * @{
919
  * @{
910
  */
920
  */
911
   
921
   
912
/******************************************************************************/
922
/******************************************************************************/
Line 3288... Line 3298...
3288
/*                                                                            */
3298
/*                                                                            */
3289
/*                FLASH, DATA EEPROM and Option Bytes Registers               */
3299
/*                FLASH, DATA EEPROM and Option Bytes Registers               */
3290
/*                        (FLASH, DATA_EEPROM, OB)                            */
3300
/*                        (FLASH, DATA_EEPROM, OB)                            */
3291
/*                                                                            */
3301
/*                                                                            */
3292
/******************************************************************************/
3302
/******************************************************************************/
-
 
3303
/*
-
 
3304
 * @brief Specific device feature definitions (not present on all devices in the STM32L1 serie)
-
 
3305
 */
-
 
3306
#define FLASH_CUT4
3293
 
3307
 
3294
/*******************  Bit definition for FLASH_ACR register  ******************/
3308
/*******************  Bit definition for FLASH_ACR register  ******************/
3295
#define FLASH_ACR_LATENCY_Pos                (0U)                              
3309
#define FLASH_ACR_LATENCY_Pos                (0U)                              
3296
#define FLASH_ACR_LATENCY_Msk                (0x1UL << FLASH_ACR_LATENCY_Pos)   /*!< 0x00000001 */
3310
#define FLASH_ACR_LATENCY_Msk                (0x1UL << FLASH_ACR_LATENCY_Pos)   /*!< 0x00000001 */
3297
#define FLASH_ACR_LATENCY                    FLASH_ACR_LATENCY_Msk             /*!< Latency */
3311
#define FLASH_ACR_LATENCY                    FLASH_ACR_LATENCY_Msk             /*!< Latency */
Line 3480... Line 3494...
3480
#define FSMC_BCRx_EXTMOD_Msk                (0x1UL << FSMC_BCRx_EXTMOD_Pos)     /*!< 0x00004000 */
3494
#define FSMC_BCRx_EXTMOD_Msk                (0x1UL << FSMC_BCRx_EXTMOD_Pos)     /*!< 0x00004000 */
3481
#define FSMC_BCRx_EXTMOD                    FSMC_BCRx_EXTMOD_Msk               /*!< Extended mode enable */
3495
#define FSMC_BCRx_EXTMOD                    FSMC_BCRx_EXTMOD_Msk               /*!< Extended mode enable */
3482
#define FSMC_BCRx_ASYNCWAIT_Pos             (15U)                              
3496
#define FSMC_BCRx_ASYNCWAIT_Pos             (15U)                              
3483
#define FSMC_BCRx_ASYNCWAIT_Msk             (0x1UL << FSMC_BCRx_ASYNCWAIT_Pos)  /*!< 0x00008000 */
3497
#define FSMC_BCRx_ASYNCWAIT_Msk             (0x1UL << FSMC_BCRx_ASYNCWAIT_Pos)  /*!< 0x00008000 */
3484
#define FSMC_BCRx_ASYNCWAIT                 FSMC_BCRx_ASYNCWAIT_Msk            /*!< Asynchronous wait */
3498
#define FSMC_BCRx_ASYNCWAIT                 FSMC_BCRx_ASYNCWAIT_Msk            /*!< Asynchronous wait */
-
 
3499
#define FSMC_BCRx_CPSIZE_Pos                (16U)                              
-
 
3500
#define FSMC_BCRx_CPSIZE_Msk                (0x7UL << FSMC_BCRx_CPSIZE_Pos)     /*!< 0x00070000 */
-
 
3501
#define FSMC_BCRx_CPSIZE                    FSMC_BCRx_CPSIZE_Msk               /*!< Cellular RAM page size */
-
 
3502
#define FSMC_BCRx_CPSIZE_0                  (0x1UL << FSMC_BCRx_CPSIZE_Pos)     /*!< 0x00010000 */
-
 
3503
#define FSMC_BCRx_CPSIZE_1                  (0x2UL << FSMC_BCRx_CPSIZE_Pos)     /*!< 0x00020000 */
-
 
3504
#define FSMC_BCRx_CPSIZE_2                  (0x4UL << FSMC_BCRx_CPSIZE_Pos)     /*!< 0x00040000 */
3485
#define FSMC_BCRx_CBURSTRW_Pos              (19U)                              
3505
#define FSMC_BCRx_CBURSTRW_Pos              (19U)                              
3486
#define FSMC_BCRx_CBURSTRW_Msk              (0x1UL << FSMC_BCRx_CBURSTRW_Pos)   /*!< 0x00080000 */
3506
#define FSMC_BCRx_CBURSTRW_Msk              (0x1UL << FSMC_BCRx_CBURSTRW_Pos)   /*!< 0x00080000 */
3487
#define FSMC_BCRx_CBURSTRW                  FSMC_BCRx_CBURSTRW_Msk             /*!< Write burst enable */
3507
#define FSMC_BCRx_CBURSTRW                  FSMC_BCRx_CBURSTRW_Msk             /*!< Write burst enable */
3488
 
3508
 
3489
/******************  Bit definition for FSMC_BTRx register (x=1..4)  ******************/
3509
/******************  Bit definition for FSMC_BTRx register (x=1..4)  ******************/
Line 6726... Line 6746...
6726
#define SYSCFG_EXTICR1_EXTI3_PA         (0x00000000U)                          /*!< PA[3] pin */
6746
#define SYSCFG_EXTICR1_EXTI3_PA         (0x00000000U)                          /*!< PA[3] pin */
6727
#define SYSCFG_EXTICR1_EXTI3_PB         (0x00001000U)                          /*!< PB[3] pin */
6747
#define SYSCFG_EXTICR1_EXTI3_PB         (0x00001000U)                          /*!< PB[3] pin */
6728
#define SYSCFG_EXTICR1_EXTI3_PC         (0x00002000U)                          /*!< PC[3] pin */
6748
#define SYSCFG_EXTICR1_EXTI3_PC         (0x00002000U)                          /*!< PC[3] pin */
6729
#define SYSCFG_EXTICR1_EXTI3_PD         (0x00003000U)                          /*!< PD[3] pin */
6749
#define SYSCFG_EXTICR1_EXTI3_PD         (0x00003000U)                          /*!< PD[3] pin */
6730
#define SYSCFG_EXTICR1_EXTI3_PE         (0x00004000U)                          /*!< PE[3] pin */
6750
#define SYSCFG_EXTICR1_EXTI3_PE         (0x00004000U)                          /*!< PE[3] pin */
6731
#define SYSCFG_EXTICR1_EXTI3_PF         (0x00003000U)                          /*!< PF[3] pin */
6751
#define SYSCFG_EXTICR1_EXTI3_PF         (0x00006000U)                          /*!< PF[3] pin */
6732
#define SYSCFG_EXTICR1_EXTI3_PG         (0x00004000U)                          /*!< PG[3] pin */
6752
#define SYSCFG_EXTICR1_EXTI3_PG         (0x00007000U)                          /*!< PG[3] pin */
6733
 
6753
 
6734
/*****************  Bit definition for SYSCFG_EXTICR2 register  *****************/
6754
/*****************  Bit definition for SYSCFG_EXTICR2 register  *****************/
6735
#define SYSCFG_EXTICR2_EXTI4_Pos        (0U)                                   
6755
#define SYSCFG_EXTICR2_EXTI4_Pos        (0U)                                   
6736
#define SYSCFG_EXTICR2_EXTI4_Msk        (0xFUL << SYSCFG_EXTICR2_EXTI4_Pos)     /*!< 0x0000000F */
6756
#define SYSCFG_EXTICR2_EXTI4_Msk        (0xFUL << SYSCFG_EXTICR2_EXTI4_Pos)     /*!< 0x0000000F */
6737
#define SYSCFG_EXTICR2_EXTI4            SYSCFG_EXTICR2_EXTI4_Msk               /*!< EXTI 4 configuration */
6757
#define SYSCFG_EXTICR2_EXTI4            SYSCFG_EXTICR2_EXTI4_Msk               /*!< EXTI 4 configuration */
Line 6902... Line 6922...
6902
#define SYSCFG_EXTICR4_EXTI15_PC        (0x00002000U)                          /*!< PC[15] pin */
6922
#define SYSCFG_EXTICR4_EXTI15_PC        (0x00002000U)                          /*!< PC[15] pin */
6903
#define SYSCFG_EXTICR4_EXTI15_PD        (0x00003000U)                          /*!< PD[15] pin */
6923
#define SYSCFG_EXTICR4_EXTI15_PD        (0x00003000U)                          /*!< PD[15] pin */
6904
#define SYSCFG_EXTICR4_EXTI15_PE        (0x00004000U)                          /*!< PE[15] pin */
6924
#define SYSCFG_EXTICR4_EXTI15_PE        (0x00004000U)                          /*!< PE[15] pin */
6905
#define SYSCFG_EXTICR4_EXTI15_PF        (0x00006000U)                          /*!< PF[15] pin */
6925
#define SYSCFG_EXTICR4_EXTI15_PF        (0x00006000U)                          /*!< PF[15] pin */
6906
#define SYSCFG_EXTICR4_EXTI15_PG        (0x00007000U)                          /*!< PG[15] pin */
6926
#define SYSCFG_EXTICR4_EXTI15_PG        (0x00007000U)                          /*!< PG[15] pin */
6907
 
6927
 
6908
/******************************************************************************/
6928
/******************************************************************************/
6909
/*                                                                            */
6929
/*                                                                            */
6910
/*                       Routing Interface (RI)                               */
6930
/*                       Routing Interface (RI)                               */
6911
/*                                                                            */
6931
/*                                                                            */
6912
/******************************************************************************/
6932
/******************************************************************************/