Christos Vasilakis
/
pelion-example-common-DISCO_F413ZH
pelion-example-common-DISCO_F413ZH
targets/TARGET_STM32L475xG_SRAM2/objects.h@23:64f3f756acf6, 2019-03-21 (annotated)
- Committer:
- screamer
- Date:
- Thu Mar 21 22:03:46 2019 +0000
- Revision:
- 23:64f3f756acf6
Update target support for DISCO_L475VG_IOT01A
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
screamer | 23:64f3f756acf6 | 1 | /* mbed Microcontroller Library |
screamer | 23:64f3f756acf6 | 2 | ******************************************************************************* |
screamer | 23:64f3f756acf6 | 3 | * Copyright (c) 2017, STMicroelectronics |
screamer | 23:64f3f756acf6 | 4 | * All rights reserved. |
screamer | 23:64f3f756acf6 | 5 | * |
screamer | 23:64f3f756acf6 | 6 | * Redistribution and use in source and binary forms, with or without |
screamer | 23:64f3f756acf6 | 7 | * modification, are permitted provided that the following conditions are met: |
screamer | 23:64f3f756acf6 | 8 | * |
screamer | 23:64f3f756acf6 | 9 | * 1. Redistributions of source code must retain the above copyright notice, |
screamer | 23:64f3f756acf6 | 10 | * this list of conditions and the following disclaimer. |
screamer | 23:64f3f756acf6 | 11 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
screamer | 23:64f3f756acf6 | 12 | * this list of conditions and the following disclaimer in the documentation |
screamer | 23:64f3f756acf6 | 13 | * and/or other materials provided with the distribution. |
screamer | 23:64f3f756acf6 | 14 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
screamer | 23:64f3f756acf6 | 15 | * may be used to endorse or promote products derived from this software |
screamer | 23:64f3f756acf6 | 16 | * without specific prior written permission. |
screamer | 23:64f3f756acf6 | 17 | * |
screamer | 23:64f3f756acf6 | 18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
screamer | 23:64f3f756acf6 | 19 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
screamer | 23:64f3f756acf6 | 20 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
screamer | 23:64f3f756acf6 | 21 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
screamer | 23:64f3f756acf6 | 22 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
screamer | 23:64f3f756acf6 | 23 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
screamer | 23:64f3f756acf6 | 24 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
screamer | 23:64f3f756acf6 | 25 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
screamer | 23:64f3f756acf6 | 26 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
screamer | 23:64f3f756acf6 | 27 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
screamer | 23:64f3f756acf6 | 28 | ******************************************************************************* |
screamer | 23:64f3f756acf6 | 29 | */ |
screamer | 23:64f3f756acf6 | 30 | #ifndef MBED_OBJECTS_H |
screamer | 23:64f3f756acf6 | 31 | #define MBED_OBJECTS_H |
screamer | 23:64f3f756acf6 | 32 | |
screamer | 23:64f3f756acf6 | 33 | #include "cmsis.h" |
screamer | 23:64f3f756acf6 | 34 | #include "PortNames.h" |
screamer | 23:64f3f756acf6 | 35 | #include "PeripheralNames.h" |
screamer | 23:64f3f756acf6 | 36 | #include "PinNames.h" |
screamer | 23:64f3f756acf6 | 37 | |
screamer | 23:64f3f756acf6 | 38 | #ifdef __cplusplus |
screamer | 23:64f3f756acf6 | 39 | extern "C" { |
screamer | 23:64f3f756acf6 | 40 | #endif |
screamer | 23:64f3f756acf6 | 41 | |
screamer | 23:64f3f756acf6 | 42 | struct gpio_irq_s { |
screamer | 23:64f3f756acf6 | 43 | IRQn_Type irq_n; |
screamer | 23:64f3f756acf6 | 44 | uint32_t irq_index; |
screamer | 23:64f3f756acf6 | 45 | uint32_t event; |
screamer | 23:64f3f756acf6 | 46 | PinName pin; |
screamer | 23:64f3f756acf6 | 47 | }; |
screamer | 23:64f3f756acf6 | 48 | |
screamer | 23:64f3f756acf6 | 49 | struct port_s { |
screamer | 23:64f3f756acf6 | 50 | PortName port; |
screamer | 23:64f3f756acf6 | 51 | uint32_t mask; |
screamer | 23:64f3f756acf6 | 52 | PinDirection direction; |
screamer | 23:64f3f756acf6 | 53 | __IO uint32_t *reg_in; |
screamer | 23:64f3f756acf6 | 54 | __IO uint32_t *reg_out; |
screamer | 23:64f3f756acf6 | 55 | }; |
screamer | 23:64f3f756acf6 | 56 | |
screamer | 23:64f3f756acf6 | 57 | struct trng_s { |
screamer | 23:64f3f756acf6 | 58 | RNG_HandleTypeDef handle; |
screamer | 23:64f3f756acf6 | 59 | }; |
screamer | 23:64f3f756acf6 | 60 | |
screamer | 23:64f3f756acf6 | 61 | struct qspi_s { |
screamer | 23:64f3f756acf6 | 62 | QSPI_HandleTypeDef handle; |
screamer | 23:64f3f756acf6 | 63 | PinName io0; |
screamer | 23:64f3f756acf6 | 64 | PinName io1; |
screamer | 23:64f3f756acf6 | 65 | PinName io2; |
screamer | 23:64f3f756acf6 | 66 | PinName io3; |
screamer | 23:64f3f756acf6 | 67 | PinName sclk; |
screamer | 23:64f3f756acf6 | 68 | PinName ssel; |
screamer | 23:64f3f756acf6 | 69 | }; |
screamer | 23:64f3f756acf6 | 70 | |
screamer | 23:64f3f756acf6 | 71 | #include "common_objects.h" |
screamer | 23:64f3f756acf6 | 72 | |
screamer | 23:64f3f756acf6 | 73 | #ifdef __cplusplus |
screamer | 23:64f3f756acf6 | 74 | } |
screamer | 23:64f3f756acf6 | 75 | #endif |
screamer | 23:64f3f756acf6 | 76 | |
screamer | 23:64f3f756acf6 | 77 | #endif |