stm32f10x_it.c

Go to the documentation of this file.
00001 
00025 /* Includes ------------------------------------------------------------------*/
00026 #include "stm32f10x_it.h"
00027 #include "pm.h"
00028 
00029 /* Private typedef -----------------------------------------------------------*/
00030 /* Private define ------------------------------------------------------------*/
00031 /* Private macro -------------------------------------------------------------*/
00032 /* Private variables ---------------------------------------------------------*/
00033 /* Private function prototypes -----------------------------------------------*/
00034 /* Private functions ---------------------------------------------------------*/
00035 
00036 /******************************************************************************/
00037 /*            Cortex-M3 Processor Exceptions Handlers                         */
00038 /******************************************************************************/
00039 
00044 void NMI_Handler(void)
00045 {
00046 }
00047 
00052 void HardFault_Handler(void)
00053 {
00054   /* Go to infinite loop when Hard Fault exception occurs */
00055   while (1)
00056   {}
00057 }
00058 
00063 void MemManage_Handler(void)
00064 {
00065   /* Go to infinite loop when Memory Manage exception occurs */
00066   while (1)
00067   {}
00068 }
00069 
00074 void BusFault_Handler(void)
00075 {
00076   /* Go to infinite loop when Bus Fault exception occurs */
00077   while (1)
00078   {}
00079 }
00080 
00085 void UsageFault_Handler(void)
00086 {
00087   /* Go to infinite loop when Usage Fault exception occurs */
00088   while (1)
00089   {}
00090 }
00091 
00096 void DebugMon_Handler(void)
00097 {
00098 }
00099 
00104 void SVC_Handler(void)
00105 {
00106 }
00107 
00112 void PendSV_Handler(void)
00113 {
00114 }
00115 
00120 void SysTick_Handler(void)
00121 {
00122 }
00123 
00124 /******************************************************************************/
00125 /*                 STM32F10x Peripherals Interrupt Handlers                   */
00126 /*  Add here the Interrupt Handler for the used peripheral(s) (PPP), for the  */
00127 /*  available peripheral interrupt handler's name please refer to the startup */
00128 /*  file (startup_stm32f10x_xx.s).                                            */
00129 /******************************************************************************/
00130 
00131 /*------------------------------------------------------------------------------
00132   RTC Interrupt Handler
00133  *------------------------------------------------------------------------------*/
00134 void RTC_IRQHandler(void)
00135 {
00136         PmReturn_t retval;
00137         
00138         if (RTC_GetITStatus(RTC_IT_SEC) != RESET)
00139         {
00140                   /* Clear the RTC Second interrupt */
00141                   RTC_ClearITPendingBit(RTC_IT_SEC);
00142  
00143                   retval = pm_vmPeriodic(1000);
00144                   PM_REPORT_IF_ERROR(retval);
00145         }
00146 }
00147 
00148 /******************* (C) COPYRIGHT 2009 STMicroelectronics *****END OF FILE****/

Generated on Mon Oct 18 07:40:47 2010 for Python-on-a-chip by  doxygen 1.5.9