mbed library sources. Supersedes mbed-src.
Fork of mbed by
targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/PeripheralNames.h@148:4802eb17e82b, 2016-10-17 (annotated)
- Committer:
- rodriguise
- Date:
- Mon Oct 17 18:47:01 2016 +0000
- Revision:
- 148:4802eb17e82b
- Parent:
- 147:30b64687e01f
backup
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
<> | 147:30b64687e01f | 1 | /* mbed Microcontroller Library |
<> | 147:30b64687e01f | 2 | ******************************************************************************* |
<> | 147:30b64687e01f | 3 | * Copyright (c) 2016, STMicroelectronics |
<> | 147:30b64687e01f | 4 | * All rights reserved. |
<> | 147:30b64687e01f | 5 | * |
<> | 147:30b64687e01f | 6 | * Redistribution and use in source and binary forms, with or without |
<> | 147:30b64687e01f | 7 | * modification, are permitted provided that the following conditions are met: |
<> | 147:30b64687e01f | 8 | * |
<> | 147:30b64687e01f | 9 | * 1. Redistributions of source code must retain the above copyright notice, |
<> | 147:30b64687e01f | 10 | * this list of conditions and the following disclaimer. |
<> | 147:30b64687e01f | 11 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
<> | 147:30b64687e01f | 12 | * this list of conditions and the following disclaimer in the documentation |
<> | 147:30b64687e01f | 13 | * and/or other materials provided with the distribution. |
<> | 147:30b64687e01f | 14 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
<> | 147:30b64687e01f | 15 | * may be used to endorse or promote products derived from this software |
<> | 147:30b64687e01f | 16 | * without specific prior written permission. |
<> | 147:30b64687e01f | 17 | * |
<> | 147:30b64687e01f | 18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
<> | 147:30b64687e01f | 19 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
<> | 147:30b64687e01f | 20 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
<> | 147:30b64687e01f | 21 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
<> | 147:30b64687e01f | 22 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
<> | 147:30b64687e01f | 23 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
<> | 147:30b64687e01f | 24 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
<> | 147:30b64687e01f | 25 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
<> | 147:30b64687e01f | 26 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
<> | 147:30b64687e01f | 27 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
<> | 147:30b64687e01f | 28 | ******************************************************************************* |
<> | 147:30b64687e01f | 29 | */ |
<> | 147:30b64687e01f | 30 | #ifndef MBED_PERIPHERALNAMES_H |
<> | 147:30b64687e01f | 31 | #define MBED_PERIPHERALNAMES_H |
<> | 147:30b64687e01f | 32 | |
<> | 147:30b64687e01f | 33 | #include "cmsis.h" |
<> | 147:30b64687e01f | 34 | |
<> | 147:30b64687e01f | 35 | #ifdef __cplusplus |
<> | 147:30b64687e01f | 36 | extern "C" { |
<> | 147:30b64687e01f | 37 | #endif |
<> | 147:30b64687e01f | 38 | |
<> | 147:30b64687e01f | 39 | typedef enum { |
<> | 147:30b64687e01f | 40 | ADC_1 = (int)ADC1_BASE, |
<> | 147:30b64687e01f | 41 | ADC_2 = (int)ADC2_BASE, |
<> | 147:30b64687e01f | 42 | ADC_3 = (int)ADC3_BASE |
<> | 147:30b64687e01f | 43 | } ADCName; |
<> | 147:30b64687e01f | 44 | |
<> | 147:30b64687e01f | 45 | typedef enum { |
<> | 147:30b64687e01f | 46 | DAC_1 = DAC_BASE |
<> | 147:30b64687e01f | 47 | } DACName; |
<> | 147:30b64687e01f | 48 | |
<> | 147:30b64687e01f | 49 | typedef enum { |
<> | 147:30b64687e01f | 50 | UART_1 = (int)USART1_BASE, |
<> | 147:30b64687e01f | 51 | UART_2 = (int)USART2_BASE, |
<> | 147:30b64687e01f | 52 | UART_3 = (int)USART3_BASE, |
<> | 147:30b64687e01f | 53 | UART_4 = (int)UART4_BASE, |
<> | 147:30b64687e01f | 54 | UART_5 = (int)UART5_BASE, |
<> | 147:30b64687e01f | 55 | UART_6 = (int)USART6_BASE, |
<> | 147:30b64687e01f | 56 | UART_7 = (int)UART7_BASE, |
<> | 147:30b64687e01f | 57 | UART_8 = (int)UART8_BASE |
<> | 147:30b64687e01f | 58 | } UARTName; |
<> | 147:30b64687e01f | 59 | |
<> | 147:30b64687e01f | 60 | #define STDIO_UART_TX PA_9 |
<> | 147:30b64687e01f | 61 | #define STDIO_UART_RX PA_10 |
<> | 147:30b64687e01f | 62 | #define STDIO_UART UART_1 |
<> | 147:30b64687e01f | 63 | |
<> | 147:30b64687e01f | 64 | typedef enum { |
<> | 147:30b64687e01f | 65 | SPI_1 = (int)SPI1_BASE, |
<> | 147:30b64687e01f | 66 | SPI_2 = (int)SPI2_BASE, |
<> | 147:30b64687e01f | 67 | SPI_3 = (int)SPI3_BASE, |
<> | 147:30b64687e01f | 68 | SPI_4 = (int)SPI4_BASE, |
<> | 147:30b64687e01f | 69 | SPI_5 = (int)SPI5_BASE, |
<> | 147:30b64687e01f | 70 | SPI_6 = (int)SPI6_BASE |
<> | 147:30b64687e01f | 71 | } SPIName; |
<> | 147:30b64687e01f | 72 | |
<> | 147:30b64687e01f | 73 | typedef enum { |
<> | 147:30b64687e01f | 74 | I2C_1 = (int)I2C1_BASE, |
<> | 147:30b64687e01f | 75 | I2C_2 = (int)I2C2_BASE, |
<> | 147:30b64687e01f | 76 | I2C_3 = (int)I2C3_BASE, |
<> | 147:30b64687e01f | 77 | I2C_4 = (int)I2C4_BASE |
<> | 147:30b64687e01f | 78 | } I2CName; |
<> | 147:30b64687e01f | 79 | |
<> | 147:30b64687e01f | 80 | typedef enum { |
<> | 147:30b64687e01f | 81 | PWM_1 = (int)TIM1_BASE, |
<> | 147:30b64687e01f | 82 | PWM_2 = (int)TIM2_BASE, |
<> | 147:30b64687e01f | 83 | PWM_3 = (int)TIM3_BASE, |
<> | 147:30b64687e01f | 84 | PWM_4 = (int)TIM4_BASE, |
<> | 147:30b64687e01f | 85 | PWM_5 = (int)TIM5_BASE, |
<> | 147:30b64687e01f | 86 | PWM_8 = (int)TIM8_BASE, |
<> | 147:30b64687e01f | 87 | PWM_9 = (int)TIM9_BASE, |
<> | 147:30b64687e01f | 88 | PWM_10 = (int)TIM10_BASE, |
<> | 147:30b64687e01f | 89 | PWM_11 = (int)TIM11_BASE, |
<> | 147:30b64687e01f | 90 | PWM_12 = (int)TIM12_BASE, |
<> | 147:30b64687e01f | 91 | PWM_13 = (int)TIM13_BASE, |
<> | 147:30b64687e01f | 92 | PWM_14 = (int)TIM14_BASE |
<> | 147:30b64687e01f | 93 | } PWMName; |
<> | 147:30b64687e01f | 94 | |
<> | 147:30b64687e01f | 95 | typedef enum { |
<> | 147:30b64687e01f | 96 | CAN_1 = (int)CAN1_BASE, |
<> | 147:30b64687e01f | 97 | CAN_2 = (int)CAN2_BASE |
<> | 147:30b64687e01f | 98 | } CANName; |
<> | 147:30b64687e01f | 99 | |
<> | 147:30b64687e01f | 100 | #ifdef __cplusplus |
<> | 147:30b64687e01f | 101 | } |
<> | 147:30b64687e01f | 102 | #endif |
<> | 147:30b64687e01f | 103 | |
<> | 147:30b64687e01f | 104 | #endif |