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: EEPROMWrite Full-Project
Fork of mbed-src by
targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/objects.h@441:d2c15dda23c1, 2015-01-06 (annotated)
- Committer:
- mbed_official
- Date:
- Tue Jan 06 16:15:36 2015 +0000
- Revision:
- 441:d2c15dda23c1
- Parent:
- 437:0b72c0f86db6
- Child:
- 443:ed48b4122bfb
Synchronized with git revision 245a60b29caabb42eabdd19658eeac7c3f68313b
Full URL: https://github.com/mbedmicro/mbed/commit/245a60b29caabb42eabdd19658eeac7c3f68313b/
NUCLEO_F072RB/F091RC - adding target to rtos lib and exporter for coide and gcc_arm
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 | 441:d2c15dda23c1 | 25 | #include "rspi_iodefine.h" |
mbed_official | 390:35c2c1cf29cd | 26 | |
mbed_official | 390:35c2c1cf29cd | 27 | #ifdef __cplusplus |
mbed_official | 390:35c2c1cf29cd | 28 | extern "C" { |
mbed_official | 390:35c2c1cf29cd | 29 | #endif |
mbed_official | 390:35c2c1cf29cd | 30 | |
mbed_official | 390:35c2c1cf29cd | 31 | struct i2c_s { |
mbed_official | 390:35c2c1cf29cd | 32 | uint32_t i2c; |
mbed_official | 390:35c2c1cf29cd | 33 | uint32_t dummy; |
mbed_official | 427:8eeb5157dee4 | 34 | uint8_t pclk_bit; |
mbed_official | 441:d2c15dda23c1 | 35 | uint8_t width_low; |
mbed_official | 441:d2c15dda23c1 | 36 | uint8_t width_hi; |
mbed_official | 441:d2c15dda23c1 | 37 | int bbsy_wait_cnt; |
mbed_official | 390:35c2c1cf29cd | 38 | }; |
mbed_official | 390:35c2c1cf29cd | 39 | |
mbed_official | 390:35c2c1cf29cd | 40 | struct spi_s { |
mbed_official | 441:d2c15dda23c1 | 41 | struct st_rspi *spi; |
mbed_official | 441:d2c15dda23c1 | 42 | uint32_t bits; |
mbed_official | 390:35c2c1cf29cd | 43 | }; |
mbed_official | 390:35c2c1cf29cd | 44 | |
mbed_official | 390:35c2c1cf29cd | 45 | struct gpio_irq_s { |
mbed_official | 390:35c2c1cf29cd | 46 | uint32_t port; |
mbed_official | 390:35c2c1cf29cd | 47 | uint32_t pin; |
mbed_official | 390:35c2c1cf29cd | 48 | uint32_t ch; |
mbed_official | 390:35c2c1cf29cd | 49 | }; |
mbed_official | 390:35c2c1cf29cd | 50 | |
mbed_official | 390:35c2c1cf29cd | 51 | struct port_s { |
mbed_official | 390:35c2c1cf29cd | 52 | __IO uint32_t *reg_dir; |
mbed_official | 390:35c2c1cf29cd | 53 | __IO uint32_t *reg_out; |
mbed_official | 390:35c2c1cf29cd | 54 | __I uint32_t *reg_in; |
mbed_official | 390:35c2c1cf29cd | 55 | PortName port; |
mbed_official | 390:35c2c1cf29cd | 56 | uint32_t mask; |
mbed_official | 390:35c2c1cf29cd | 57 | }; |
mbed_official | 390:35c2c1cf29cd | 58 | |
mbed_official | 390:35c2c1cf29cd | 59 | struct serial_s { |
mbed_official | 390:35c2c1cf29cd | 60 | struct st_scif *uart; |
mbed_official | 390:35c2c1cf29cd | 61 | int index; |
mbed_official | 390:35c2c1cf29cd | 62 | }; |
mbed_official | 390:35c2c1cf29cd | 63 | |
mbed_official | 390:35c2c1cf29cd | 64 | struct pwmout_s { |
mbed_official | 437:0b72c0f86db6 | 65 | uint32_t ch; |
mbed_official | 390:35c2c1cf29cd | 66 | PWMName pwm; |
mbed_official | 390:35c2c1cf29cd | 67 | }; |
mbed_official | 390:35c2c1cf29cd | 68 | |
mbed_official | 390:35c2c1cf29cd | 69 | struct analogin_s { |
mbed_official | 390:35c2c1cf29cd | 70 | ADCName adc; |
mbed_official | 390:35c2c1cf29cd | 71 | }; |
mbed_official | 390:35c2c1cf29cd | 72 | |
mbed_official | 390:35c2c1cf29cd | 73 | #ifdef __cplusplus |
mbed_official | 390:35c2c1cf29cd | 74 | } |
mbed_official | 390:35c2c1cf29cd | 75 | #endif |
mbed_official | 390:35c2c1cf29cd | 76 | |
mbed_official | 390:35c2c1cf29cd | 77 | #endif |