The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
TARGET_K66F/TOOLCHAIN_IAR/objects.h@172:65be27845400, 2019-02-20 (annotated)
- Committer:
- AnnaBridge
- Date:
- Wed Feb 20 20:53:29 2019 +0000
- Revision:
- 172:65be27845400
- Parent:
- 171:3a7713b1edbc
mbed library release version 165
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AnnaBridge | 171:3a7713b1edbc | 1 | /* mbed Microcontroller Library |
AnnaBridge | 171:3a7713b1edbc | 2 | * Copyright (c) 2006-2013 ARM Limited |
AnnaBridge | 171:3a7713b1edbc | 3 | * |
AnnaBridge | 171:3a7713b1edbc | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
AnnaBridge | 171:3a7713b1edbc | 5 | * you may not use this file except in compliance with the License. |
AnnaBridge | 171:3a7713b1edbc | 6 | * You may obtain a copy of the License at |
AnnaBridge | 171:3a7713b1edbc | 7 | * |
AnnaBridge | 171:3a7713b1edbc | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
AnnaBridge | 171:3a7713b1edbc | 9 | * |
AnnaBridge | 171:3a7713b1edbc | 10 | * Unless required by applicable law or agreed to in writing, software |
AnnaBridge | 171:3a7713b1edbc | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
AnnaBridge | 171:3a7713b1edbc | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
AnnaBridge | 171:3a7713b1edbc | 13 | * See the License for the specific language governing permissions and |
AnnaBridge | 171:3a7713b1edbc | 14 | * limitations under the License. |
AnnaBridge | 171:3a7713b1edbc | 15 | */ |
AnnaBridge | 171:3a7713b1edbc | 16 | #ifndef MBED_OBJECTS_H |
AnnaBridge | 171:3a7713b1edbc | 17 | #define MBED_OBJECTS_H |
AnnaBridge | 171:3a7713b1edbc | 18 | |
AnnaBridge | 171:3a7713b1edbc | 19 | #include "cmsis.h" |
AnnaBridge | 171:3a7713b1edbc | 20 | #include "PortNames.h" |
AnnaBridge | 171:3a7713b1edbc | 21 | #include "PeripheralNames.h" |
AnnaBridge | 171:3a7713b1edbc | 22 | #include "PinNames.h" |
AnnaBridge | 171:3a7713b1edbc | 23 | #if DEVICE_SPI_ASYNCH |
AnnaBridge | 171:3a7713b1edbc | 24 | #include "fsl_dspi_edma.h" |
AnnaBridge | 171:3a7713b1edbc | 25 | #endif |
AnnaBridge | 171:3a7713b1edbc | 26 | #if DEVICE_SERIAL_ASYNCH |
AnnaBridge | 171:3a7713b1edbc | 27 | #include "fsl_uart_edma.h" |
AnnaBridge | 171:3a7713b1edbc | 28 | #endif |
AnnaBridge | 171:3a7713b1edbc | 29 | #include "fsl_flash.h" |
AnnaBridge | 171:3a7713b1edbc | 30 | #include "dma_api_hal.h" |
AnnaBridge | 171:3a7713b1edbc | 31 | |
AnnaBridge | 171:3a7713b1edbc | 32 | #ifdef __cplusplus |
AnnaBridge | 171:3a7713b1edbc | 33 | extern "C" { |
AnnaBridge | 171:3a7713b1edbc | 34 | #endif |
AnnaBridge | 171:3a7713b1edbc | 35 | |
AnnaBridge | 171:3a7713b1edbc | 36 | struct gpio_irq_s { |
AnnaBridge | 171:3a7713b1edbc | 37 | uint32_t port; |
AnnaBridge | 171:3a7713b1edbc | 38 | uint32_t pin; |
AnnaBridge | 171:3a7713b1edbc | 39 | uint32_t ch; |
AnnaBridge | 171:3a7713b1edbc | 40 | }; |
AnnaBridge | 171:3a7713b1edbc | 41 | |
AnnaBridge | 171:3a7713b1edbc | 42 | struct port_s { |
AnnaBridge | 171:3a7713b1edbc | 43 | PortName port; |
AnnaBridge | 171:3a7713b1edbc | 44 | uint32_t mask; |
AnnaBridge | 171:3a7713b1edbc | 45 | }; |
AnnaBridge | 171:3a7713b1edbc | 46 | |
AnnaBridge | 171:3a7713b1edbc | 47 | struct pwmout_s { |
AnnaBridge | 171:3a7713b1edbc | 48 | PWMName pwm_name; |
AnnaBridge | 171:3a7713b1edbc | 49 | }; |
AnnaBridge | 171:3a7713b1edbc | 50 | |
AnnaBridge | 171:3a7713b1edbc | 51 | struct serial_s { |
AnnaBridge | 171:3a7713b1edbc | 52 | int index; |
AnnaBridge | 171:3a7713b1edbc | 53 | #if DEVICE_SERIAL_ASYNCH |
AnnaBridge | 171:3a7713b1edbc | 54 | uint8_t txstate; |
AnnaBridge | 171:3a7713b1edbc | 55 | uint8_t rxstate; |
AnnaBridge | 171:3a7713b1edbc | 56 | uint32_t events; |
AnnaBridge | 171:3a7713b1edbc | 57 | uart_handle_t uart_transfer_handle; |
AnnaBridge | 171:3a7713b1edbc | 58 | uart_edma_handle_t uart_dma_handle; |
AnnaBridge | 171:3a7713b1edbc | 59 | dma_options_t uartDmaTx; |
AnnaBridge | 171:3a7713b1edbc | 60 | dma_options_t uartDmaRx; |
AnnaBridge | 171:3a7713b1edbc | 61 | #endif |
AnnaBridge | 171:3a7713b1edbc | 62 | }; |
AnnaBridge | 171:3a7713b1edbc | 63 | |
AnnaBridge | 171:3a7713b1edbc | 64 | struct analogin_s { |
AnnaBridge | 171:3a7713b1edbc | 65 | ADCName adc; |
AnnaBridge | 171:3a7713b1edbc | 66 | }; |
AnnaBridge | 171:3a7713b1edbc | 67 | |
AnnaBridge | 171:3a7713b1edbc | 68 | struct i2c_s { |
AnnaBridge | 171:3a7713b1edbc | 69 | uint32_t instance; |
AnnaBridge | 171:3a7713b1edbc | 70 | uint8_t next_repeated_start; |
AnnaBridge | 171:3a7713b1edbc | 71 | }; |
AnnaBridge | 171:3a7713b1edbc | 72 | |
AnnaBridge | 171:3a7713b1edbc | 73 | struct spi_s { |
AnnaBridge | 171:3a7713b1edbc | 74 | uint32_t instance; |
AnnaBridge | 171:3a7713b1edbc | 75 | uint8_t bits; |
AnnaBridge | 171:3a7713b1edbc | 76 | #if DEVICE_SPI_ASYNCH |
AnnaBridge | 171:3a7713b1edbc | 77 | status_t status; |
AnnaBridge | 171:3a7713b1edbc | 78 | dspi_master_handle_t spi_master_handle; |
AnnaBridge | 171:3a7713b1edbc | 79 | dspi_master_edma_handle_t spi_dma_master_handle; |
AnnaBridge | 171:3a7713b1edbc | 80 | dma_options_t spiDmaMasterRx; |
AnnaBridge | 171:3a7713b1edbc | 81 | dma_options_t spiDmaMasterTx; |
AnnaBridge | 171:3a7713b1edbc | 82 | dma_options_t spiDmaMasterIntermediary; |
AnnaBridge | 171:3a7713b1edbc | 83 | #endif |
AnnaBridge | 171:3a7713b1edbc | 84 | }; |
AnnaBridge | 171:3a7713b1edbc | 85 | |
AnnaBridge | 171:3a7713b1edbc | 86 | struct dac_s { |
AnnaBridge | 171:3a7713b1edbc | 87 | DACName dac; |
AnnaBridge | 171:3a7713b1edbc | 88 | }; |
AnnaBridge | 171:3a7713b1edbc | 89 | |
AnnaBridge | 171:3a7713b1edbc | 90 | struct trng_s { |
AnnaBridge | 171:3a7713b1edbc | 91 | uint8_t dummy; |
AnnaBridge | 171:3a7713b1edbc | 92 | }; |
AnnaBridge | 171:3a7713b1edbc | 93 | |
AnnaBridge | 171:3a7713b1edbc | 94 | struct flash_s { |
AnnaBridge | 171:3a7713b1edbc | 95 | flash_config_t flash_config; |
AnnaBridge | 171:3a7713b1edbc | 96 | }; |
AnnaBridge | 171:3a7713b1edbc | 97 | |
AnnaBridge | 171:3a7713b1edbc | 98 | #if DEVICE_QSPI |
AnnaBridge | 171:3a7713b1edbc | 99 | struct qspi_s { |
AnnaBridge | 171:3a7713b1edbc | 100 | uint32_t instance; |
AnnaBridge | 171:3a7713b1edbc | 101 | }; |
AnnaBridge | 171:3a7713b1edbc | 102 | #endif |
AnnaBridge | 171:3a7713b1edbc | 103 | |
AnnaBridge | 171:3a7713b1edbc | 104 | #include "gpio_object.h" |
AnnaBridge | 171:3a7713b1edbc | 105 | |
AnnaBridge | 171:3a7713b1edbc | 106 | #ifdef __cplusplus |
AnnaBridge | 171:3a7713b1edbc | 107 | } |
AnnaBridge | 171:3a7713b1edbc | 108 | #endif |
AnnaBridge | 171:3a7713b1edbc | 109 | |
AnnaBridge | 171:3a7713b1edbc | 110 | #endif |