Skip to content

[NUCLEO_L152RE/F030_R8] SPI, I2C, Ticker, PWM updates #158

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Feb 3, 2014
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
******************************************************************************
* @file misc.c
* @author MCD Application Team
* @version V3.5.0
* @date 11-March-2011
* @version V3.6.1
* @date 05-March-2012
* @brief This file provides all the miscellaneous firmware functions (add-on
* to CMSIS functions).
*******************************************************************************
Expand Down Expand Up @@ -237,4 +237,4 @@ void SysTick_CLKSourceConfig(uint32_t SysTick_CLKSource)
* @}
*/

/******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
******************************************************************************
* @file misc.h
* @author MCD Application Team
* @version V3.5.0
* @date 11-March-2011
* @version V3.6.1
* @date 05-March-2012
* @brief This file contains all the functions prototypes for the miscellaneous
* firmware library functions (add-on to CMSIS functions).
*******************************************************************************
Expand Down Expand Up @@ -232,4 +232,4 @@ void SysTick_CLKSourceConfig(uint32_t SysTick_CLKSource);
* @}
*/

/******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
******************************************************************************
* @file stm32f10x_adc.c
* @author MCD Application Team
* @version V3.5.0
* @date 11-March-2011
* @version V3.6.1
* @date 05-March-2012
* @brief This file provides all the ADC firmware functions.
*******************************************************************************
* Copyright (c) 2014, STMicroelectronics
Expand Down Expand Up @@ -1319,4 +1319,4 @@ void ADC_ClearITPendingBit(ADC_TypeDef* ADCx, uint16_t ADC_IT)
* @}
*/

/******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
******************************************************************************
* @file stm32f10x_adc.h
* @author MCD Application Team
* @version V3.5.0
* @date 11-March-2011
* @version V3.6.1
* @date 05-March-2012
* @brief This file contains all the functions prototypes for the ADC firmware
* library.
*******************************************************************************
Expand Down Expand Up @@ -495,4 +495,4 @@ void ADC_ClearITPendingBit(ADC_TypeDef* ADCx, uint16_t ADC_IT);
* @}
*/

/******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
******************************************************************************
* @file stm32f10x_bkp.c
* @author MCD Application Team
* @version V3.5.0
* @date 11-March-2011
* @version V3.6.1
* @date 05-March-2012
* @brief This file provides all the BKP firmware functions.
*******************************************************************************
* Copyright (c) 2014, STMicroelectronics
Expand Down Expand Up @@ -320,4 +320,4 @@ void BKP_ClearITPendingBit(void)
* @}
*/

/******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
******************************************************************************
* @file stm32f10x_bkp.h
* @author MCD Application Team
* @version V3.5.0
* @date 11-March-2011
* @version V3.6.1
* @date 05-March-2012
* @brief This file contains all the functions prototypes for the BKP firmware
* library.
*******************************************************************************
Expand Down Expand Up @@ -207,4 +207,4 @@ void BKP_ClearITPendingBit(void);
* @}
*/

/******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
******************************************************************************
* @file stm32f10x_can.c
* @author MCD Application Team
* @version V3.5.0
* @date 11-March-2011
* @version V3.6.1
* @date 05-March-2012
* @brief This file provides all the CAN firmware functions.
*******************************************************************************
* Copyright (c) 2014, STMicroelectronics
Expand Down Expand Up @@ -1427,4 +1427,4 @@ static ITStatus CheckITStatus(uint32_t CAN_Reg, uint32_t It_Bit)
* @}
*/

/******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
******************************************************************************
* @file stm32f10x_can.h
* @author MCD Application Team
* @version V3.5.0
* @date 11-March-2011
* @version V3.6.1
* @date 05-March-2012
* @brief This file contains all the functions prototypes for the CAN firmware
* library.
*******************************************************************************
Expand Down Expand Up @@ -709,4 +709,4 @@ void CAN_ClearITPendingBit(CAN_TypeDef* CANx, uint32_t CAN_IT);
* @}
*/

/******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
******************************************************************************
* @file stm32f10x_cec.c
* @author MCD Application Team
* @version V3.5.0
* @date 11-March-2011
* @version V3.6.1
* @date 05-March-2012
* @brief This file provides all the CEC firmware functions.
*******************************************************************************
* Copyright (c) 2014, STMicroelectronics
Expand Down Expand Up @@ -445,4 +445,4 @@ void CEC_ClearITPendingBit(uint16_t CEC_IT)
* @}
*/

/******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
******************************************************************************
* @file stm32f10x_cec.h
* @author MCD Application Team
* @version V3.5.0
* @date 11-March-2011
* @version V3.6.1
* @date 05-March-2012
* @brief This file contains all the functions prototypes for the CEC firmware
* library.
*******************************************************************************
Expand Down Expand Up @@ -222,4 +222,4 @@ void CEC_ClearITPendingBit(uint16_t CEC_IT);
* @}
*/

/******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
******************************************************************************
* @file Project/STM32F10x_StdPeriph_Template/stm32f10x_conf.h
* @author MCD Application Team
* @version V3.5.0
* @date 08-April-2011
* @version V3.6.1
* @date 05-March-2012
* @brief Library configuration file.
*******************************************************************************
* Copyright (c) 2014, STMicroelectronics
Expand Down Expand Up @@ -89,4 +89,4 @@

#endif /* __STM32F10x_CONF_H */

/******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
******************************************************************************
* @file stm32f10x_crc.c
* @author MCD Application Team
* @version V3.5.0
* @date 11-March-2011
* @version V3.6.1
* @date 05-March-2012
* @brief This file provides all the CRC firmware functions.
*******************************************************************************
* Copyright (c) 2014, STMicroelectronics
Expand Down Expand Up @@ -172,4 +172,4 @@ uint8_t CRC_GetIDRegister(void)
* @}
*/

/******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
******************************************************************************
* @file stm32f10x_crc.h
* @author MCD Application Team
* @version V3.5.0
* @date 11-March-2011
* @version V3.6.1
* @date 05-March-2012
* @brief This file contains all the functions prototypes for the CRC firmware
* library.
*******************************************************************************
Expand Down Expand Up @@ -106,4 +106,4 @@ uint8_t CRC_GetIDRegister(void);
* @}
*/

/******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
******************************************************************************
* @file stm32f10x_dac.c
* @author MCD Application Team
* @version V3.5.0
* @date 11-March-2011
* @version V3.6.1
* @date 05-March-2012
* @brief This file provides all the DAC firmware functions.
*******************************************************************************
* Copyright (c) 2014, STMicroelectronics
Expand Down Expand Up @@ -583,4 +583,4 @@ void DAC_ClearITPendingBit(uint32_t DAC_Channel, uint32_t DAC_IT)
* @}
*/

/******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
******************************************************************************
* @file stm32f10x_dac.h
* @author MCD Application Team
* @version V3.5.0
* @date 11-March-2011
* @version V3.6.1
* @date 05-March-2012
* @brief This file contains all the functions prototypes for the DAC firmware
* library.
*******************************************************************************
Expand Down Expand Up @@ -329,4 +329,4 @@ void DAC_ClearITPendingBit(uint32_t DAC_Channel, uint32_t DAC_IT);
* @}
*/

/******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
******************************************************************************
* @file stm32f10x_dbgmcu.c
* @author MCD Application Team
* @version V3.5.0
* @date 11-March-2011
* @version V3.6.1
* @date 05-March-2012
* @brief This file provides all the DBGMCU firmware functions.
*******************************************************************************
* Copyright (c) 2014, STMicroelectronics
Expand Down Expand Up @@ -174,4 +174,4 @@ void DBGMCU_Config(uint32_t DBGMCU_Periph, FunctionalState NewState)
* @}
*/

/******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
******************************************************************************
* @file stm32f10x_dbgmcu.h
* @author MCD Application Team
* @version V3.5.0
* @date 11-March-2011
* @version V3.6.1
* @date 05-March-2012
* @brief This file contains all the functions prototypes for the DBGMCU
* firmware library.
*******************************************************************************
Expand Down Expand Up @@ -131,4 +131,4 @@ void DBGMCU_Config(uint32_t DBGMCU_Periph, FunctionalState NewState);
* @}
*/

/******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
******************************************************************************
* @file stm32f10x_dma.c
* @author MCD Application Team
* @version V3.5.0
* @date 11-March-2011
* @version V3.6.1
* @date 05-March-2012
* @brief This file provides all the DMA firmware functions.
*******************************************************************************
* Copyright (c) 2014, STMicroelectronics
Expand Down Expand Up @@ -726,4 +726,4 @@ void DMA_ClearITPendingBit(uint32_t DMAy_IT)
* @}
*/

/******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
******************************************************************************
* @file stm32f10x_dma.h
* @author MCD Application Team
* @version V3.5.0
* @date 11-March-2011
* @version V3.6.1
* @date 05-March-2012
* @brief This file contains all the functions prototypes for the DMA firmware
* library.
*******************************************************************************
Expand Down Expand Up @@ -451,4 +451,4 @@ void DMA_ClearITPendingBit(uint32_t DMAy_IT);
* @}
*/

/******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
******************************************************************************
* @file stm32f10x_exti.c
* @author MCD Application Team
* @version V3.5.0
* @date 11-March-2011
* @version V3.6.1
* @date 05-March-2012
* @brief This file provides all the EXTI firmware functions.
*******************************************************************************
* Copyright (c) 2014, STMicroelectronics
Expand Down Expand Up @@ -281,4 +281,4 @@ void EXTI_ClearITPendingBit(uint32_t EXTI_Line)
* @}
*/

/******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
******************************************************************************
* @file stm32f10x_exti.h
* @author MCD Application Team
* @version V3.5.0
* @date 11-March-2011
* @version V3.6.1
* @date 05-March-2012
* @brief This file contains all the functions prototypes for the EXTI firmware
* library.
*******************************************************************************
Expand Down Expand Up @@ -97,7 +97,7 @@ typedef struct
This parameter can be a value of @ref EXTIMode_TypeDef */

EXTITrigger_TypeDef EXTI_Trigger; /*!< Specifies the trigger signal active edge for the EXTI lines.
This parameter can be a value of @ref EXTIMode_TypeDef */
This parameter can be a value of @ref EXTITrigger_TypeDef */

FunctionalState EXTI_LineCmd; /*!< Specifies the new state of the selected EXTI lines.
This parameter can be set either to ENABLE or DISABLE */
Expand Down Expand Up @@ -196,4 +196,4 @@ void EXTI_ClearITPendingBit(uint32_t EXTI_Line);
* @}
*/

/******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
******************************************************************************
* @file stm32f10x_flash.c
* @author MCD Application Team
* @version V3.5.0
* @date 11-March-2011
* @version V3.6.1
* @date 05-March-2012
* @brief This file provides all the FLASH firmware functions.
*******************************************************************************
* Copyright (c) 2014, STMicroelectronics
Expand Down Expand Up @@ -88,11 +88,6 @@
#define WRP3_Mask ((uint32_t)0xFF000000)
#define OB_USER_BFB2 ((uint16_t)0x0008)

/* FLASH Keys */
#define RDP_Key ((uint16_t)0x00A5)
#define FLASH_KEY1 ((uint32_t)0x45670123)
#define FLASH_KEY2 ((uint32_t)0xCDEF89AB)

/* FLASH BANK address */
#define FLASH_BANK1_END_ADDRESS ((uint32_t)0x807FFFF)

Expand Down Expand Up @@ -1696,4 +1691,4 @@ FLASH_Status FLASH_WaitForLastBank2Operation(uint32_t Timeout)
* @}
*/

/******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Loading