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.
Dependents: WizFi250_AP_HelloWorld
Fork of mbed-src by
targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/objects.h@390:35c2c1cf29cd, 2014-11-06 (annotated)
- Committer:
- mbed_official
- Date:
- Thu Nov 06 11:00:10 2014 +0000
- Revision:
- 390:35c2c1cf29cd
- Child:
- 427:8eeb5157dee4
Synchronized with git revision 8724eb616b6e07a3bd111d3022652eb5bbefe9b7
Full URL: https://github.com/mbedmicro/mbed/commit/8724eb616b6e07a3bd111d3022652eb5bbefe9b7/
[RZ/A1H] mbed-RZ first release
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| mbed_official | 390:35c2c1cf29cd | 1 | /* mbed Microcontroller Library |
| mbed_official | 390:35c2c1cf29cd | 2 | * Copyright (c) 2006-2013 ARM Limited |
| mbed_official | 390:35c2c1cf29cd | 3 | * |
| mbed_official | 390:35c2c1cf29cd | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| mbed_official | 390:35c2c1cf29cd | 5 | * you may not use this file except in compliance with the License. |
| mbed_official | 390:35c2c1cf29cd | 6 | * You may obtain a copy of the License at |
| mbed_official | 390:35c2c1cf29cd | 7 | * |
| mbed_official | 390:35c2c1cf29cd | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| mbed_official | 390:35c2c1cf29cd | 9 | * |
| mbed_official | 390:35c2c1cf29cd | 10 | * Unless required by applicable law or agreed to in writing, software |
| mbed_official | 390:35c2c1cf29cd | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| mbed_official | 390:35c2c1cf29cd | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| mbed_official | 390:35c2c1cf29cd | 13 | * See the License for the specific language governing permissions and |
| mbed_official | 390:35c2c1cf29cd | 14 | * limitations under the License. |
| mbed_official | 390:35c2c1cf29cd | 15 | */ |
| mbed_official | 390:35c2c1cf29cd | 16 | #ifndef MBED_OBJECTS_H |
| mbed_official | 390:35c2c1cf29cd | 17 | #define MBED_OBJECTS_H |
| mbed_official | 390:35c2c1cf29cd | 18 | |
| mbed_official | 390:35c2c1cf29cd | 19 | #include <stdint.h> |
| mbed_official | 390:35c2c1cf29cd | 20 | #include "cmsis.h" |
| mbed_official | 390:35c2c1cf29cd | 21 | #include "PortNames.h" |
| mbed_official | 390:35c2c1cf29cd | 22 | #include "PeripheralNames.h" |
| mbed_official | 390:35c2c1cf29cd | 23 | #include "PinNames.h" |
| mbed_official | 390:35c2c1cf29cd | 24 | #include "gpio_object.h" |
| mbed_official | 390:35c2c1cf29cd | 25 | |
| mbed_official | 390:35c2c1cf29cd | 26 | #ifdef __cplusplus |
| mbed_official | 390:35c2c1cf29cd | 27 | extern "C" { |
| mbed_official | 390:35c2c1cf29cd | 28 | #endif |
| mbed_official | 390:35c2c1cf29cd | 29 | |
| mbed_official | 390:35c2c1cf29cd | 30 | struct i2c_s { |
| mbed_official | 390:35c2c1cf29cd | 31 | uint32_t i2c; |
| mbed_official | 390:35c2c1cf29cd | 32 | uint32_t dummy; |
| mbed_official | 390:35c2c1cf29cd | 33 | }; |
| mbed_official | 390:35c2c1cf29cd | 34 | |
| mbed_official | 390:35c2c1cf29cd | 35 | struct spi_s { |
| mbed_official | 390:35c2c1cf29cd | 36 | uint32_t spi; |
| mbed_official | 390:35c2c1cf29cd | 37 | }; |
| mbed_official | 390:35c2c1cf29cd | 38 | |
| mbed_official | 390:35c2c1cf29cd | 39 | struct gpio_irq_s { |
| mbed_official | 390:35c2c1cf29cd | 40 | uint32_t port; |
| mbed_official | 390:35c2c1cf29cd | 41 | uint32_t pin; |
| mbed_official | 390:35c2c1cf29cd | 42 | uint32_t ch; |
| mbed_official | 390:35c2c1cf29cd | 43 | }; |
| mbed_official | 390:35c2c1cf29cd | 44 | |
| mbed_official | 390:35c2c1cf29cd | 45 | struct port_s { |
| mbed_official | 390:35c2c1cf29cd | 46 | __IO uint32_t *reg_dir; |
| mbed_official | 390:35c2c1cf29cd | 47 | __IO uint32_t *reg_out; |
| mbed_official | 390:35c2c1cf29cd | 48 | __I uint32_t *reg_in; |
| mbed_official | 390:35c2c1cf29cd | 49 | PortName port; |
| mbed_official | 390:35c2c1cf29cd | 50 | uint32_t mask; |
| mbed_official | 390:35c2c1cf29cd | 51 | }; |
| mbed_official | 390:35c2c1cf29cd | 52 | |
| mbed_official | 390:35c2c1cf29cd | 53 | struct serial_s { |
| mbed_official | 390:35c2c1cf29cd | 54 | struct st_scif *uart; |
| mbed_official | 390:35c2c1cf29cd | 55 | int index; |
| mbed_official | 390:35c2c1cf29cd | 56 | }; |
| mbed_official | 390:35c2c1cf29cd | 57 | |
| mbed_official | 390:35c2c1cf29cd | 58 | struct pwmout_s { |
| mbed_official | 390:35c2c1cf29cd | 59 | __IO uint16_t *MR; |
| mbed_official | 390:35c2c1cf29cd | 60 | __IO uint16_t *CY; |
| mbed_official | 390:35c2c1cf29cd | 61 | uint16_t flag; |
| mbed_official | 390:35c2c1cf29cd | 62 | PWMName pwm; |
| mbed_official | 390:35c2c1cf29cd | 63 | }; |
| mbed_official | 390:35c2c1cf29cd | 64 | |
| mbed_official | 390:35c2c1cf29cd | 65 | struct analogin_s { |
| mbed_official | 390:35c2c1cf29cd | 66 | ADCName adc; |
| mbed_official | 390:35c2c1cf29cd | 67 | }; |
| mbed_official | 390:35c2c1cf29cd | 68 | |
| mbed_official | 390:35c2c1cf29cd | 69 | #ifdef __cplusplus |
| mbed_official | 390:35c2c1cf29cd | 70 | } |
| mbed_official | 390:35c2c1cf29cd | 71 | #endif |
| mbed_official | 390:35c2c1cf29cd | 72 | |
| mbed_official | 390:35c2c1cf29cd | 73 | #endif |
