10 #if UAVCAN_KINETIS_NUTTX 11 # include <nuttx/arch.h> 13 # include <arch/board/board.h> 14 # include <hardware/kinetis_pit.h> 15 # include <hardware/kinetis_sim.h> 24 #ifndef UAVCAN_KINETIS_LOG 26 # define UAVCAN_KINETIS_LOG(fmt, ...) syslog(LOG_INFO, "uavcan_kinetis: " fmt "\n", ## __VA_ARGS__) 28 # define UAVCAN_KINETIS_LOG(...) ((void)0) 35 #define UAVCAN_KINETIS_IRQ_HANDLER(id) int id(int irq, FAR void* context, FAR void *arg) 41 #define UAVCAN_KINETIS_GLUE2_(A, B) A ## B 42 #define UAVCAN_KINETIS_GLUE2(A, B) UAVCAN_KINETIS_GLUE2_(A, B) 44 #define UAVCAN_KINETIS_GLUE3_(A, B, C) A ## B ## C 45 #define UAVCAN_KINETIS_GLUE3(A, B, C) UAVCAN_KINETIS_GLUE3_(A, B, C) 49 #if UAVCAN_KINETIS_NUTTX 51 struct CriticalSectionLocker {
52 const irqstate_t flags_;
54 CriticalSectionLocker()
55 : flags_(enter_critical_section())
59 ~CriticalSectionLocker()
61 leave_critical_section(flags_);
uavcan::uint64_t getUtcUSecFromCanInterrupt()