mbed library sources, include can_api for nucleo-f091rc
Dependents: CanNucleoF0_example
Fork of mbed-src by
targets/hal/TARGET_NXP/TARGET_LPC2460/objects.h@645:13c87cbecd54, 2016-01-07 (annotated)
- Committer:
- ptpaterson
- Date:
- Thu Jan 07 05:49:05 2016 +0000
- Revision:
- 645:13c87cbecd54
- Parent:
- 554:edd95c0879f8
corrected freeze on CAN_RECEIVE_IT
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 554:edd95c0879f8 | 1 | /* mbed Microcontroller Library |
mbed_official | 554:edd95c0879f8 | 2 | * Copyright (c) 2006-2015 ARM Limited |
mbed_official | 554:edd95c0879f8 | 3 | * |
mbed_official | 554:edd95c0879f8 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
mbed_official | 554:edd95c0879f8 | 5 | * you may not use this file except in compliance with the License. |
mbed_official | 554:edd95c0879f8 | 6 | * You may obtain a copy of the License at |
mbed_official | 554:edd95c0879f8 | 7 | * |
mbed_official | 554:edd95c0879f8 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
mbed_official | 554:edd95c0879f8 | 9 | * |
mbed_official | 554:edd95c0879f8 | 10 | * Unless required by applicable law or agreed to in writing, software |
mbed_official | 554:edd95c0879f8 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
mbed_official | 554:edd95c0879f8 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
mbed_official | 554:edd95c0879f8 | 13 | * See the License for the specific language governing permissions and |
mbed_official | 554:edd95c0879f8 | 14 | * limitations under the License. |
mbed_official | 554:edd95c0879f8 | 15 | */ |
mbed_official | 554:edd95c0879f8 | 16 | #ifndef MBED_OBJECTS_H |
mbed_official | 554:edd95c0879f8 | 17 | #define MBED_OBJECTS_H |
mbed_official | 554:edd95c0879f8 | 18 | |
mbed_official | 554:edd95c0879f8 | 19 | #include "cmsis.h" |
mbed_official | 554:edd95c0879f8 | 20 | #include "PortNames.h" |
mbed_official | 554:edd95c0879f8 | 21 | #include "PeripheralNames.h" |
mbed_official | 554:edd95c0879f8 | 22 | #include "PinNames.h" |
mbed_official | 554:edd95c0879f8 | 23 | |
mbed_official | 554:edd95c0879f8 | 24 | #ifdef __cplusplus |
mbed_official | 554:edd95c0879f8 | 25 | extern "C" { |
mbed_official | 554:edd95c0879f8 | 26 | #endif |
mbed_official | 554:edd95c0879f8 | 27 | |
mbed_official | 554:edd95c0879f8 | 28 | struct gpio_irq_s { |
mbed_official | 554:edd95c0879f8 | 29 | uint32_t port; |
mbed_official | 554:edd95c0879f8 | 30 | uint32_t pin; |
mbed_official | 554:edd95c0879f8 | 31 | uint32_t ch; |
mbed_official | 554:edd95c0879f8 | 32 | }; |
mbed_official | 554:edd95c0879f8 | 33 | |
mbed_official | 554:edd95c0879f8 | 34 | struct port_s { |
mbed_official | 554:edd95c0879f8 | 35 | __IO uint32_t *reg_dir; |
mbed_official | 554:edd95c0879f8 | 36 | __IO uint32_t *reg_out; |
mbed_official | 554:edd95c0879f8 | 37 | __I uint32_t *reg_in; |
mbed_official | 554:edd95c0879f8 | 38 | PortName port; |
mbed_official | 554:edd95c0879f8 | 39 | uint32_t mask; |
mbed_official | 554:edd95c0879f8 | 40 | }; |
mbed_official | 554:edd95c0879f8 | 41 | |
mbed_official | 554:edd95c0879f8 | 42 | struct pwmout_s { |
mbed_official | 554:edd95c0879f8 | 43 | __IO uint32_t *MR; |
mbed_official | 554:edd95c0879f8 | 44 | PWMName pwm; |
mbed_official | 554:edd95c0879f8 | 45 | }; |
mbed_official | 554:edd95c0879f8 | 46 | |
mbed_official | 554:edd95c0879f8 | 47 | struct serial_s { |
mbed_official | 554:edd95c0879f8 | 48 | LPC_UART_TypeDef *uart; |
mbed_official | 554:edd95c0879f8 | 49 | int index; |
mbed_official | 554:edd95c0879f8 | 50 | }; |
mbed_official | 554:edd95c0879f8 | 51 | |
mbed_official | 554:edd95c0879f8 | 52 | struct analogin_s { |
mbed_official | 554:edd95c0879f8 | 53 | ADCName adc; |
mbed_official | 554:edd95c0879f8 | 54 | }; |
mbed_official | 554:edd95c0879f8 | 55 | |
mbed_official | 554:edd95c0879f8 | 56 | struct dac_s { |
mbed_official | 554:edd95c0879f8 | 57 | DACName dac; |
mbed_official | 554:edd95c0879f8 | 58 | }; |
mbed_official | 554:edd95c0879f8 | 59 | |
mbed_official | 554:edd95c0879f8 | 60 | struct can_s { |
mbed_official | 554:edd95c0879f8 | 61 | LPC_CAN_TypeDef *dev; |
mbed_official | 554:edd95c0879f8 | 62 | }; |
mbed_official | 554:edd95c0879f8 | 63 | |
mbed_official | 554:edd95c0879f8 | 64 | struct i2c_s { |
mbed_official | 554:edd95c0879f8 | 65 | LPC_I2C_TypeDef *i2c; |
mbed_official | 554:edd95c0879f8 | 66 | }; |
mbed_official | 554:edd95c0879f8 | 67 | |
mbed_official | 554:edd95c0879f8 | 68 | struct spi_s { |
mbed_official | 554:edd95c0879f8 | 69 | LPC_SSP_TypeDef *spi; |
mbed_official | 554:edd95c0879f8 | 70 | }; |
mbed_official | 554:edd95c0879f8 | 71 | |
mbed_official | 554:edd95c0879f8 | 72 | #include "gpio_object.h" |
mbed_official | 554:edd95c0879f8 | 73 | |
mbed_official | 554:edd95c0879f8 | 74 | #ifdef __cplusplus |
mbed_official | 554:edd95c0879f8 | 75 | } |
mbed_official | 554:edd95c0879f8 | 76 | #endif |
mbed_official | 554:edd95c0879f8 | 77 | |
mbed_official | 554:edd95c0879f8 | 78 | #endif |