Files
bizhang_-obav/src/lib/cdev/nuttx/cdev_platform.hpp
Daniel Agar a2f4757e31 CDev extract from drivers Device class hierarchy
- leave CDev shim for now until all usage is updated
2018-08-27 13:14:15 -04:00

20 lines
336 B
C++

#pragma once
#include <cinttypes>
#include <nuttx/arch.h>
#include <px4_micro_hal.h>
#define ATOMIC_ENTER irqstate_t flags = px4_enter_critical_section()
#define ATOMIC_LEAVE px4_leave_critical_section(flags)
namespace cdev
{
using px4_file_operations_t = struct file_operations;
using file_t = struct file;
} // namespace cdev