fixed spacing and variable notation

This commit is contained in:
suiauthon
2016-06-02 17:31:37 +02:00
parent ea8e8cd892
commit 6b74f21fba
4 changed files with 6 additions and 6 deletions
@@ -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 );
}
/*