Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
TARGET_NUCLEO_F303RE/TARGET_STM/TARGET_NUCLEO_F303RE/PeripheralNames.h@93:e188a91d3eaa, 2015-02-03 (annotated)
- Committer:
- Kojto
- Date:
- Tue Feb 03 15:31:20 2015 +0000
- Revision:
- 93:e188a91d3eaa
Release 93 of the mbed library
Main changes:
- Renesas RZ_A1H bugfixes - i2c, ticker
- new targets - Nucleo F303RE, Nucleo F070RB, BLE SMURFS,
Dragonfly 411RE,
- BusXXX - is connected method, plus operators addition
- LPC8xx - I2c fixes
- timestamp_t reverted to uint32_t
- RTX - fixes regarding stack (alignment, magic word)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Kojto | 93:e188a91d3eaa | 1 | /* mbed Microcontroller Library |
Kojto | 93:e188a91d3eaa | 2 | ******************************************************************************* |
Kojto | 93:e188a91d3eaa | 3 | * Copyright (c) 2014, STMicroelectronics |
Kojto | 93:e188a91d3eaa | 4 | * All rights reserved. |
Kojto | 93:e188a91d3eaa | 5 | * |
Kojto | 93:e188a91d3eaa | 6 | * Redistribution and use in source and binary forms, with or without |
Kojto | 93:e188a91d3eaa | 7 | * modification, are permitted provided that the following conditions are met: |
Kojto | 93:e188a91d3eaa | 8 | * |
Kojto | 93:e188a91d3eaa | 9 | * 1. Redistributions of source code must retain the above copyright notice, |
Kojto | 93:e188a91d3eaa | 10 | * this list of conditions and the following disclaimer. |
Kojto | 93:e188a91d3eaa | 11 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
Kojto | 93:e188a91d3eaa | 12 | * this list of conditions and the following disclaimer in the documentation |
Kojto | 93:e188a91d3eaa | 13 | * and/or other materials provided with the distribution. |
Kojto | 93:e188a91d3eaa | 14 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
Kojto | 93:e188a91d3eaa | 15 | * may be used to endorse or promote products derived from this software |
Kojto | 93:e188a91d3eaa | 16 | * without specific prior written permission. |
Kojto | 93:e188a91d3eaa | 17 | * |
Kojto | 93:e188a91d3eaa | 18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
Kojto | 93:e188a91d3eaa | 19 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
Kojto | 93:e188a91d3eaa | 20 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
Kojto | 93:e188a91d3eaa | 21 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
Kojto | 93:e188a91d3eaa | 22 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
Kojto | 93:e188a91d3eaa | 23 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
Kojto | 93:e188a91d3eaa | 24 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
Kojto | 93:e188a91d3eaa | 25 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
Kojto | 93:e188a91d3eaa | 26 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
Kojto | 93:e188a91d3eaa | 27 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
Kojto | 93:e188a91d3eaa | 28 | ******************************************************************************* |
Kojto | 93:e188a91d3eaa | 29 | */ |
Kojto | 93:e188a91d3eaa | 30 | #ifndef MBED_PERIPHERALNAMES_H |
Kojto | 93:e188a91d3eaa | 31 | #define MBED_PERIPHERALNAMES_H |
Kojto | 93:e188a91d3eaa | 32 | |
Kojto | 93:e188a91d3eaa | 33 | #include "cmsis.h" |
Kojto | 93:e188a91d3eaa | 34 | |
Kojto | 93:e188a91d3eaa | 35 | #ifdef __cplusplus |
Kojto | 93:e188a91d3eaa | 36 | extern "C" { |
Kojto | 93:e188a91d3eaa | 37 | #endif |
Kojto | 93:e188a91d3eaa | 38 | |
Kojto | 93:e188a91d3eaa | 39 | typedef enum { |
Kojto | 93:e188a91d3eaa | 40 | ADC_1 = (int)ADC1_BASE, |
Kojto | 93:e188a91d3eaa | 41 | ADC_2 = (int)ADC2_BASE |
Kojto | 93:e188a91d3eaa | 42 | } ADCName; |
Kojto | 93:e188a91d3eaa | 43 | |
Kojto | 93:e188a91d3eaa | 44 | typedef enum { |
Kojto | 93:e188a91d3eaa | 45 | DAC_1 = (int)DAC_BASE |
Kojto | 93:e188a91d3eaa | 46 | } DACName; |
Kojto | 93:e188a91d3eaa | 47 | |
Kojto | 93:e188a91d3eaa | 48 | typedef enum { |
Kojto | 93:e188a91d3eaa | 49 | UART_1 = (int)USART1_BASE, |
Kojto | 93:e188a91d3eaa | 50 | UART_2 = (int)USART2_BASE, |
Kojto | 93:e188a91d3eaa | 51 | UART_3 = (int)USART3_BASE, |
Kojto | 93:e188a91d3eaa | 52 | UART_4 = (int)UART4_BASE, |
Kojto | 93:e188a91d3eaa | 53 | UART_5 = (int)UART5_BASE |
Kojto | 93:e188a91d3eaa | 54 | } UARTName; |
Kojto | 93:e188a91d3eaa | 55 | |
Kojto | 93:e188a91d3eaa | 56 | #define STDIO_UART_TX PA_2 |
Kojto | 93:e188a91d3eaa | 57 | #define STDIO_UART_RX PA_3 |
Kojto | 93:e188a91d3eaa | 58 | #define STDIO_UART UART_2 |
Kojto | 93:e188a91d3eaa | 59 | |
Kojto | 93:e188a91d3eaa | 60 | typedef enum { |
Kojto | 93:e188a91d3eaa | 61 | SPI_1 = (int)SPI1_BASE, |
Kojto | 93:e188a91d3eaa | 62 | SPI_2 = (int)SPI2_BASE, |
Kojto | 93:e188a91d3eaa | 63 | SPI_3 = (int)SPI3_BASE |
Kojto | 93:e188a91d3eaa | 64 | } SPIName; |
Kojto | 93:e188a91d3eaa | 65 | |
Kojto | 93:e188a91d3eaa | 66 | typedef enum { |
Kojto | 93:e188a91d3eaa | 67 | I2C_1 = (int)I2C1_BASE, |
Kojto | 93:e188a91d3eaa | 68 | I2C_2 = (int)I2C2_BASE, |
Kojto | 93:e188a91d3eaa | 69 | I2C_3 = (int)I2C3_BASE |
Kojto | 93:e188a91d3eaa | 70 | } I2CName; |
Kojto | 93:e188a91d3eaa | 71 | |
Kojto | 93:e188a91d3eaa | 72 | typedef enum { |
Kojto | 93:e188a91d3eaa | 73 | PWM_1 = (int)TIM1_BASE, |
Kojto | 93:e188a91d3eaa | 74 | PWM_2 = (int)TIM2_BASE, |
Kojto | 93:e188a91d3eaa | 75 | PWM_3 = (int)TIM3_BASE, |
Kojto | 93:e188a91d3eaa | 76 | PWM_4 = (int)TIM4_BASE, |
Kojto | 93:e188a91d3eaa | 77 | PWM_8 = (int)TIM8_BASE, |
Kojto | 93:e188a91d3eaa | 78 | PWM_15 = (int)TIM15_BASE, |
Kojto | 93:e188a91d3eaa | 79 | PWM_16 = (int)TIM16_BASE, |
Kojto | 93:e188a91d3eaa | 80 | PWM_17 = (int)TIM17_BASE |
Kojto | 93:e188a91d3eaa | 81 | } PWMName; |
Kojto | 93:e188a91d3eaa | 82 | |
Kojto | 93:e188a91d3eaa | 83 | #ifdef __cplusplus |
Kojto | 93:e188a91d3eaa | 84 | } |
Kojto | 93:e188a91d3eaa | 85 | #endif |
Kojto | 93:e188a91d3eaa | 86 | |
Kojto | 93:e188a91d3eaa | 87 | #endif |