Paul Paterson / mbed-src-CanNucleoF0

Dependents:   CanNucleoF0_example

Fork of mbed-src by mbed official

Committer:
mbed_official
Date:
Thu Dec 04 07:30:08 2014 +0000
Revision:
427:8eeb5157dee4
Parent:
390:35c2c1cf29cd
Child:
437:0b72c0f86db6
Synchronized with git revision e815194b578628edb5746650abfdde926be5e3fe

Full URL: https://github.com/mbedmicro/mbed/commit/e815194b578628edb5746650abfdde926be5e3fe/

Targets: RZ_A1H - Fix bugs that I2C freq become fixed 100kHz and a static value will be indefiniteness.

Who changed what in which revision?

UserRevisionLine numberNew 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 427:8eeb5157dee4 33 uint8_t pclk_bit;
mbed_official 427:8eeb5157dee4 34 uint32_t width;
mbed_official 390:35c2c1cf29cd 35 };
mbed_official 390:35c2c1cf29cd 36
mbed_official 390:35c2c1cf29cd 37 struct spi_s {
mbed_official 390:35c2c1cf29cd 38 uint32_t spi;
mbed_official 390:35c2c1cf29cd 39 };
mbed_official 390:35c2c1cf29cd 40
mbed_official 390:35c2c1cf29cd 41 struct gpio_irq_s {
mbed_official 390:35c2c1cf29cd 42 uint32_t port;
mbed_official 390:35c2c1cf29cd 43 uint32_t pin;
mbed_official 390:35c2c1cf29cd 44 uint32_t ch;
mbed_official 390:35c2c1cf29cd 45 };
mbed_official 390:35c2c1cf29cd 46
mbed_official 390:35c2c1cf29cd 47 struct port_s {
mbed_official 390:35c2c1cf29cd 48 __IO uint32_t *reg_dir;
mbed_official 390:35c2c1cf29cd 49 __IO uint32_t *reg_out;
mbed_official 390:35c2c1cf29cd 50 __I uint32_t *reg_in;
mbed_official 390:35c2c1cf29cd 51 PortName port;
mbed_official 390:35c2c1cf29cd 52 uint32_t mask;
mbed_official 390:35c2c1cf29cd 53 };
mbed_official 390:35c2c1cf29cd 54
mbed_official 390:35c2c1cf29cd 55 struct serial_s {
mbed_official 390:35c2c1cf29cd 56 struct st_scif *uart;
mbed_official 390:35c2c1cf29cd 57 int index;
mbed_official 390:35c2c1cf29cd 58 };
mbed_official 390:35c2c1cf29cd 59
mbed_official 390:35c2c1cf29cd 60 struct pwmout_s {
mbed_official 390:35c2c1cf29cd 61 __IO uint16_t *MR;
mbed_official 390:35c2c1cf29cd 62 __IO uint16_t *CY;
mbed_official 390:35c2c1cf29cd 63 uint16_t flag;
mbed_official 390:35c2c1cf29cd 64 PWMName pwm;
mbed_official 390:35c2c1cf29cd 65 };
mbed_official 390:35c2c1cf29cd 66
mbed_official 390:35c2c1cf29cd 67 struct analogin_s {
mbed_official 390:35c2c1cf29cd 68 ADCName adc;
mbed_official 390:35c2c1cf29cd 69 };
mbed_official 390:35c2c1cf29cd 70
mbed_official 390:35c2c1cf29cd 71 #ifdef __cplusplus
mbed_official 390:35c2c1cf29cd 72 }
mbed_official 390:35c2c1cf29cd 73 #endif
mbed_official 390:35c2c1cf29cd 74
mbed_official 390:35c2c1cf29cd 75 #endif