FORMULA GENERAL numero imaginario o real

Dependencies:   mbed STM32F103C8T6_Hello

Committer:
JasperQM
Date:
Fri Sep 13 16:46:51 2019 +0000
Revision:
14:596a61f27f36
Formula General,resultado real o imaginario

Who changed what in which revision?

UserRevisionLine numberNew contents of line
JasperQM 14:596a61f27f36 1 /* mbed Microcontroller Library
JasperQM 14:596a61f27f36 2 *******************************************************************************
JasperQM 14:596a61f27f36 3 * Copyright (c) 2014, STMicroelectronics
JasperQM 14:596a61f27f36 4 * All rights reserved.
JasperQM 14:596a61f27f36 5 *
JasperQM 14:596a61f27f36 6 * Redistribution and use in source and binary forms, with or without
JasperQM 14:596a61f27f36 7 * modification, are permitted provided that the following conditions are met:
JasperQM 14:596a61f27f36 8 *
JasperQM 14:596a61f27f36 9 * 1. Redistributions of source code must retain the above copyright notice,
JasperQM 14:596a61f27f36 10 * this list of conditions and the following disclaimer.
JasperQM 14:596a61f27f36 11 * 2. Redistributions in binary form must reproduce the above copyright notice,
JasperQM 14:596a61f27f36 12 * this list of conditions and the following disclaimer in the documentation
JasperQM 14:596a61f27f36 13 * and/or other materials provided with the distribution.
JasperQM 14:596a61f27f36 14 * 3. Neither the name of STMicroelectronics nor the names of its contributors
JasperQM 14:596a61f27f36 15 * may be used to endorse or promote products derived from this software
JasperQM 14:596a61f27f36 16 * without specific prior written permission.
JasperQM 14:596a61f27f36 17 *
JasperQM 14:596a61f27f36 18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
JasperQM 14:596a61f27f36 19 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
JasperQM 14:596a61f27f36 20 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
JasperQM 14:596a61f27f36 21 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
JasperQM 14:596a61f27f36 22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
JasperQM 14:596a61f27f36 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
JasperQM 14:596a61f27f36 24 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
JasperQM 14:596a61f27f36 25 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
JasperQM 14:596a61f27f36 26 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
JasperQM 14:596a61f27f36 27 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
JasperQM 14:596a61f27f36 28 *******************************************************************************
JasperQM 14:596a61f27f36 29 *
JasperQM 14:596a61f27f36 30 * Modified by Zoltan Hudak 2017
JasperQM 14:596a61f27f36 31 *
JasperQM 14:596a61f27f36 32 */
JasperQM 14:596a61f27f36 33 #ifndef MBED_PINNAMES_H
JasperQM 14:596a61f27f36 34 #define MBED_PINNAMES_H
JasperQM 14:596a61f27f36 35
JasperQM 14:596a61f27f36 36 #include "cmsis.h"
JasperQM 14:596a61f27f36 37 #include "PinNamesTypes.h"
JasperQM 14:596a61f27f36 38
JasperQM 14:596a61f27f36 39 #ifdef __cplusplus
JasperQM 14:596a61f27f36 40 extern "C" {
JasperQM 14:596a61f27f36 41 #endif
JasperQM 14:596a61f27f36 42
JasperQM 14:596a61f27f36 43 typedef enum {
JasperQM 14:596a61f27f36 44 // Not connected
JasperQM 14:596a61f27f36 45 NC = (int)0xFFFFFFFF,
JasperQM 14:596a61f27f36 46
JasperQM 14:596a61f27f36 47 // Ports
JasperQM 14:596a61f27f36 48 PA_0 = 0x00,
JasperQM 14:596a61f27f36 49 PA_1 = 0x01,
JasperQM 14:596a61f27f36 50 PA_2 = 0x02,
JasperQM 14:596a61f27f36 51 PA_3 = 0x03,
JasperQM 14:596a61f27f36 52 PA_4 = 0x04,
JasperQM 14:596a61f27f36 53 PA_5 = 0x05,
JasperQM 14:596a61f27f36 54 PA_6 = 0x06,
JasperQM 14:596a61f27f36 55 PA_7 = 0x07,
JasperQM 14:596a61f27f36 56 PA_8 = 0x08,
JasperQM 14:596a61f27f36 57 PA_9 = 0x09,
JasperQM 14:596a61f27f36 58 PA_10 = 0x0A,
JasperQM 14:596a61f27f36 59 PA_11 = 0x0B,
JasperQM 14:596a61f27f36 60 PA_12 = 0x0C,
JasperQM 14:596a61f27f36 61 PA_13 = NC,
JasperQM 14:596a61f27f36 62 PA_14 = NC,
JasperQM 14:596a61f27f36 63 PA_15 = 0x0F,
JasperQM 14:596a61f27f36 64
JasperQM 14:596a61f27f36 65 PB_0 = 0x10,
JasperQM 14:596a61f27f36 66 PB_1 = 0x11,
JasperQM 14:596a61f27f36 67 PB_2 = NC,
JasperQM 14:596a61f27f36 68 PB_3 = 0x13,
JasperQM 14:596a61f27f36 69 PB_4 = 0x14,
JasperQM 14:596a61f27f36 70 PB_5 = 0x15,
JasperQM 14:596a61f27f36 71 PB_6 = 0x16,
JasperQM 14:596a61f27f36 72 PB_7 = 0x17,
JasperQM 14:596a61f27f36 73 PB_8 = 0x18,
JasperQM 14:596a61f27f36 74 PB_9 = 0x19,
JasperQM 14:596a61f27f36 75 PB_10 = 0x1A,
JasperQM 14:596a61f27f36 76 PB_11 = 0x1B,
JasperQM 14:596a61f27f36 77 PB_12 = 0x1C,
JasperQM 14:596a61f27f36 78 PB_13 = 0x1D,
JasperQM 14:596a61f27f36 79 PB_14 = 0x1E,
JasperQM 14:596a61f27f36 80 PB_15 = 0x1F,
JasperQM 14:596a61f27f36 81
JasperQM 14:596a61f27f36 82 PC_0 = NC,
JasperQM 14:596a61f27f36 83 PC_1 = NC,
JasperQM 14:596a61f27f36 84 PC_2 = NC,
JasperQM 14:596a61f27f36 85 PC_3 = NC,
JasperQM 14:596a61f27f36 86 PC_4 = NC,
JasperQM 14:596a61f27f36 87 PC_5 = NC,
JasperQM 14:596a61f27f36 88 PC_6 = NC,
JasperQM 14:596a61f27f36 89 PC_7 = NC,
JasperQM 14:596a61f27f36 90 PC_8 = NC,
JasperQM 14:596a61f27f36 91 PC_9 = NC,
JasperQM 14:596a61f27f36 92 PC_10 = NC,
JasperQM 14:596a61f27f36 93 PC_11 = NC,
JasperQM 14:596a61f27f36 94 PC_12 = NC,
JasperQM 14:596a61f27f36 95 PC_13 = 0x2D,
JasperQM 14:596a61f27f36 96 PC_14 = 0x2E,
JasperQM 14:596a61f27f36 97 PC_15 = 0x2F,
JasperQM 14:596a61f27f36 98
JasperQM 14:596a61f27f36 99 PD_2 = NC,
JasperQM 14:596a61f27f36 100
JasperQM 14:596a61f27f36 101 // ADC internal channels
JasperQM 14:596a61f27f36 102 ADC_TEMP = 0xF0,
JasperQM 14:596a61f27f36 103 ADC_VREF = 0xF1,
JasperQM 14:596a61f27f36 104
JasperQM 14:596a61f27f36 105 // Arduino connector namings
JasperQM 14:596a61f27f36 106 A0 = PA_0,
JasperQM 14:596a61f27f36 107 A1 = PA_1,
JasperQM 14:596a61f27f36 108 A2 = PA_4,
JasperQM 14:596a61f27f36 109 A3 = PB_0,
JasperQM 14:596a61f27f36 110 A4 = NC,
JasperQM 14:596a61f27f36 111 A5 = NC,
JasperQM 14:596a61f27f36 112 D0 = PA_3,
JasperQM 14:596a61f27f36 113 D1 = PA_2,
JasperQM 14:596a61f27f36 114 D2 = PA_10,
JasperQM 14:596a61f27f36 115 D3 = PB_3,
JasperQM 14:596a61f27f36 116 D4 = PB_5,
JasperQM 14:596a61f27f36 117 D5 = PB_4,
JasperQM 14:596a61f27f36 118 D6 = PB_10,
JasperQM 14:596a61f27f36 119 D7 = PA_8,
JasperQM 14:596a61f27f36 120 D8 = PA_9,
JasperQM 14:596a61f27f36 121 D9 = NC,
JasperQM 14:596a61f27f36 122 D10 = PB_6,
JasperQM 14:596a61f27f36 123 D11 = PA_7,
JasperQM 14:596a61f27f36 124 D12 = PA_6,
JasperQM 14:596a61f27f36 125 D13 = PA_5,
JasperQM 14:596a61f27f36 126 D14 = PB_9,
JasperQM 14:596a61f27f36 127 D15 = PB_8,
JasperQM 14:596a61f27f36 128
JasperQM 14:596a61f27f36 129 // Generic signals namings
JasperQM 14:596a61f27f36 130 LED1 = PC_13,
JasperQM 14:596a61f27f36 131 LED2 = NC,
JasperQM 14:596a61f27f36 132 LED3 = NC,
JasperQM 14:596a61f27f36 133 LED4 = NC,
JasperQM 14:596a61f27f36 134 USER_BUTTON = NC,
JasperQM 14:596a61f27f36 135 SERIAL_TX = PA_2,
JasperQM 14:596a61f27f36 136 SERIAL_RX = PA_3,
JasperQM 14:596a61f27f36 137 USBTX = PA_2,
JasperQM 14:596a61f27f36 138 USBRX = PA_3,
JasperQM 14:596a61f27f36 139 I2C_SCL = PB_8,
JasperQM 14:596a61f27f36 140 I2C_SDA = PB_9,
JasperQM 14:596a61f27f36 141 SPI_MOSI = PA_7,
JasperQM 14:596a61f27f36 142 SPI_MISO = PA_6,
JasperQM 14:596a61f27f36 143 SPI_SCK = PA_5,
JasperQM 14:596a61f27f36 144 SPI_CS = PB_6,
JasperQM 14:596a61f27f36 145 PWM_OUT = PB_3
JasperQM 14:596a61f27f36 146 } PinName;
JasperQM 14:596a61f27f36 147
JasperQM 14:596a61f27f36 148 #ifdef __cplusplus
JasperQM 14:596a61f27f36 149 }
JasperQM 14:596a61f27f36 150 #endif
JasperQM 14:596a61f27f36 151
JasperQM 14:596a61f27f36 152 #endif