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.
BSP/x_nucleo_plc01a1_config.h@2:1ec0dea195f8, 2016-02-23 (annotated)
- Committer:
- Davidroid
- Date:
- Tue Feb 23 10:40:17 2016 +0000
- Revision:
- 2:1ec0dea195f8
- Child:
- 3:cce192eb931f
Re-design to keep coherence with other expansion boards.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Davidroid | 2:1ec0dea195f8 | 1 | /** |
| Davidroid | 2:1ec0dea195f8 | 2 | ****************************************************************************** |
| Davidroid | 2:1ec0dea195f8 | 3 | * @file x_nucleo_plc01a1_config.h |
| Davidroid | 2:1ec0dea195f8 | 4 | * @author AST / Software Platforms and Cloud |
| Davidroid | 2:1ec0dea195f8 | 5 | * @version V1.0 |
| Davidroid | 2:1ec0dea195f8 | 6 | * @date November 3rd, 2015 |
| Davidroid | 2:1ec0dea195f8 | 7 | * @brief Configuration header file for the X_NUCLEO_PLC01A1 expansion board. |
| Davidroid | 2:1ec0dea195f8 | 8 | ****************************************************************************** |
| Davidroid | 2:1ec0dea195f8 | 9 | * @attention |
| Davidroid | 2:1ec0dea195f8 | 10 | * |
| Davidroid | 2:1ec0dea195f8 | 11 | * <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2> |
| Davidroid | 2:1ec0dea195f8 | 12 | * |
| Davidroid | 2:1ec0dea195f8 | 13 | * Redistribution and use in source and binary forms, with or without modification, |
| Davidroid | 2:1ec0dea195f8 | 14 | * are permitted provided that the following conditions are met: |
| Davidroid | 2:1ec0dea195f8 | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
| Davidroid | 2:1ec0dea195f8 | 16 | * this list of conditions and the following disclaimer. |
| Davidroid | 2:1ec0dea195f8 | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
| Davidroid | 2:1ec0dea195f8 | 18 | * this list of conditions and the following disclaimer in the documentation |
| Davidroid | 2:1ec0dea195f8 | 19 | * and/or other materials provided with the distribution. |
| Davidroid | 2:1ec0dea195f8 | 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
| Davidroid | 2:1ec0dea195f8 | 21 | * may be used to endorse or promote products derived from this software |
| Davidroid | 2:1ec0dea195f8 | 22 | * without specific prior written permission. |
| Davidroid | 2:1ec0dea195f8 | 23 | * |
| Davidroid | 2:1ec0dea195f8 | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| Davidroid | 2:1ec0dea195f8 | 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| Davidroid | 2:1ec0dea195f8 | 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| Davidroid | 2:1ec0dea195f8 | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
| Davidroid | 2:1ec0dea195f8 | 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| Davidroid | 2:1ec0dea195f8 | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| Davidroid | 2:1ec0dea195f8 | 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
| Davidroid | 2:1ec0dea195f8 | 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| Davidroid | 2:1ec0dea195f8 | 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| Davidroid | 2:1ec0dea195f8 | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| Davidroid | 2:1ec0dea195f8 | 34 | * |
| Davidroid | 2:1ec0dea195f8 | 35 | ****************************************************************************** |
| Davidroid | 2:1ec0dea195f8 | 36 | */ |
| Davidroid | 2:1ec0dea195f8 | 37 | |
| Davidroid | 2:1ec0dea195f8 | 38 | |
| Davidroid | 2:1ec0dea195f8 | 39 | /* Generated with STM32CubeTOO -----------------------------------------------*/ |
| Davidroid | 2:1ec0dea195f8 | 40 | |
| Davidroid | 2:1ec0dea195f8 | 41 | |
| Davidroid | 2:1ec0dea195f8 | 42 | /* Define to prevent recursive inclusion -------------------------------------*/ |
| Davidroid | 2:1ec0dea195f8 | 43 | |
| Davidroid | 2:1ec0dea195f8 | 44 | #ifndef __X_NUCLEO_PLC01A1_CONFIG_H |
| Davidroid | 2:1ec0dea195f8 | 45 | #define __X_NUCLEO_PLC01A1_CONFIG_H |
| Davidroid | 2:1ec0dea195f8 | 46 | |
| Davidroid | 2:1ec0dea195f8 | 47 | |
| Davidroid | 2:1ec0dea195f8 | 48 | /* Definitions ---------------------------------------------------------------*/ |
| Davidroid | 2:1ec0dea195f8 | 49 | |
| Davidroid | 2:1ec0dea195f8 | 50 | /* ACTION --------------------------------------------------------------------* |
| Davidroid | 2:1ec0dea195f8 | 51 | * Specify here a configuration for I/O and interrupts' pins. * |
| Davidroid | 2:1ec0dea195f8 | 52 | * * |
| Davidroid | 2:1ec0dea195f8 | 53 | * Example: * |
| Davidroid | 2:1ec0dea195f8 | 54 | * // I2C. * |
| Davidroid | 2:1ec0dea195f8 | 55 | * #define EXPANSION_BOARD_PIN_I2C_SCL (D15) * |
| Davidroid | 2:1ec0dea195f8 | 56 | * #define EXPANSION_BOARD_PIN_I2C_SDA (D14) * |
| Davidroid | 2:1ec0dea195f8 | 57 | * * |
| Davidroid | 2:1ec0dea195f8 | 58 | * // SPI. * |
| Davidroid | 2:1ec0dea195f8 | 59 | * #define EXPANSION_BOARD_PIN_SPI_MOSI (D11) * |
| Davidroid | 2:1ec0dea195f8 | 60 | * #define EXPANSION_BOARD_PIN_SPI_MISO (D12) * |
| Davidroid | 2:1ec0dea195f8 | 61 | * #define EXPANSION_BOARD_PIN_SPI_SCLK (D13) * |
| Davidroid | 2:1ec0dea195f8 | 62 | * * |
| Davidroid | 2:1ec0dea195f8 | 63 | * // Interrupts. * |
| Davidroid | 2:1ec0dea195f8 | 64 | * #define EXPANSION_BOARD_PIN_INT_1 (A2) * |
| Davidroid | 2:1ec0dea195f8 | 65 | *----------------------------------------------------------------------------*/ |
| Davidroid | 2:1ec0dea195f8 | 66 | /* I2C. */ |
| Davidroid | 2:1ec0dea195f8 | 67 | #define X_NUCLEO_PLC01A1_PIN_I2C_SCL (D15) |
| Davidroid | 2:1ec0dea195f8 | 68 | #define X_NUCLEO_PLC01A1_PIN_I2C_SDA (D14) |
| Davidroid | 2:1ec0dea195f8 | 69 | |
| Davidroid | 2:1ec0dea195f8 | 70 | /* SPI. */ |
| Davidroid | 2:1ec0dea195f8 | 71 | #define X_NUCLEO_PLC01A1_PIN_SPI_MOSI (D11) |
| Davidroid | 2:1ec0dea195f8 | 72 | #define X_NUCLEO_PLC01A1_PIN_SPI_MISO (D12) |
| Davidroid | 2:1ec0dea195f8 | 73 | #define X_NUCLEO_PLC01A1_PIN_SPI_SCLK (D13) |
| Davidroid | 2:1ec0dea195f8 | 74 | |
| Davidroid | 2:1ec0dea195f8 | 75 | /* Interrupts. */ |
| Davidroid | 2:1ec0dea195f8 | 76 | #define X_NUCLEO_PLC01A1_PIN_INT_1 (A2) |
| Davidroid | 2:1ec0dea195f8 | 77 | |
| Davidroid | 2:1ec0dea195f8 | 78 | /* Maximum number of mounted "X-NUCLEO-PLC01A1" Expansion Boards. */ |
| Davidroid | 2:1ec0dea195f8 | 79 | #define EXPBRD_MOUNTED_NR_MAX (4) |
| Davidroid | 2:1ec0dea195f8 | 80 | |
| Davidroid | 2:1ec0dea195f8 | 81 | #endif /* __X_NUCLEO_PLC01A1_CONFIG_H */ |