Merge pull request #1193 from masaohamanaka/master

RZ_A1H - Add CAN driver.
pull/1202/head
Martin Kojtal 2015-06-19 09:22:01 +01:00
commit bb7d4bd4db
5 changed files with 1024 additions and 3 deletions

View File

@ -95,6 +95,14 @@ typedef enum {
I2C_3
} I2CName;
typedef enum {
CAN_0 = 0,
CAN_1,
CAN_2,
CAN_3,
CAN_4
} CANName;
#define STDIO_UART_TX USBTX
#define STDIO_UART_RX USBRX

File diff suppressed because it is too large Load Diff

View File

@ -42,7 +42,7 @@
#define DEVICE_SPI 1
#define DEVICE_SPISLAVE 1
#define DEVICE_CAN 0
#define DEVICE_CAN 1
#define DEVICE_RTC 1

View File

@ -72,6 +72,10 @@ struct analogin_s {
ADCName adc;
};
struct can_s {
uint32_t ch;
};
#ifdef __cplusplus
}
#endif

View File

@ -538,13 +538,13 @@ TESTS = [
"id": "MBED_29", "description": "CAN network test",
"source_dir": join(TEST_DIR, "mbed", "can"),
"dependencies": [MBED_LIBRARIES],
"mcu": ["LPC1768", "LPC4088", "LPC1549"]
"mcu": ["LPC1768", "LPC4088", "LPC1549", "RZ_A1H"]
},
{
"id": "MBED_30", "description": "CAN network test using interrupts",
"source_dir": join(TEST_DIR, "mbed", "can_interrupt"),
"dependencies": [MBED_LIBRARIES],
"mcu": ["LPC1768", "LPC4088", "LPC1549"]
"mcu": ["LPC1768", "LPC4088", "LPC1549", "RZ_A1H"]
},
{
"id": "MBED_31", "description": "PWM LED test",