Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: mbed-os/targets/TARGET_TOSHIBA/TARGET_TMPM066/objects.h
- Revision:
- 0:380207fcb5c1
diff -r 000000000000 -r 380207fcb5c1 mbed-os/targets/TARGET_TOSHIBA/TARGET_TMPM066/objects.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-os/targets/TARGET_TOSHIBA/TARGET_TMPM066/objects.h Thu Mar 29 07:02:09 2018 +0000
@@ -0,0 +1,80 @@
+/* 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