mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-06 14:08:53 +08:00
fixed spacing and variable notation
This commit is contained in:
@@ -168,7 +168,7 @@ public:
|
||||
class BusEvent
|
||||
{
|
||||
SemaphoreHandle_t sem_;
|
||||
BaseType_t xHigherPriorityTaskWoken;
|
||||
BaseType_t higher_priority_task_woken;
|
||||
|
||||
public:
|
||||
BusEvent(CanDriver& can_driver)
|
||||
|
||||
@@ -879,7 +879,7 @@ uavcan::int16_t CanDriver::select(uavcan::CanSelectMasks& inout_masks,
|
||||
|
||||
static void nvicEnableVector(IRQn_Type irq, uint8_t prio)
|
||||
{
|
||||
#if !defined (USE_HAL_DRIVER)
|
||||
#if !defined (USE_HAL_DRIVER)
|
||||
NVIC_InitTypeDef NVIC_InitStructure;
|
||||
NVIC_InitStructure.NVIC_IRQChannel = irq;
|
||||
NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = prio;
|
||||
|
||||
@@ -85,7 +85,7 @@ uavcan::uint64_t time_utc = 0;
|
||||
|
||||
static void nvicEnableVector(IRQn_Type irq, uint8_t prio)
|
||||
{
|
||||
#if !defined (USE_HAL_DRIVER)
|
||||
#if !defined (USE_HAL_DRIVER)
|
||||
NVIC_InitTypeDef NVIC_InitStructure;
|
||||
NVIC_InitStructure.NVIC_IRQChannel = irq;
|
||||
NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = prio;
|
||||
|
||||
@@ -109,14 +109,14 @@ void BusEvent::signal()
|
||||
|
||||
void BusEvent::signalFromInterrupt()
|
||||
{
|
||||
xHigherPriorityTaskWoken = pdFALSE;
|
||||
higher_priority_task_woken = pdFALSE;
|
||||
|
||||
xSemaphoreGiveFromISR( sem_, &xHigherPriorityTaskWoken );
|
||||
xSemaphoreGiveFromISR( sem_, &higher_priority_task_woken );
|
||||
}
|
||||
|
||||
void BusEvent::yieldFromISR()
|
||||
{
|
||||
portYIELD_FROM_ISR( xHigherPriorityTaskWoken );
|
||||
portYIELD_FROM_ISR( higher_priority_task_woken );
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user