won't compile

Committer:
richardv
Date:
Wed Nov 02 23:50:52 2016 +0000
Revision:
0:b079fa4ed182
DMA RAM DAC

Who changed what in which revision?

UserRevisionLine numberNew contents of line
richardv 0:b079fa4ed182 1 /**
richardv 0:b079fa4ed182 2 ******************************************************************************
richardv 0:b079fa4ed182 3 * @file stm32f3348_discovery.h
richardv 0:b079fa4ed182 4 * @author MCD Application Team
richardv 0:b079fa4ed182 5 * @version V1.0.0
richardv 0:b079fa4ed182 6 * @date 20-June-2014
richardv 0:b079fa4ed182 7 * @brief This file contains definitions for STM32F3348 DISCO's Leds, push-buttons
richardv 0:b079fa4ed182 8 * hardware resources.
richardv 0:b079fa4ed182 9 ******************************************************************************
richardv 0:b079fa4ed182 10 * @attention
richardv 0:b079fa4ed182 11 *
richardv 0:b079fa4ed182 12 * <h2><center>&copy; COPYRIGHT 2014 STMicroelectronics</center></h2>
richardv 0:b079fa4ed182 13 *
richardv 0:b079fa4ed182 14 * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
richardv 0:b079fa4ed182 15 * You may not use this file except in compliance with the License.
richardv 0:b079fa4ed182 16 * You may obtain a copy of the License at:
richardv 0:b079fa4ed182 17 *
richardv 0:b079fa4ed182 18 * http://www.st.com/software_license_agreement_liberty_v2
richardv 0:b079fa4ed182 19 *
richardv 0:b079fa4ed182 20 * Unless required by applicable law or agreed to in writing, software
richardv 0:b079fa4ed182 21 * distributed under the License is distributed on an "AS IS" BASIS,
richardv 0:b079fa4ed182 22 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
richardv 0:b079fa4ed182 23 * See the License for the specific language governing permissions and
richardv 0:b079fa4ed182 24 * limitations under the License.
richardv 0:b079fa4ed182 25 *
richardv 0:b079fa4ed182 26 ******************************************************************************
richardv 0:b079fa4ed182 27 */
richardv 0:b079fa4ed182 28
richardv 0:b079fa4ed182 29 /* Define to prevent recursive inclusion -------------------------------------*/
richardv 0:b079fa4ed182 30 #ifndef __STM32F3348_DISCOVERY_H
richardv 0:b079fa4ed182 31 #define __STM32F3348_DISCOVERY_H
richardv 0:b079fa4ed182 32
richardv 0:b079fa4ed182 33 #ifdef __cplusplus
richardv 0:b079fa4ed182 34 extern "C" {
richardv 0:b079fa4ed182 35 #endif
richardv 0:b079fa4ed182 36
richardv 0:b079fa4ed182 37 /* Includes ------------------------------------------------------------------*/
richardv 0:b079fa4ed182 38 #include "stm32f30x.h"
richardv 0:b079fa4ed182 39
richardv 0:b079fa4ed182 40
richardv 0:b079fa4ed182 41 /** @addtogroup Utilities
richardv 0:b079fa4ed182 42 * @{
richardv 0:b079fa4ed182 43 */
richardv 0:b079fa4ed182 44
richardv 0:b079fa4ed182 45 /** @addtogroup STM32F3348_DISCOVERY
richardv 0:b079fa4ed182 46 * @{
richardv 0:b079fa4ed182 47 */
richardv 0:b079fa4ed182 48
richardv 0:b079fa4ed182 49 /** @addtogroup STM32F3348_DISCOVERY_LOW_LEVEL
richardv 0:b079fa4ed182 50 * @{
richardv 0:b079fa4ed182 51 */
richardv 0:b079fa4ed182 52
richardv 0:b079fa4ed182 53 /** @defgroup STM32F3348_DISCOVERY_LOW_LEVEL_Exported_Types
richardv 0:b079fa4ed182 54 * @{
richardv 0:b079fa4ed182 55 */
richardv 0:b079fa4ed182 56 typedef enum
richardv 0:b079fa4ed182 57 {
richardv 0:b079fa4ed182 58 LED3 = 0,
richardv 0:b079fa4ed182 59 LED4 = 1,
richardv 0:b079fa4ed182 60 LED5 = 2,
richardv 0:b079fa4ed182 61 LED6 = 3
richardv 0:b079fa4ed182 62 } Led_TypeDef;
richardv 0:b079fa4ed182 63
richardv 0:b079fa4ed182 64 typedef enum
richardv 0:b079fa4ed182 65 {
richardv 0:b079fa4ed182 66 BUTTON_USER = 0,
richardv 0:b079fa4ed182 67 } Button_TypeDef;
richardv 0:b079fa4ed182 68
richardv 0:b079fa4ed182 69 typedef enum
richardv 0:b079fa4ed182 70 {
richardv 0:b079fa4ed182 71 BUTTON_MODE_GPIO = 0,
richardv 0:b079fa4ed182 72 BUTTON_MODE_EXTI = 1
richardv 0:b079fa4ed182 73 } ButtonMode_TypeDef;
richardv 0:b079fa4ed182 74
richardv 0:b079fa4ed182 75 /**
richardv 0:b079fa4ed182 76 * @}
richardv 0:b079fa4ed182 77 */
richardv 0:b079fa4ed182 78
richardv 0:b079fa4ed182 79 /** @defgroup STM32F3348_DISCOVERY_LOW_LEVEL_Exported_Constants
richardv 0:b079fa4ed182 80 * @{
richardv 0:b079fa4ed182 81 */
richardv 0:b079fa4ed182 82
richardv 0:b079fa4ed182 83 /** @addtogroup STM32F3348_DISCOVERY_LOW_LEVEL_LED
richardv 0:b079fa4ed182 84 * @{
richardv 0:b079fa4ed182 85 */
richardv 0:b079fa4ed182 86 #define LEDn 4
richardv 0:b079fa4ed182 87
richardv 0:b079fa4ed182 88 #define LED3_PIN GPIO_Pin_6
richardv 0:b079fa4ed182 89 #define LED3_GPIO_PORT GPIOB
richardv 0:b079fa4ed182 90 #define LED3_GPIO_CLK RCC_AHBPeriph_GPIOB
richardv 0:b079fa4ed182 91
richardv 0:b079fa4ed182 92 #define LED4_PIN GPIO_Pin_8
richardv 0:b079fa4ed182 93 #define LED4_GPIO_PORT GPIOB
richardv 0:b079fa4ed182 94 #define LED4_GPIO_CLK RCC_AHBPeriph_GPIOB
richardv 0:b079fa4ed182 95
richardv 0:b079fa4ed182 96 #define LED5_PIN GPIO_Pin_9
richardv 0:b079fa4ed182 97 #define LED5_GPIO_PORT GPIOB
richardv 0:b079fa4ed182 98 #define LED5_GPIO_CLK RCC_AHBPeriph_GPIOB
richardv 0:b079fa4ed182 99
richardv 0:b079fa4ed182 100 #define LED6_PIN GPIO_Pin_7
richardv 0:b079fa4ed182 101 #define LED6_GPIO_PORT GPIOB
richardv 0:b079fa4ed182 102 #define LED6_GPIO_CLK RCC_AHBPeriph_GPIOB
richardv 0:b079fa4ed182 103
richardv 0:b079fa4ed182 104 /**
richardv 0:b079fa4ed182 105 * @}
richardv 0:b079fa4ed182 106 */
richardv 0:b079fa4ed182 107
richardv 0:b079fa4ed182 108 /** @addtogroup STM32F3348_DISCOVERY_LOW_LEVEL_BUTTON
richardv 0:b079fa4ed182 109 * @{
richardv 0:b079fa4ed182 110 */
richardv 0:b079fa4ed182 111 #define BUTTONn 1
richardv 0:b079fa4ed182 112
richardv 0:b079fa4ed182 113 /**
richardv 0:b079fa4ed182 114 * @brief User & Wakeup push-button
richardv 0:b079fa4ed182 115 */
richardv 0:b079fa4ed182 116 #define USER_BUTTON_PIN GPIO_Pin_0
richardv 0:b079fa4ed182 117 #define USER_BUTTON_GPIO_PORT GPIOA
richardv 0:b079fa4ed182 118 #define USER_BUTTON_GPIO_CLK RCC_AHBPeriph_GPIOA
richardv 0:b079fa4ed182 119 #define USER_BUTTON_EXTI_LINE EXTI_Line0
richardv 0:b079fa4ed182 120 #define USER_BUTTON_EXTI_PORT_SOURCE EXTI_PortSourceGPIOA
richardv 0:b079fa4ed182 121 #define USER_BUTTON_EXTI_PIN_SOURCE EXTI_PinSource0
richardv 0:b079fa4ed182 122 #define USER_BUTTON_EXTI_IRQn EXTI0_IRQn
richardv 0:b079fa4ed182 123 /**
richardv 0:b079fa4ed182 124 * @}
richardv 0:b079fa4ed182 125 */
richardv 0:b079fa4ed182 126
richardv 0:b079fa4ed182 127 /**
richardv 0:b079fa4ed182 128 * @}
richardv 0:b079fa4ed182 129 */
richardv 0:b079fa4ed182 130
richardv 0:b079fa4ed182 131 /** @defgroup STM32F3348_DISCOVERY_LOW_LEVEL_Exported_Functions
richardv 0:b079fa4ed182 132 * @{
richardv 0:b079fa4ed182 133 */
richardv 0:b079fa4ed182 134 void STM_EVAL_LEDInit(Led_TypeDef Led);
richardv 0:b079fa4ed182 135 void STM_EVAL_LEDOn(Led_TypeDef Led);
richardv 0:b079fa4ed182 136 void STM_EVAL_LEDOff(Led_TypeDef Led);
richardv 0:b079fa4ed182 137 void STM_EVAL_LEDToggle(Led_TypeDef Led);
richardv 0:b079fa4ed182 138 void STM_EVAL_PBInit(Button_TypeDef Button, ButtonMode_TypeDef Button_Mode);
richardv 0:b079fa4ed182 139 uint32_t STM_EVAL_PBGetState(Button_TypeDef Button);
richardv 0:b079fa4ed182 140
richardv 0:b079fa4ed182 141 /**
richardv 0:b079fa4ed182 142 * @}
richardv 0:b079fa4ed182 143 */
richardv 0:b079fa4ed182 144
richardv 0:b079fa4ed182 145 #ifdef __cplusplus
richardv 0:b079fa4ed182 146 }
richardv 0:b079fa4ed182 147 #endif
richardv 0:b079fa4ed182 148
richardv 0:b079fa4ed182 149 #endif /* __STM32F3348_DISCOVERY_H */
richardv 0:b079fa4ed182 150 /**
richardv 0:b079fa4ed182 151 * @}
richardv 0:b079fa4ed182 152 */
richardv 0:b079fa4ed182 153
richardv 0:b079fa4ed182 154 /**
richardv 0:b079fa4ed182 155 * @}
richardv 0:b079fa4ed182 156 */
richardv 0:b079fa4ed182 157
richardv 0:b079fa4ed182 158 /**
richardv 0:b079fa4ed182 159 * @}
richardv 0:b079fa4ed182 160 */
richardv 0:b079fa4ed182 161
richardv 0:b079fa4ed182 162 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/