Disable preprocessor code indentation
parent
f95c47638d
commit
9448c04b36
|
|
@ -75,7 +75,7 @@ IncludeCategories:
|
|||
Priority: 1
|
||||
IncludeIsMainRegex: '(Test)?$'
|
||||
IndentCaseLabels: false
|
||||
IndentPPDirectives: BeforeHash
|
||||
IndentPPDirectives: None
|
||||
IndentWidth: 4
|
||||
IndentWrappedFunctionNames: false
|
||||
JavaScriptQuotes: Leave
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue