BA / SerialCom

Fork of OmniWheels by Gustav Atmel

Committer:
gustavatmel
Date:
Tue May 01 15:55:34 2018 +0000
Revision:
2:798925c9e4a8
Parent:
1:9c5af431a1f1
bluetooth

Who changed what in which revision?

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