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