PX4 Firmware
PX4 Autopilot Software http://px4.io
uc_kinetis_flexcan.cpp File Reference
#include <cassert>
#include <cstring>
#include <uavcan_kinetis/can.hpp>
#include <uavcan_kinetis/clock.hpp>
#include "internal.hpp"
Include dependency graph for uc_kinetis_flexcan.cpp:

Go to the source code of this file.

Namespaces

 uavcan_kinetis
 
 uavcan_kinetis::flexcan
 

Macros

#define IRQ_ATTACH(irq, handler)
 

Functions

static int uavcan_kinetis::can0_irq (const int irq, void *, void *args)
 

Variables

const uavcan::uint32_t uavcan_kinetis::flexcan::OSCERCLK = BOARD_EXTAL_FREQ
 
const uavcan::uint32_t uavcan_kinetis::flexcan::busclck = BOARD_BUS_FREQ
 
const uavcan::uint8_t uavcan_kinetis::flexcan::CLOCKSEL = 0
 
const uavcan::uint32_t uavcan_kinetis::flexcan::canclk = CLOCKSEL ? busclck : OSCERCLK
 
const uavcan::uint8_t uavcan_kinetis::flexcan::useFIFO = 1
 
const uavcan::uint32_t uavcan_kinetis::flexcan::numberFIFOFilters = flexcan::CTRL2_RFFN_16MB
 

Macro Definition Documentation

◆ IRQ_ATTACH

#define IRQ_ATTACH (   irq,
  handler 
)
Value:
{ \
const int res = irq_attach(irq, handler, NULL); \
(void)res; \
assert(res >= 0); \
up_enable_irq(irq); \
}

Referenced by uavcan_stm32::CanDriver::initOnce(), and uavcan_kinetis::CanDriver::initOnce().