cdev_platform.hpp
353 Bytes
#pragma once
#include <inttypes.h>
#include <nuttx/arch.h>
#include <px4_platform_common/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