Subversion Repositories DashDisplay

Rev

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

Rev 3 Rev 5
Line 49... Line 49...
49
/**
49
/**
50
  * @brief This is the list of modules to be used in the HAL driver
50
  * @brief This is the list of modules to be used in the HAL driver
51
  */
51
  */
52
#define HAL_MODULE_ENABLED  
52
#define HAL_MODULE_ENABLED  
53
#define HAL_ADC_MODULE_ENABLED
53
#define HAL_ADC_MODULE_ENABLED
54
//#define HAL_CAN_MODULE_ENABLED   
54
/*#define HAL_CAN_MODULE_ENABLED   */
55
//#define HAL_CEC_MODULE_ENABLED   
55
/*#define HAL_CEC_MODULE_ENABLED   */
56
//#define HAL_CORTEX_MODULE_ENABLED   
56
/*#define HAL_CORTEX_MODULE_ENABLED   */
57
//#define HAL_CRC_MODULE_ENABLED   
57
/*#define HAL_CRC_MODULE_ENABLED   */
58
//#define HAL_DAC_MODULE_ENABLED   
58
/*#define HAL_DAC_MODULE_ENABLED   */
59
//#define HAL_DMA_MODULE_ENABLED   
59
/*#define HAL_DMA_MODULE_ENABLED   */
60
//#define HAL_ETH_MODULE_ENABLED   
60
/*#define HAL_ETH_MODULE_ENABLED   */
61
//#define HAL_FLASH_MODULE_ENABLED   
61
/*#define HAL_FLASH_MODULE_ENABLED   */
62
#define HAL_GPIO_MODULE_ENABLED
62
#define HAL_GPIO_MODULE_ENABLED
63
//#define HAL_I2C_MODULE_ENABLED   
63
/*#define HAL_I2C_MODULE_ENABLED   */
64
//#define HAL_I2S_MODULE_ENABLED   
64
/*#define HAL_I2S_MODULE_ENABLED   */
65
//#define HAL_IRDA_MODULE_ENABLED   
65
/*#define HAL_IRDA_MODULE_ENABLED   */
66
//#define HAL_IWDG_MODULE_ENABLED   
66
/*#define HAL_IWDG_MODULE_ENABLED   */
67
//#define HAL_NOR_MODULE_ENABLED   
67
/*#define HAL_NOR_MODULE_ENABLED   */
68
//#define HAL_NAND_MODULE_ENABLED   
68
/*#define HAL_NAND_MODULE_ENABLED   */
69
//#define HAL_PCCARD_MODULE_ENABLED   
69
/*#define HAL_PCCARD_MODULE_ENABLED   */
70
//#define HAL_PCD_MODULE_ENABLED   
70
/*#define HAL_PCD_MODULE_ENABLED   */
71
//#define HAL_HCD_MODULE_ENABLED   
71
/*#define HAL_HCD_MODULE_ENABLED   */
72
//#define HAL_PWR_MODULE_ENABLED   
72
/*#define HAL_PWR_MODULE_ENABLED   */
73
//#define HAL_RCC_MODULE_ENABLED   
73
/*#define HAL_RCC_MODULE_ENABLED   */
74
//#define HAL_RTC_MODULE_ENABLED   
74
/*#define HAL_RTC_MODULE_ENABLED   */
75
//#define HAL_SD_MODULE_ENABLED   
75
/*#define HAL_SD_MODULE_ENABLED   */
76
//#define HAL_SDRAM_MODULE_ENABLED   
76
/*#define HAL_SDRAM_MODULE_ENABLED   */
77
//#define HAL_SMARTCARD_MODULE_ENABLED   
77
/*#define HAL_SMARTCARD_MODULE_ENABLED   */
78
#define HAL_SPI_MODULE_ENABLED
78
#define HAL_SPI_MODULE_ENABLED
79
//#define HAL_SRAM_MODULE_ENABLED   
79
/*#define HAL_SRAM_MODULE_ENABLED   */
80
//#define HAL_TIM_MODULE_ENABLED   
80
/*#define HAL_TIM_MODULE_ENABLED   */
81
#define HAL_UART_MODULE_ENABLED
81
#define HAL_UART_MODULE_ENABLED
82
//#define HAL_USART_MODULE_ENABLED   
82
/*#define HAL_USART_MODULE_ENABLED   */
83
//#define HAL_WWDG_MODULE_ENABLED   
83
/*#define HAL_WWDG_MODULE_ENABLED   */
84
 
84
 
85
#define HAL_CORTEX_MODULE_ENABLED
85
#define HAL_CORTEX_MODULE_ENABLED
86
#define HAL_DMA_MODULE_ENABLED
86
#define HAL_DMA_MODULE_ENABLED
87
#define HAL_FLASH_MODULE_ENABLED
87
#define HAL_FLASH_MODULE_ENABLED
88
#define HAL_GPIO_MODULE_ENABLED
88
#define HAL_GPIO_MODULE_ENABLED
Line 120... Line 120...
120
  #define LSE_VALUE    ((uint32_t)32768) /*!< Value of the External oscillator in Hz*/
120
  #define LSE_VALUE    ((uint32_t)32768) /*!< Value of the External oscillator in Hz*/
121
#endif /* LSE_VALUE */
121
#endif /* LSE_VALUE */
122
 
122
 
123
#if !defined  (LSE_STARTUP_TIMEOUT)
123
#if !defined  (LSE_STARTUP_TIMEOUT)
124
  #define LSE_STARTUP_TIMEOUT    ((uint32_t)5000)   /*!< Time out for LSE start up, in ms */
124
  #define LSE_STARTUP_TIMEOUT    ((uint32_t)5000)   /*!< Time out for LSE start up, in ms */
125
#endif /* HSE_STARTUP_TIMEOUT */
125
#endif /* LSE_STARTUP_TIMEOUT */
126
 
126
 
127
/* Tip: To avoid modifying this file each time you need to use different HSE,
127
/* Tip: To avoid modifying this file each time you need to use different HSE,
128
   ===  you can define the HSE value in your toolchain compiler preprocessor. */
128
   ===  you can define the HSE value in your toolchain compiler preprocessor. */
129
 
129
 
130
/* ########################### System Configuration ######################### */
130
/* ########################### System Configuration ######################### */
Line 161... Line 161...
161
#define ETH_RXBUFNB                    ((uint32_t)8)       /* 4 Rx buffers of size ETH_RX_BUF_SIZE  */
161
#define ETH_RXBUFNB                    ((uint32_t)8)       /* 4 Rx buffers of size ETH_RX_BUF_SIZE  */
162
#define ETH_TXBUFNB                    ((uint32_t)4)       /* 4 Tx buffers of size ETH_TX_BUF_SIZE  */
162
#define ETH_TXBUFNB                    ((uint32_t)4)       /* 4 Tx buffers of size ETH_TX_BUF_SIZE  */
163
 
163
 
164
/* Section 2: PHY configuration section */
164
/* Section 2: PHY configuration section */
165
 
165
 
166
/* DP83848 PHY Address*/
166
/* DP83848_PHY_ADDRESS Address*/
167
#define DP83848_PHY_ADDRESS             0x01
167
#define DP83848_PHY_ADDRESS           0x01U
168
/* PHY Reset delay these values are based on a 1 ms Systick interrupt*/
168
/* PHY Reset delay these values are based on a 1 ms Systick interrupt*/
169
#define PHY_RESET_DELAY                 ((uint32_t)0x000000FF)
169
#define PHY_RESET_DELAY                 ((uint32_t)0x000000FF)
170
/* PHY Configuration delay */
170
/* PHY Configuration delay */
171
#define PHY_CONFIG_DELAY                ((uint32_t)0x00000FFF)
171
#define PHY_CONFIG_DELAY                ((uint32_t)0x00000FFF)
172
 
172