diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2017-01-25 22:24:18 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2017-01-25 22:29:25 +0100 |
commit | 40e04e3772726829d66c12e69f24b03920d79c67 (patch) | |
tree | 636811bad956798c9d5d22de9e7ba8c799b8d791 /tmp/STM32F10x_StdPeriph_Lib_V3.5.0/Project/STM32F10x_StdPeriph_Examples/I2C/IOExpander/stm32f10x_it.c | |
parent | 2fff65aed2477a503c72629d27e2a330d30c02d1 (diff) | |
download | stm32f103-playground-40e04e3772726829d66c12e69f24b03920d79c67.tar.gz stm32f103-playground-40e04e3772726829d66c12e69f24b03920d79c67.tar.bz2 stm32f103-playground-40e04e3772726829d66c12e69f24b03920d79c67.tar.xz stm32f103-playground-40e04e3772726829d66c12e69f24b03920d79c67.zip |
o Moving tinyprintf and stm libraries under thirdparty.
Diffstat (limited to 'tmp/STM32F10x_StdPeriph_Lib_V3.5.0/Project/STM32F10x_StdPeriph_Examples/I2C/IOExpander/stm32f10x_it.c')
-rw-r--r-- | tmp/STM32F10x_StdPeriph_Lib_V3.5.0/Project/STM32F10x_StdPeriph_Examples/I2C/IOExpander/stm32f10x_it.c | 253 |
1 files changed, 0 insertions, 253 deletions
diff --git a/tmp/STM32F10x_StdPeriph_Lib_V3.5.0/Project/STM32F10x_StdPeriph_Examples/I2C/IOExpander/stm32f10x_it.c b/tmp/STM32F10x_StdPeriph_Lib_V3.5.0/Project/STM32F10x_StdPeriph_Examples/I2C/IOExpander/stm32f10x_it.c deleted file mode 100644 index a4c77be..0000000 --- a/tmp/STM32F10x_StdPeriph_Lib_V3.5.0/Project/STM32F10x_StdPeriph_Examples/I2C/IOExpander/stm32f10x_it.c +++ /dev/null @@ -1,253 +0,0 @@ -/** - ****************************************************************************** - * @file I2C/IOExpander/stm32f10x_it.c - * @author MCD Application Team - * @version V3.5.0 - * @date 08-April-2011 - * @brief Main Interrupt Service Routines. - * This file provides template for all exceptions handler and peripherals - * interrupt service routine. - ****************************************************************************** - * @attention - * - * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS - * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE - * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY - * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING - * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE - * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. - * - * <h2><center>© COPYRIGHT 2011 STMicroelectronics</center></h2> - ****************************************************************************** - */ - -/* Includes ------------------------------------------------------------------*/ -#include "stm32f10x_it.h" -#include "main.h" - -/** @addtogroup STM32F10x_StdPeriph_Examples - * @{ - */ - -/** @addtogroup I2C_IOExpander - * @{ - */ - -/* Private typedef -----------------------------------------------------------*/ -/* Private define ------------------------------------------------------------*/ -/* Private macro -------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -/* Private function prototypes -----------------------------------------------*/ -/* Private functions ---------------------------------------------------------*/ - -/******************************************************************************/ -/* Cortex-M3 Processor Exceptions Handlers */ -/******************************************************************************/ - -/** - * @brief This function handles NMI exception. - * @param None - * @retval None - */ -void NMI_Handler(void) -{ -} - -/** - * @brief This function handles Hard Fault exception. - * @param None - * @retval None - */ -void HardFault_Handler(void) -{ - /* Go to infinite loop when Hard Fault exception occurs */ - while (1) - { - } -} - -/** - * @brief This function handles Memory Manage exception. - * @param None - * @retval None - */ -void MemManage_Handler(void) -{ - /* Go to infinite loop when Memory Manage exception occurs */ - while (1) - { - } -} - -/** - * @brief This function handles Bus Fault exception. - * @param None - * @retval None - */ -void BusFault_Handler(void) -{ - /* Go to infinite loop when Bus Fault exception occurs */ - while (1) - { - } -} - -/** - * @brief This function handles Usage Fault exception. - * @param None - * @retval None - */ -void UsageFault_Handler(void) -{ - /* Go to infinite loop when Usage Fault exception occurs */ - while (1) - { - } -} - -/** - * @brief This function handles SVCall exception. - * @param None - * @retval None - */ -void SVC_Handler(void) -{ -} - -/** - * @brief This function handles Debug Monitor exception. - * @param None - * @retval None - */ -void DebugMon_Handler(void) -{ -} - -/** - * @brief This function handles PendSVC exception. - * @param None - * @retval None - */ -void PendSV_Handler(void) -{ -} - - -/******************************************************************************/ -/* STM32F10x Peripherals Interrupt Handlers */ -/* Add here the Interrupt Handler for the used peripheral(s) (PPP), for the */ -/* available peripheral interrupt handler's name please refer to the startup */ -/* file (startup_stm32f10x_xx.s). */ -/******************************************************************************/ - -/** - * @brief This function handles External lines 15 to 10 interrupt request. - * @param None - * @retval None - */ -void EXTI15_10_IRQHandler(void) -{ - /* Checks whether the IOE EXTI line is asserted or not */ - if(EXTI_GetITStatus(IOE_IT_EXTI_LINE) != RESET) - { - -#ifdef IOE_INTERRUPT_MODE - /* Check if the interrupt source is the Touch Screen */ - if (IOE_GetGITStatus(IOE_1_ADDR, IOE_TS_IT) & IOE_TS_IT) - { - static TS_STATE* TS_State; - - /* Update the structure with the current position */ - TS_State = IOE_TS_GetState(); - - if ((TS_State->TouchDetected) && (TS_State->Y < 220) && (TS_State->Y > 180)) - { - if ((TS_State->X > 10) && (TS_State->X < 70)) - { - LCD_DisplayStringLine(Line6, " LD4 "); - STM_EVAL_LEDOn(LED4); - } - else if ((TS_State->X > 90) && (TS_State->X < 150)) - { - LCD_DisplayStringLine(Line6, " LD3 "); - STM_EVAL_LEDOn(LED3); - } - else if ((TS_State->X > 170) && (TS_State->X < 230)) - { - LCD_DisplayStringLine(Line6, " LD2 "); - STM_EVAL_LEDOn(LED2); - } - else if ((TS_State->X > 250) && (TS_State->X < 310)) - { - LCD_DisplayStringLine(Line6, " LD1 "); - STM_EVAL_LEDOn(LED1); - } - } - else - { - STM_EVAL_LEDOff(LED1); - STM_EVAL_LEDOff(LED2); - STM_EVAL_LEDOff(LED3); - STM_EVAL_LEDOff(LED4); - } - - /* Clear the interrupt pending bits */ - IOE_ClearGITPending(IOE_1_ADDR, IOE_TS_IT); - } - #ifdef USE_STM3210C_EVAL - else if (IOE_GetGITStatus(IOE_2_ADDR, IOE_GIT_GPIO)) - { - static JOY_State_TypeDef JoyState = JOY_NONE; - - /* Get the Joystick State */ - JoyState = IOE_JoyStickGetState(); - - switch (JoyState) - { - case JOY_NONE: - LCD_DisplayStringLine(Line5, "JOY: IT ---- "); - break; - case JOY_UP: - LCD_DisplayStringLine(Line5, "JOY: IT UP "); - break; - case JOY_DOWN: - LCD_DisplayStringLine(Line5, "JOY: IT DOWN "); - break; - case JOY_LEFT: - LCD_DisplayStringLine(Line5, "JOY: IT LEFT "); - break; - case JOY_RIGHT: - LCD_DisplayStringLine(Line5, "JOY: IT RIGHT "); - break; - case JOY_CENTER: - LCD_DisplayStringLine(Line5, "JOY: IT CENTER "); - break; - default: - LCD_DisplayStringLine(Line5, "JOY: IT ERROR "); - break; - } - - /* Clear the interrupt pending bits */ - IOE_ClearGITPending(IOE_2_ADDR, IOE_GIT_GPIO); - IOE_ClearIOITPending(IOE_2_ADDR, IOE_JOY_IT); - } - /* CLear all pending interrupt */ - IOE_ClearGITPending(IOE_2_ADDR, ALL_IT); - IOE_ClearIOITPending(IOE_2_ADDR, IOE_JOY_IT); - #endif /* USE_STM3210C_EVAL */ - - /* CLear all pending interrupt */ - IOE_ClearGITPending(IOE_1_ADDR, ALL_IT); - -#endif /* IOE_INTERRUPT_MODE */ - - EXTI_ClearITPendingBit(IOE_IT_EXTI_LINE); - } -} - -/** - * @} - */ - - -/******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/ |