Disable preprocessor code indentation

pull/48/head
Alan Dragomirecký 2021-07-07 15:51:27 +02:00 committed by Alan Dragomirecký
parent f95c47638d
commit 9448c04b36
8 changed files with 33 additions and 34 deletions

View File

@ -75,7 +75,7 @@ IncludeCategories:
Priority: 1
IncludeIsMainRegex: '(Test)?$'
IndentCaseLabels: false
IndentPPDirectives: BeforeHash
IndentPPDirectives: None
IndentWidth: 4
IndentWrappedFunctionNames: false
JavaScriptQuotes: Leave

View File

@ -22,8 +22,7 @@ void SHR16::Init() {
void SHR16::Write(uint16_t v) {
using namespace hal::gpio;
WritePin(SHR16_LATCH, Level::low);
for (uint16_t m = 0x8000; m; m >>= 1)
{
for (uint16_t m = 0x8000; m; m >>= 1) {
WritePin(SHR16_DATA, (Level)((m & v) != 0));
WritePin(SHR16_CLOCK, Level::high);
WritePin(SHR16_CLOCK, Level::low);

View File

@ -13,8 +13,7 @@ namespace hal {
namespace progmem {
/// read a 16bit word from PROGMEM
static inline uint16_t read_word(const uint16_t* addr)
{
static inline uint16_t read_word(const uint16_t *addr) {
#ifndef __AVR__
return *addr;
#else

View File

@ -88,7 +88,8 @@ public:
husart->UCSRxB &= ~(1 << 5); // disable UDRE interrupt
}
USART(hal::usart::USART::USART_TypeDef *husart) : husart(husart) {};
USART(hal::usart::USART::USART_TypeDef *husart)
: husart(husart) {};
private:
// IO base address