#include <cfg/os.h>#include <cfg/clock.h>#include <cfg/can_dev.h>#include <cfg/arch.h>#include <cfg/arch/gpio.h>#include <sys/atom.h>#include <sys/event.h>#include <sys/timer.h>#include <dev/irqreg.h>#include <dev/gpio.h>#include <dev/canbus.h>#include <arch/cm3.h>#include <arch/cm3/stm/stm32xxxx.h>#include <arch/cm3/stm/stm32xxxx_gpio.h>#include <arch/cm3/stm/stm32xxxx_rcc.h>Defines | |
| #define | CANBUS1_REMAP_CAN 0 |
| #define | CAN1TX_GPIO_PORT NUTGPIO_PORTA |
| CANBUS1 GPIO configuartion and assignment. | |
| #define | CAN1TX_GPIO_PIN 12 |
| #define | CAN1RX_GPIO_PORT NUTGPIO_PORTA |
| #define | CAN1RX_GPIO_PIN 11 |
Functions | |
| int | Stm32CanHw1Init (void) |
| Processor specific Hardware Initiliaization. | |
Variables | |
| NUTCANBUS | Stm32CanBus1 |
| NUTCANBUS | Stm32CanBus1C |
| #define CANBUS1_REMAP_CAN 0 |
| #define CAN1TX_GPIO_PORT NUTGPIO_PORTA |
CANBUS1 GPIO configuartion and assignment.
Referenced by Stm32CanHw1Init().
| #define CAN1TX_GPIO_PIN 12 |
Referenced by Stm32CanHw1Init().
| #define CAN1RX_GPIO_PORT NUTGPIO_PORTA |
Referenced by Stm32CanHw1Init().
| #define CAN1RX_GPIO_PIN 11 |
Referenced by Stm32CanHw1Init().
| int Stm32CanHw1Init | ( | void | ) |
Processor specific Hardware Initiliaization.
References __IO, _BI32, CAN1, CAN1RX_GPIO_PIN, CAN1RX_GPIO_PORT, CAN1TX_GPIO_PIN, CAN1TX_GPIO_PORT, CM3BB_BASE, CM3BB_OFFSET, ENABLE, GPIO_AF_CAN1, GPIO_CFG_OUTPUT, GPIO_CFG_PULLUP, GPIO_PinAFConfig(), GPIO_PinRemapConfig(), GpioPinConfigSet(), RCC_APB1ENR_CAN1EN, RCC_APB1RSTR_CAN1RST, and RCC_BASE.
{
CAN1_BASE,
CM3BB_BASE(CAN1_BASE),
&sig_CAN1_RX0,
&sig_CAN1_TX,
&sig_CAN1_SCE,
0,
Stm32CanHw1Init,
}
{
CAN1_BASE,
CM3BB_BASE(CAN1_BASE),
&sig_CAN1_RX1,
0,
0,
0,
0,
}