Fixed spacing and comment annotations around namespace and extern declarations (#587)

This commit is contained in:
Tyler Veness
2017-08-23 22:07:46 -07:00
committed by Peter Johnson
parent f151892db5
commit a4e781a231
34 changed files with 94 additions and 26 deletions

View File

@@ -16,17 +16,20 @@
using namespace hal;
namespace {
struct Counter {
std::unique_ptr<tCounter> counter;
uint8_t index;
};
}
} // namespace
static LimitedHandleResource<HAL_CounterHandle, Counter, kNumCounters,
HAL_HandleEnum::Counter>
counterHandles;
extern "C" {
HAL_CounterHandle HAL_InitializeCounter(HAL_Counter_Mode mode, int32_t* index,
int32_t* status) {
auto handle = counterHandles.Allocate();
@@ -463,4 +466,5 @@ void HAL_SetCounterReverseDirection(HAL_CounterHandle counterHandle,
HAL_SetCounterDownSourceEdge(counterHandle, false, true, status);
}
}
}
} // extern "C"