Martin Gurtner / HKC_MiniCheetah
Committer:
MartinGurtner
Date:
Fri Jan 22 13:10:37 2021 +0000
Revision:
60:8399756e1ba1
.

Who changed what in which revision?

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