Gleb Klochkov / Mbed OS Climatcontroll_Main

Dependencies:   esp8266-driver

Committer:
glebiuskv
Date:
Fri Apr 13 08:53:46 2018 +0000
Revision:
0:2f0e1e23c242
initial

Who changed what in which revision?

UserRevisionLine numberNew contents of line
glebiuskv 0:2f0e1e23c242 1 /*
glebiuskv 0:2f0e1e23c242 2 * Copyright (c) 2013 Nordic Semiconductor ASA
glebiuskv 0:2f0e1e23c242 3 * All rights reserved.
glebiuskv 0:2f0e1e23c242 4 *
glebiuskv 0:2f0e1e23c242 5 * Redistribution and use in source and binary forms, with or without modification,
glebiuskv 0:2f0e1e23c242 6 * are permitted provided that the following conditions are met:
glebiuskv 0:2f0e1e23c242 7 *
glebiuskv 0:2f0e1e23c242 8 * 1. Redistributions of source code must retain the above copyright notice, this list
glebiuskv 0:2f0e1e23c242 9 * of conditions and the following disclaimer.
glebiuskv 0:2f0e1e23c242 10 *
glebiuskv 0:2f0e1e23c242 11 * 2. Redistributions in binary form, except as embedded into a Nordic Semiconductor ASA
glebiuskv 0:2f0e1e23c242 12 * integrated circuit in a product or a software update for such product, must reproduce
glebiuskv 0:2f0e1e23c242 13 * the above copyright notice, this list of conditions and the following disclaimer in
glebiuskv 0:2f0e1e23c242 14 * the documentation and/or other materials provided with the distribution.
glebiuskv 0:2f0e1e23c242 15 *
glebiuskv 0:2f0e1e23c242 16 * 3. Neither the name of Nordic Semiconductor ASA nor the names of its contributors may be
glebiuskv 0:2f0e1e23c242 17 * used to endorse or promote products derived from this software without specific prior
glebiuskv 0:2f0e1e23c242 18 * written permission.
glebiuskv 0:2f0e1e23c242 19 *
glebiuskv 0:2f0e1e23c242 20 * 4. This software, with or without modification, must only be used with a
glebiuskv 0:2f0e1e23c242 21 * Nordic Semiconductor ASA integrated circuit.
glebiuskv 0:2f0e1e23c242 22 *
glebiuskv 0:2f0e1e23c242 23 * 5. Any software provided in binary or object form under this license must not be reverse
glebiuskv 0:2f0e1e23c242 24 * engineered, decompiled, modified and/or disassembled.
glebiuskv 0:2f0e1e23c242 25 *
glebiuskv 0:2f0e1e23c242 26 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
glebiuskv 0:2f0e1e23c242 27 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
glebiuskv 0:2f0e1e23c242 28 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
glebiuskv 0:2f0e1e23c242 29 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
glebiuskv 0:2f0e1e23c242 30 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
glebiuskv 0:2f0e1e23c242 31 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
glebiuskv 0:2f0e1e23c242 32 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
glebiuskv 0:2f0e1e23c242 33 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
glebiuskv 0:2f0e1e23c242 34 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
glebiuskv 0:2f0e1e23c242 35 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
glebiuskv 0:2f0e1e23c242 36 *
glebiuskv 0:2f0e1e23c242 37 */
glebiuskv 0:2f0e1e23c242 38
glebiuskv 0:2f0e1e23c242 39 #ifndef MBED_OBJECTS_H
glebiuskv 0:2f0e1e23c242 40 #define MBED_OBJECTS_H
glebiuskv 0:2f0e1e23c242 41
glebiuskv 0:2f0e1e23c242 42 #include "cmsis.h"
glebiuskv 0:2f0e1e23c242 43 #include "PortNames.h"
glebiuskv 0:2f0e1e23c242 44 #include "PeripheralNames.h"
glebiuskv 0:2f0e1e23c242 45 #include "PinNames.h"
glebiuskv 0:2f0e1e23c242 46
glebiuskv 0:2f0e1e23c242 47 #ifdef __cplusplus
glebiuskv 0:2f0e1e23c242 48 extern "C" {
glebiuskv 0:2f0e1e23c242 49 #endif
glebiuskv 0:2f0e1e23c242 50
glebiuskv 0:2f0e1e23c242 51 struct serial_s {
glebiuskv 0:2f0e1e23c242 52 uint32_t placeholder; // struct is unused by nRF5x API implementation
glebiuskv 0:2f0e1e23c242 53 }; // but it must be not empty (required by strict compiler - IAR)
glebiuskv 0:2f0e1e23c242 54
glebiuskv 0:2f0e1e23c242 55 struct spi_s {
glebiuskv 0:2f0e1e23c242 56 uint8_t spi_idx;
glebiuskv 0:2f0e1e23c242 57 };
glebiuskv 0:2f0e1e23c242 58
glebiuskv 0:2f0e1e23c242 59 struct port_s {
glebiuskv 0:2f0e1e23c242 60 PortName port;
glebiuskv 0:2f0e1e23c242 61 uint32_t mask;
glebiuskv 0:2f0e1e23c242 62 };
glebiuskv 0:2f0e1e23c242 63
glebiuskv 0:2f0e1e23c242 64 struct pwmout_s {
glebiuskv 0:2f0e1e23c242 65 PWMName pwm_name;
glebiuskv 0:2f0e1e23c242 66 PinName pin;
glebiuskv 0:2f0e1e23c242 67 uint8_t pwm_channel;
glebiuskv 0:2f0e1e23c242 68 void * pwm_struct;
glebiuskv 0:2f0e1e23c242 69 };
glebiuskv 0:2f0e1e23c242 70
glebiuskv 0:2f0e1e23c242 71 struct i2c_s {
glebiuskv 0:2f0e1e23c242 72 uint8_t twi_idx;
glebiuskv 0:2f0e1e23c242 73 };
glebiuskv 0:2f0e1e23c242 74
glebiuskv 0:2f0e1e23c242 75 struct analogin_s {
glebiuskv 0:2f0e1e23c242 76 ADCName adc;
glebiuskv 0:2f0e1e23c242 77 uint8_t adc_pin;
glebiuskv 0:2f0e1e23c242 78 };
glebiuskv 0:2f0e1e23c242 79
glebiuskv 0:2f0e1e23c242 80 struct gpio_irq_s {
glebiuskv 0:2f0e1e23c242 81 uint32_t ch;
glebiuskv 0:2f0e1e23c242 82 };
glebiuskv 0:2f0e1e23c242 83
glebiuskv 0:2f0e1e23c242 84 struct flash_s {
glebiuskv 0:2f0e1e23c242 85 uint32_t placeholder;
glebiuskv 0:2f0e1e23c242 86 };
glebiuskv 0:2f0e1e23c242 87
glebiuskv 0:2f0e1e23c242 88 struct trng_s {
glebiuskv 0:2f0e1e23c242 89 uint32_t placeholder;
glebiuskv 0:2f0e1e23c242 90 };
glebiuskv 0:2f0e1e23c242 91
glebiuskv 0:2f0e1e23c242 92 #include "gpio_object.h"
glebiuskv 0:2f0e1e23c242 93
glebiuskv 0:2f0e1e23c242 94 #ifdef __cplusplus
glebiuskv 0:2f0e1e23c242 95 }
glebiuskv 0:2f0e1e23c242 96 #endif
glebiuskv 0:2f0e1e23c242 97
glebiuskv 0:2f0e1e23c242 98 #endif