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 675... Line 675...
675
#define PERIPH_BASE           (0x40000000UL)              /*!< Peripheral base address in the alias region */
675
#define PERIPH_BASE           (0x40000000UL)              /*!< Peripheral base address in the alias region */
676
#define FSMC_BASE             (0x60000000UL)              /*!< FSMC base address */
676
#define FSMC_BASE             (0x60000000UL)              /*!< FSMC base address */
677
#define FSMC_R_BASE           (0xA0000000UL)              /*!< FSMC registers base address */
677
#define FSMC_R_BASE           (0xA0000000UL)              /*!< FSMC registers base address */
678
#define SRAM_BB_BASE          (0x22000000UL)              /*!< SRAM base address in the bit-band region */
678
#define SRAM_BB_BASE          (0x22000000UL)              /*!< SRAM base address in the bit-band region */
679
#define PERIPH_BB_BASE        (0x42000000UL)              /*!< Peripheral base address in the bit-band region */
679
#define PERIPH_BB_BASE        (0x42000000UL)              /*!< Peripheral base address in the bit-band region */
-
 
680
#define FLASH_END             (0x0805FFFFUL)              /*!< Program end FLASH address for Cat4 */
680
#define FLASH_BANK2_BASE      (0x08030000UL)              /*!< FLASH BANK2 base address in the alias region */
681
#define FLASH_BANK2_BASE      (0x08030000UL)              /*!< FLASH BANK2 base address in the alias region */
681
#define FLASH_BANK1_END       (0x0802FFFFUL)              /*!< Program end FLASH BANK1 address */
682
#define FLASH_BANK1_END       (0x0802FFFFUL)              /*!< Program end FLASH BANK1 address */
682
#define FLASH_BANK2_END       (0x0805FFFFUL)              /*!< Program end FLASH BANK2 address */
683
#define FLASH_BANK2_END       (0x0805FFFFUL)              /*!< Program end FLASH BANK2 address */
683
#define FLASH_EEPROM_END      (0x08082FFFUL)              /*!< FLASH EEPROM end address  (12KB) */
684
#define FLASH_EEPROM_END      (0x08082FFFUL)              /*!< FLASH EEPROM end address  (12KB) */
684
 
685
 
Line 863... Line 864...
863
 
864
 
864
/** @addtogroup Exported_constants
865
/** @addtogroup Exported_constants
865
  * @{
866
  * @{
866
  */
867
  */
867
 
868
 
-
 
869
  /** @addtogroup Hardware_Constant_Definition
-
 
870
    * @{
-
 
871
    */
-
 
872
#define LSI_STARTUP_TIME 200U /*!< LSI Maximum startup time in us */
-
 
873
 
-
 
874
  /**
-
 
875
    * @}
-
 
876
    */
-
 
877
 
868
/** @addtogroup Peripheral_Registers_Bits_Definition
878
/** @addtogroup Peripheral_Registers_Bits_Definition
869
  * @{
879
  * @{
870
  */
880
  */
871
   
881
   
872
/******************************************************************************/
882
/******************************************************************************/
Line 3141... Line 3151...
3141
/*                                                                            */
3151
/*                                                                            */
3142
/*                FLASH, DATA EEPROM and Option Bytes Registers               */
3152
/*                FLASH, DATA EEPROM and Option Bytes Registers               */
3143
/*                        (FLASH, DATA_EEPROM, OB)                            */
3153
/*                        (FLASH, DATA_EEPROM, OB)                            */
3144
/*                                                                            */
3154
/*                                                                            */
3145
/******************************************************************************/
3155
/******************************************************************************/
-
 
3156
/*
-
 
3157
 * @brief Specific device feature definitions (not present on all devices in the STM32L1 serie)
-
 
3158
 */
-
 
3159
#define FLASH_CUT4
3146
 
3160
 
3147
/*******************  Bit definition for FLASH_ACR register  ******************/
3161
/*******************  Bit definition for FLASH_ACR register  ******************/
3148
#define FLASH_ACR_LATENCY_Pos                (0U)                              
3162
#define FLASH_ACR_LATENCY_Pos                (0U)                              
3149
#define FLASH_ACR_LATENCY_Msk                (0x1UL << FLASH_ACR_LATENCY_Pos)   /*!< 0x00000001 */
3163
#define FLASH_ACR_LATENCY_Msk                (0x1UL << FLASH_ACR_LATENCY_Pos)   /*!< 0x00000001 */
3150
#define FLASH_ACR_LATENCY                    FLASH_ACR_LATENCY_Msk             /*!< Latency */
3164
#define FLASH_ACR_LATENCY                    FLASH_ACR_LATENCY_Msk             /*!< Latency */
Line 3333... Line 3347...
3333
#define FSMC_BCRx_EXTMOD_Msk                (0x1UL << FSMC_BCRx_EXTMOD_Pos)     /*!< 0x00004000 */
3347
#define FSMC_BCRx_EXTMOD_Msk                (0x1UL << FSMC_BCRx_EXTMOD_Pos)     /*!< 0x00004000 */
3334
#define FSMC_BCRx_EXTMOD                    FSMC_BCRx_EXTMOD_Msk               /*!< Extended mode enable */
3348
#define FSMC_BCRx_EXTMOD                    FSMC_BCRx_EXTMOD_Msk               /*!< Extended mode enable */
3335
#define FSMC_BCRx_ASYNCWAIT_Pos             (15U)                              
3349
#define FSMC_BCRx_ASYNCWAIT_Pos             (15U)                              
3336
#define FSMC_BCRx_ASYNCWAIT_Msk             (0x1UL << FSMC_BCRx_ASYNCWAIT_Pos)  /*!< 0x00008000 */
3350
#define FSMC_BCRx_ASYNCWAIT_Msk             (0x1UL << FSMC_BCRx_ASYNCWAIT_Pos)  /*!< 0x00008000 */
3337
#define FSMC_BCRx_ASYNCWAIT                 FSMC_BCRx_ASYNCWAIT_Msk            /*!< Asynchronous wait */
3351
#define FSMC_BCRx_ASYNCWAIT                 FSMC_BCRx_ASYNCWAIT_Msk            /*!< Asynchronous wait */
-
 
3352
#define FSMC_BCRx_CPSIZE_Pos                (16U)                              
-
 
3353
#define FSMC_BCRx_CPSIZE_Msk                (0x7UL << FSMC_BCRx_CPSIZE_Pos)     /*!< 0x00070000 */
-
 
3354
#define FSMC_BCRx_CPSIZE                    FSMC_BCRx_CPSIZE_Msk               /*!< Cellular RAM page size */
-
 
3355
#define FSMC_BCRx_CPSIZE_0                  (0x1UL << FSMC_BCRx_CPSIZE_Pos)     /*!< 0x00010000 */
-
 
3356
#define FSMC_BCRx_CPSIZE_1                  (0x2UL << FSMC_BCRx_CPSIZE_Pos)     /*!< 0x00020000 */
-
 
3357
#define FSMC_BCRx_CPSIZE_2                  (0x4UL << FSMC_BCRx_CPSIZE_Pos)     /*!< 0x00040000 */
3338
#define FSMC_BCRx_CBURSTRW_Pos              (19U)                              
3358
#define FSMC_BCRx_CBURSTRW_Pos              (19U)                              
3339
#define FSMC_BCRx_CBURSTRW_Msk              (0x1UL << FSMC_BCRx_CBURSTRW_Pos)   /*!< 0x00080000 */
3359
#define FSMC_BCRx_CBURSTRW_Msk              (0x1UL << FSMC_BCRx_CBURSTRW_Pos)   /*!< 0x00080000 */
3340
#define FSMC_BCRx_CBURSTRW                  FSMC_BCRx_CBURSTRW_Msk             /*!< Write burst enable */
3360
#define FSMC_BCRx_CBURSTRW                  FSMC_BCRx_CBURSTRW_Msk             /*!< Write burst enable */
3341
 
3361
 
3342
/******************  Bit definition for FSMC_BTRx register (x=1..4)  ******************/
3362
/******************  Bit definition for FSMC_BTRx register (x=1..4)  ******************/
Line 6437... Line 6457...
6437
#define SYSCFG_EXTICR1_EXTI3_PA         (0x00000000U)                          /*!< PA[3] pin */
6457
#define SYSCFG_EXTICR1_EXTI3_PA         (0x00000000U)                          /*!< PA[3] pin */
6438
#define SYSCFG_EXTICR1_EXTI3_PB         (0x00001000U)                          /*!< PB[3] pin */
6458
#define SYSCFG_EXTICR1_EXTI3_PB         (0x00001000U)                          /*!< PB[3] pin */
6439
#define SYSCFG_EXTICR1_EXTI3_PC         (0x00002000U)                          /*!< PC[3] pin */
6459
#define SYSCFG_EXTICR1_EXTI3_PC         (0x00002000U)                          /*!< PC[3] pin */
6440
#define SYSCFG_EXTICR1_EXTI3_PD         (0x00003000U)                          /*!< PD[3] pin */
6460
#define SYSCFG_EXTICR1_EXTI3_PD         (0x00003000U)                          /*!< PD[3] pin */
6441
#define SYSCFG_EXTICR1_EXTI3_PE         (0x00004000U)                          /*!< PE[3] pin */
6461
#define SYSCFG_EXTICR1_EXTI3_PE         (0x00004000U)                          /*!< PE[3] pin */
6442
#define SYSCFG_EXTICR1_EXTI3_PF         (0x00003000U)                          /*!< PF[3] pin */
6462
#define SYSCFG_EXTICR1_EXTI3_PF         (0x00006000U)                          /*!< PF[3] pin */
6443
#define SYSCFG_EXTICR1_EXTI3_PG         (0x00004000U)                          /*!< PG[3] pin */
6463
#define SYSCFG_EXTICR1_EXTI3_PG         (0x00007000U)                          /*!< PG[3] pin */
6444
 
6464
 
6445
/*****************  Bit definition for SYSCFG_EXTICR2 register  *****************/
6465
/*****************  Bit definition for SYSCFG_EXTICR2 register  *****************/
6446
#define SYSCFG_EXTICR2_EXTI4_Pos        (0U)                                   
6466
#define SYSCFG_EXTICR2_EXTI4_Pos        (0U)                                   
6447
#define SYSCFG_EXTICR2_EXTI4_Msk        (0xFUL << SYSCFG_EXTICR2_EXTI4_Pos)     /*!< 0x0000000F */
6467
#define SYSCFG_EXTICR2_EXTI4_Msk        (0xFUL << SYSCFG_EXTICR2_EXTI4_Pos)     /*!< 0x0000000F */
6448
#define SYSCFG_EXTICR2_EXTI4            SYSCFG_EXTICR2_EXTI4_Msk               /*!< EXTI 4 configuration */
6468
#define SYSCFG_EXTICR2_EXTI4            SYSCFG_EXTICR2_EXTI4_Msk               /*!< EXTI 4 configuration */
Line 6613... Line 6633...
6613
#define SYSCFG_EXTICR4_EXTI15_PC        (0x00002000U)                          /*!< PC[15] pin */
6633
#define SYSCFG_EXTICR4_EXTI15_PC        (0x00002000U)                          /*!< PC[15] pin */
6614
#define SYSCFG_EXTICR4_EXTI15_PD        (0x00003000U)                          /*!< PD[15] pin */
6634
#define SYSCFG_EXTICR4_EXTI15_PD        (0x00003000U)                          /*!< PD[15] pin */
6615
#define SYSCFG_EXTICR4_EXTI15_PE        (0x00004000U)                          /*!< PE[15] pin */
6635
#define SYSCFG_EXTICR4_EXTI15_PE        (0x00004000U)                          /*!< PE[15] pin */
6616
#define SYSCFG_EXTICR4_EXTI15_PF        (0x00006000U)                          /*!< PF[15] pin */
6636
#define SYSCFG_EXTICR4_EXTI15_PF        (0x00006000U)                          /*!< PF[15] pin */
6617
#define SYSCFG_EXTICR4_EXTI15_PG        (0x00007000U)                          /*!< PG[15] pin */
6637
#define SYSCFG_EXTICR4_EXTI15_PG        (0x00007000U)                          /*!< PG[15] pin */
6618
 
6638
 
6619
/******************************************************************************/
6639
/******************************************************************************/
6620
/*                                                                            */
6640
/*                                                                            */
6621
/*                       Routing Interface (RI)                               */
6641
/*                       Routing Interface (RI)                               */
6622
/*                                                                            */
6642
/*                                                                            */
6623
/******************************************************************************/
6643
/******************************************************************************/