STM8S/A Standard Peripherals Firmware Library: main.h Source File

STM8S/A

EXTI/EXTI_InterruptPriority/main.h
Go to the documentation of this file.
00001 /**
00002   ******************************************************************************
00003   * @file    EXTI_InterruptPriority\main.h
00004   * @author  MCD Application Team
00005   * @version V2.0.1
00006   * @date    18-November-2011
00007   * @brief   This file contains the external declaration for main.c file.
00008   ******************************************************************************
00009   * @attention
00010   *
00011   * <h2><center>&copy; 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 /* Define to prevent recursive inclusion -------------------------------------*/
00029 #ifndef __MAIN_H__
00030 #define __MAIN_H__
00031 
00032 /* Private typedef -----------------------------------------------------------*/
00033 /* Private define ------------------------------------------------------------*/
00034 /* Evalboard I/Os configuration */
00035 
00036 #define LEDS_PORT (GPIOH)
00037 #define LED1_PIN  (GPIO_PIN_3)
00038 #define LED2_PIN  (GPIO_PIN_2)
00039 #define LED3_PIN  (GPIO_PIN_1)
00040 #define LED4_PIN  (GPIO_PIN_0)
00041 
00042 #define BUTTON_PORT (GPIOC)
00043 #define BUTTON_PIN  (GPIO_PIN_0)
00044 
00045 #define JOYSTICK_PORT      (GPIOB)
00046 #define JOYSTICK_LEFT_PIN  (GPIO_PIN_4)
00047 #define JOYSTICK_RIGHT_PIN (GPIO_PIN_5)
00048 #define JOYSTICK_UP_PIN    (GPIO_PIN_6)
00049 #define JOYSTICK_DOWN_PIN  (GPIO_PIN_7)
00050 
00051 #define JOYSTICK_SEL_PORT (GPIOD)
00052 #define JOYSTICK_SEL_PIN  (GPIO_PIN_7)
00053 /* Private function prototypes -----------------------------------------------*/
00054 /* Private functions ---------------------------------------------------------*/
00055 /* Private function prototypes -----------------------------------------------*/
00056 /* Public functions ----------------------------------------------------------*/
00057 
00058 #endif /* __MAIN_H__ */
00059 
00060 
00061 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
STM8 Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM8 8-bit Microcontrollers platform visit www.st.com