STM32F0xx Standard Peripherals Firmware Library
|
stm32f0xx_ip_dbg.c
Go to the documentation of this file.
00001 /** 00002 ****************************************************************************** 00003 * @file stm32f0xx_ip_dbg.c 00004 * @author MCD Application Team 00005 * @version V1.4.0 00006 * @date 24-July-2014 00007 * @brief This file provides all STM32F0xx peripherals pointers initialization. 00008 ****************************************************************************** 00009 * @attention 00010 * 00011 * <h2><center>© COPYRIGHT 2014 STMicroelectronics</center></h2> 00012 * 00013 * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); 00014 * You may not use this file except in compliance with the License. 00015 * You may obtain a copy of the License at: 00016 * 00017 * http://www.st.com/software_license_agreement_liberty_v2 00018 * 00019 * Unless required by applicable law or agreed to in writing, software 00020 * distributed under the License is distributed on an "AS IS" BASIS, 00021 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00022 * See the License for the specific language governing permissions and 00023 * limitations under the License. 00024 * 00025 ****************************************************************************** 00026 */ 00027 00028 /* Includes ------------------------------------------------------------------*/ 00029 #include "stm32f0xx_ip_dbg.h" 00030 00031 /** @addtogroup STM32F0xx_StdPeriph_Examples 00032 * @{ 00033 */ 00034 00035 /** @addtogroup Lib_DEBUG_Example 00036 * @{ 00037 */ 00038 00039 /* Private typedef -----------------------------------------------------------*/ 00040 /* Private define ------------------------------------------------------------*/ 00041 /* Private macro -------------------------------------------------------------*/ 00042 /* Private variables ---------------------------------------------------------*/ 00043 NVIC_Type * NVIC_DBG; 00044 SCB_Type * SCB_DBG; 00045 SysTick_Type * SysTick_DBG; 00046 ADC_TypeDef * ADC1_DBG; 00047 ADC_Common_TypeDef * ADC_DBG; 00048 CEC_TypeDef * CEC_DBG; 00049 CRC_TypeDef * CRC_DBG; 00050 COMP_TypeDef * COMP_DBG; 00051 DAC_TypeDef * DAC_DBG; 00052 DBGMCU_TypeDef * DBGMCU_DBG; 00053 DMA_TypeDef * DMA1_DBG; 00054 DMA_Channel_TypeDef * DMA1_Channel1_DBG; 00055 DMA_Channel_TypeDef * DMA1_Channel2_DBG; 00056 DMA_Channel_TypeDef * DMA1_Channel3_DBG; 00057 DMA_Channel_TypeDef * DMA1_Channel4_DBG; 00058 DMA_Channel_TypeDef * DMA1_Channel5_DBG; 00059 EXTI_TypeDef * EXTI_DBG; 00060 FLASH_TypeDef * FLASH_DBG; 00061 OB_TypeDef * OB_DBG; 00062 GPIO_TypeDef * GPIOA_DBG; 00063 GPIO_TypeDef * GPIOB_DBG; 00064 GPIO_TypeDef * GPIOC_DBG; 00065 GPIO_TypeDef * GPIOD_DBG; 00066 GPIO_TypeDef * GPIOF_DBG; 00067 I2C_TypeDef * I2C1_DBG; 00068 I2C_TypeDef * I2C2_DBG; 00069 IWDG_TypeDef * IWDG_DBG; 00070 PWR_TypeDef * PWR_DBG; 00071 RCC_TypeDef * RCC_DBG; 00072 RTC_TypeDef * RTC_DBG; 00073 SPI_TypeDef * SPI1_DBG; 00074 SPI_TypeDef * SPI2_DBG; 00075 SYSCFG_TypeDef * SYSCFG_DBG; 00076 TIM_TypeDef * TIM1_DBG; 00077 TIM_TypeDef * TIM2_DBG; 00078 TIM_TypeDef * TIM3_DBG; 00079 TIM_TypeDef * TIM6_DBG; 00080 TIM_TypeDef * TIM14_DBG; 00081 TIM_TypeDef * TIM15_DBG; 00082 TIM_TypeDef * TIM16_DBG; 00083 TIM_TypeDef * TIM17_DBG; 00084 USART_TypeDef * USART1_DBG; 00085 USART_TypeDef * USART2_DBG; 00086 WWDG_TypeDef * WWDG_DBG; 00087 00088 /* Private function prototypes -----------------------------------------------*/ 00089 /* Private functions ---------------------------------------------------------*/ 00090 00091 /** 00092 * @brief This function initialize peripherals pointers. 00093 * @param None 00094 * @retval None 00095 */ 00096 void IP_Debug(void) 00097 { 00098 /*************************************CORE CM0 ********************************/ 00099 NVIC_DBG = (NVIC_Type *) NVIC_BASE; 00100 SCB_DBG = (SCB_Type *) SCB_BASE; 00101 SysTick_DBG = (SysTick_Type *) SysTick_BASE; 00102 00103 /************************************* ADC ************************************/ 00104 ADC_DBG = (ADC_Common_TypeDef *) ADC_BASE; 00105 ADC1_DBG = (ADC_TypeDef *) ADC1_BASE; 00106 00107 /************************************* CEC ************************************/ 00108 CEC_DBG = (CEC_TypeDef *) CEC_BASE; 00109 00110 /************************************* CRC ************************************/ 00111 CRC_DBG = (CRC_TypeDef *) CRC_BASE; 00112 00113 /************************************* COMP ***********************************/ 00114 COMP_DBG = (COMP_TypeDef *) COMP_BASE; 00115 00116 /************************************* DAC ************************************/ 00117 DAC_DBG = (DAC_TypeDef *) DAC_BASE; 00118 00119 /************************************* DBGMCU *********************************/ 00120 DBGMCU_DBG = (DBGMCU_TypeDef *) DBGMCU_BASE; 00121 00122 /************************************* DMA ************************************/ 00123 DMA1_DBG = (DMA_TypeDef *) DMA1_BASE; 00124 DMA1_Channel1_DBG = (DMA_Channel_TypeDef *) DMA1_Channel1_BASE; 00125 DMA1_Channel2_DBG = (DMA_Channel_TypeDef *) DMA1_Channel2_BASE; 00126 DMA1_Channel3_DBG = (DMA_Channel_TypeDef *) DMA1_Channel3_BASE; 00127 DMA1_Channel4_DBG = (DMA_Channel_TypeDef *) DMA1_Channel4_BASE; 00128 DMA1_Channel5_DBG = (DMA_Channel_TypeDef *) DMA1_Channel5_BASE; 00129 00130 /************************************* EXTI ***********************************/ 00131 EXTI_DBG = (EXTI_TypeDef *) EXTI_BASE; 00132 00133 /************************************* FLASH **********************************/ 00134 FLASH_DBG = (FLASH_TypeDef *) FLASH_R_BASE; 00135 OB_DBG = (OB_TypeDef *) OB_BASE; 00136 00137 /************************************* GPIO ***********************************/ 00138 GPIOA_DBG = (GPIO_TypeDef *) GPIOA_BASE; 00139 GPIOB_DBG = (GPIO_TypeDef *) GPIOB_BASE; 00140 GPIOC_DBG = (GPIO_TypeDef *) GPIOC_BASE; 00141 GPIOD_DBG = (GPIO_TypeDef *) GPIOD_BASE; 00142 GPIOF_DBG = (GPIO_TypeDef *) GPIOF_BASE; 00143 00144 /************************************* I2C ************************************/ 00145 I2C1_DBG = (I2C_TypeDef *) I2C1_BASE; 00146 I2C2_DBG = (I2C_TypeDef *) I2C2_BASE; 00147 00148 /************************************* IWDG ***********************************/ 00149 IWDG_DBG = (IWDG_TypeDef *) IWDG_BASE; 00150 00151 /************************************* PWR ************************************/ 00152 PWR_DBG = (PWR_TypeDef *) PWR_BASE; 00153 00154 /************************************* RCC ************************************/ 00155 RCC_DBG = (RCC_TypeDef *) RCC_BASE; 00156 00157 /************************************* RTC ************************************/ 00158 RTC_DBG = (RTC_TypeDef *) RTC_BASE; 00159 00160 /************************************* SPI ************************************/ 00161 SPI1_DBG = (SPI_TypeDef *) SPI1_BASE; 00162 SPI2_DBG = (SPI_TypeDef *) SPI2_BASE; 00163 00164 /************************************* SYSCFG *********************************/ 00165 SYSCFG_DBG = (SYSCFG_TypeDef *) SYSCFG_BASE; 00166 00167 /************************************* TIM ************************************/ 00168 TIM1_DBG = (TIM_TypeDef *) TIM1_BASE; 00169 TIM2_DBG = (TIM_TypeDef *) TIM2_BASE; 00170 TIM3_DBG = (TIM_TypeDef *) TIM3_BASE; 00171 TIM6_DBG = (TIM_TypeDef *) TIM6_BASE; 00172 TIM14_DBG = (TIM_TypeDef *) TIM14_BASE; 00173 TIM15_DBG = (TIM_TypeDef *) TIM15_BASE; 00174 TIM16_DBG = (TIM_TypeDef *) TIM16_BASE; 00175 TIM17_DBG = (TIM_TypeDef *) TIM17_BASE; 00176 00177 /************************************* USART **********************************/ 00178 USART1_DBG = (USART_TypeDef *) USART1_BASE; 00179 USART2_DBG = (USART_TypeDef *) USART2_BASE; 00180 00181 /************************************* WWDG************************************/ 00182 WWDG_DBG = (WWDG_TypeDef *) WWDG_BASE; 00183 } 00184 00185 /** 00186 * @} 00187 */ 00188 00189 /** 00190 * @} 00191 */ 00192 00193 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/