leo hendrickson / Mbed OS example-Ethernet-mbed-Cloud-connect
Committer:
leothedragon
Date:
Tue May 04 08:55:12 2021 +0000
Revision:
0:8f0bb79ddd48
nmn

Who changed what in which revision?

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