mbed library sources. Supersedes mbed-src.

Dependents:   Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more

targets/TARGET_TOSHIBA/TARGET_TMPM066/objects.h

Committer:
AnnaBridge
Date:
2019-02-20
Revision:
189:f392fc9709a3
Parent:
172:7d866c31b3c5

File content as of revision 189:f392fc9709a3:

/* mbed Microcontroller Library
 * (C)Copyright TOSHIBA ELECTRONIC DEVICES & STORAGE CORPORATION 2017 All rights reserved
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
#ifndef MBED_OBJECTS_H
#define MBED_OBJECTS_H

#include "PortNames.h"
#include "PeripheralNames.h"
#include "tmpm066_gpio.h"
#include "tmpm066_uart.h"
#include "tmpm066_cg.h"
#include "tmpm066_intifao.h"
#include "tmpm066_i2c.h"
#include "tmpm066_adc.h"

#ifdef __cplusplus
extern "C" {
#endif

struct gpio_irq_s {
    uint32_t mask;
    GPIO_Port port;
    uint32_t irq_id;
    INTIFAO_INTActiveState event;
    INTIFAO_INTSrc irq_src;
};

struct port_s {
    PortName port;
    uint32_t mask;
};

struct pwmout_s {
    PinName pin;
    TSB_TB_TypeDef *channel;
    uint16_t trailing_timing;
    uint16_t leading_timing;
    uint16_t divisor;
    float period;
};

struct serial_s {
    PinName pin;
    uint32_t index;
    TSB_SC_TypeDef *UARTx;
    UART_InitTypeDef uart_config;
};

struct analogin_s {
    PinName pin;
    ADCName adc;
    TSB_AD_TypeDef *obj;
};

struct i2c_s {
    uint32_t address;
    IRQn_Type IRQn;
    TSB_I2C_TypeDef *i2c;
    I2C_InitTypeDef myi2c;
};

#include "gpio_object.h"

#ifdef __cplusplus
}
#endif

#endif