mbed library sources. Supersedes mbed-src.
Dependents: Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more
targets/TARGET_TOSHIBA/TARGET_TMPM4G9/objects.h@189:f392fc9709a3, 2019-02-20 (annotated)
- Committer:
- AnnaBridge
- Date:
- Wed Feb 20 22:31:08 2019 +0000
- Revision:
- 189:f392fc9709a3
- Parent:
- 188:bcfe06ba3d64
mbed library release version 165
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AnnaBridge | 188:bcfe06ba3d64 | 1 | /* mbed Microcontroller Library |
AnnaBridge | 188:bcfe06ba3d64 | 2 | * (C)Copyright TOSHIBA ELECTRONIC DEVICES & STORAGE CORPORATION 2018 All rights reserved |
AnnaBridge | 188:bcfe06ba3d64 | 3 | * |
AnnaBridge | 188:bcfe06ba3d64 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
AnnaBridge | 188:bcfe06ba3d64 | 5 | * you may not use this file except in compliance with the License. |
AnnaBridge | 188:bcfe06ba3d64 | 6 | * You may obtain a copy of the License at |
AnnaBridge | 188:bcfe06ba3d64 | 7 | * |
AnnaBridge | 188:bcfe06ba3d64 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
AnnaBridge | 188:bcfe06ba3d64 | 9 | * |
AnnaBridge | 188:bcfe06ba3d64 | 10 | * Unless required by applicable law or agreed to in writing, software |
AnnaBridge | 188:bcfe06ba3d64 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
AnnaBridge | 188:bcfe06ba3d64 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
AnnaBridge | 188:bcfe06ba3d64 | 13 | * See the License for the specific language governing permissions and |
AnnaBridge | 188:bcfe06ba3d64 | 14 | * limitations under the License. |
AnnaBridge | 188:bcfe06ba3d64 | 15 | */ |
AnnaBridge | 188:bcfe06ba3d64 | 16 | #ifndef MBED_OBJECTS_H |
AnnaBridge | 188:bcfe06ba3d64 | 17 | #define MBED_OBJECTS_H |
AnnaBridge | 188:bcfe06ba3d64 | 18 | |
AnnaBridge | 188:bcfe06ba3d64 | 19 | #include <stdbool.h> |
AnnaBridge | 188:bcfe06ba3d64 | 20 | #include "PortNames.h" |
AnnaBridge | 188:bcfe06ba3d64 | 21 | #include "PeripheralNames.h" |
AnnaBridge | 188:bcfe06ba3d64 | 22 | #include "gpio_object.h" |
AnnaBridge | 188:bcfe06ba3d64 | 23 | #include "txz_gpio.h" |
AnnaBridge | 188:bcfe06ba3d64 | 24 | #include "txz_uart.h" |
AnnaBridge | 188:bcfe06ba3d64 | 25 | #include "txz_fuart.h" |
AnnaBridge | 188:bcfe06ba3d64 | 26 | #include "txz_tspi.h" |
AnnaBridge | 188:bcfe06ba3d64 | 27 | #include "txz_t32a.h" |
AnnaBridge | 188:bcfe06ba3d64 | 28 | #include "txz_cg.h" |
AnnaBridge | 188:bcfe06ba3d64 | 29 | #include "txz_driver_def.h" |
AnnaBridge | 188:bcfe06ba3d64 | 30 | #include "adc.h" |
AnnaBridge | 188:bcfe06ba3d64 | 31 | #include "txz_i2c_api.h" |
AnnaBridge | 188:bcfe06ba3d64 | 32 | #include "txz_i2c.h" |
AnnaBridge | 188:bcfe06ba3d64 | 33 | #include "txz_fuart_include.h" |
AnnaBridge | 188:bcfe06ba3d64 | 34 | |
AnnaBridge | 188:bcfe06ba3d64 | 35 | #ifdef __cplusplus |
AnnaBridge | 188:bcfe06ba3d64 | 36 | extern "C" { |
AnnaBridge | 188:bcfe06ba3d64 | 37 | #endif |
AnnaBridge | 188:bcfe06ba3d64 | 38 | |
AnnaBridge | 188:bcfe06ba3d64 | 39 | struct port_s { |
AnnaBridge | 188:bcfe06ba3d64 | 40 | uint32_t mask; |
AnnaBridge | 188:bcfe06ba3d64 | 41 | PortName port; |
AnnaBridge | 188:bcfe06ba3d64 | 42 | }; |
AnnaBridge | 188:bcfe06ba3d64 | 43 | |
AnnaBridge | 188:bcfe06ba3d64 | 44 | struct dac_s { |
AnnaBridge | 188:bcfe06ba3d64 | 45 | DACName dac; |
AnnaBridge | 188:bcfe06ba3d64 | 46 | TSB_DA_TypeDef *DACx; |
AnnaBridge | 188:bcfe06ba3d64 | 47 | }; |
AnnaBridge | 188:bcfe06ba3d64 | 48 | |
AnnaBridge | 188:bcfe06ba3d64 | 49 | struct serial_s { |
AnnaBridge | 188:bcfe06ba3d64 | 50 | uint32_t index; |
AnnaBridge | 188:bcfe06ba3d64 | 51 | uint32_t mode; |
AnnaBridge | 188:bcfe06ba3d64 | 52 | TSB_UART_TypeDef *UARTx; |
AnnaBridge | 188:bcfe06ba3d64 | 53 | TSB_FURT_TypeDef *FUARTx; |
AnnaBridge | 188:bcfe06ba3d64 | 54 | uart_boudrate_t boud_obj; |
AnnaBridge | 188:bcfe06ba3d64 | 55 | fuart_boudrate_t fboud_obj; |
AnnaBridge | 188:bcfe06ba3d64 | 56 | }; |
AnnaBridge | 188:bcfe06ba3d64 | 57 | |
AnnaBridge | 188:bcfe06ba3d64 | 58 | struct pwmout_s { |
AnnaBridge | 188:bcfe06ba3d64 | 59 | uint32_t divisor; |
AnnaBridge | 188:bcfe06ba3d64 | 60 | uint32_t type; |
AnnaBridge | 188:bcfe06ba3d64 | 61 | uint32_t trailing_timing; |
AnnaBridge | 188:bcfe06ba3d64 | 62 | uint32_t leading_timing; |
AnnaBridge | 188:bcfe06ba3d64 | 63 | float period; |
AnnaBridge | 188:bcfe06ba3d64 | 64 | t32a_t p_t32a; |
AnnaBridge | 188:bcfe06ba3d64 | 65 | PinName pin; |
AnnaBridge | 188:bcfe06ba3d64 | 66 | }; |
AnnaBridge | 188:bcfe06ba3d64 | 67 | |
AnnaBridge | 188:bcfe06ba3d64 | 68 | struct spi_s { |
AnnaBridge | 188:bcfe06ba3d64 | 69 | uint8_t bits; |
AnnaBridge | 188:bcfe06ba3d64 | 70 | tspi_t p_obj; |
AnnaBridge | 188:bcfe06ba3d64 | 71 | SPIName module; |
AnnaBridge | 188:bcfe06ba3d64 | 72 | }; |
AnnaBridge | 188:bcfe06ba3d64 | 73 | |
AnnaBridge | 188:bcfe06ba3d64 | 74 | struct gpio_irq_s { |
AnnaBridge | 188:bcfe06ba3d64 | 75 | PortName port; |
AnnaBridge | 188:bcfe06ba3d64 | 76 | uint8_t pin_num; |
AnnaBridge | 188:bcfe06ba3d64 | 77 | uint32_t irq_id; |
AnnaBridge | 188:bcfe06ba3d64 | 78 | CG_INTSrc irq_src; |
AnnaBridge | 188:bcfe06ba3d64 | 79 | CG_INTActiveState event; |
AnnaBridge | 188:bcfe06ba3d64 | 80 | }; |
AnnaBridge | 188:bcfe06ba3d64 | 81 | |
AnnaBridge | 188:bcfe06ba3d64 | 82 | struct flash_s { |
AnnaBridge | 188:bcfe06ba3d64 | 83 | int flash_inited; |
AnnaBridge | 188:bcfe06ba3d64 | 84 | }; |
AnnaBridge | 188:bcfe06ba3d64 | 85 | |
AnnaBridge | 188:bcfe06ba3d64 | 86 | struct analogin_s { |
AnnaBridge | 188:bcfe06ba3d64 | 87 | adc_t p_adc; |
AnnaBridge | 188:bcfe06ba3d64 | 88 | PinName pin; |
AnnaBridge | 188:bcfe06ba3d64 | 89 | ADCName adc; |
AnnaBridge | 188:bcfe06ba3d64 | 90 | adc_channel_setting_t param; |
AnnaBridge | 188:bcfe06ba3d64 | 91 | }; |
AnnaBridge | 188:bcfe06ba3d64 | 92 | |
AnnaBridge | 188:bcfe06ba3d64 | 93 | struct i2c_s { |
AnnaBridge | 188:bcfe06ba3d64 | 94 | int address; |
AnnaBridge | 188:bcfe06ba3d64 | 95 | uint32_t index; |
AnnaBridge | 188:bcfe06ba3d64 | 96 | _i2c_t my_i2c; |
AnnaBridge | 188:bcfe06ba3d64 | 97 | }; |
AnnaBridge | 188:bcfe06ba3d64 | 98 | |
AnnaBridge | 188:bcfe06ba3d64 | 99 | #include "gpio_object.h" |
AnnaBridge | 188:bcfe06ba3d64 | 100 | |
AnnaBridge | 188:bcfe06ba3d64 | 101 | #ifdef __cplusplus |
AnnaBridge | 188:bcfe06ba3d64 | 102 | } |
AnnaBridge | 188:bcfe06ba3d64 | 103 | #endif |
AnnaBridge | 188:bcfe06ba3d64 | 104 | |
AnnaBridge | 188:bcfe06ba3d64 | 105 | #endif |