Nut/OS  5.0.5
API Reference
stm32_can1.c File Reference
#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>
Include dependency graph for stm32_can1.c:

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 Documentation

#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().


Function Documentation

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.

Here is the call graph for this function:


Variable Documentation

Initial value: