mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-18 22:05:17 +03:00
Normalize all the line endings
This commit is contained in:
parent
4237370b60
commit
d60183d91d
396 changed files with 158300 additions and 158300 deletions
|
@ -1,51 +1,51 @@
|
|||
/*
|
||||
* This file is part of Cleanflight.
|
||||
*
|
||||
* Cleanflight is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* Cleanflight is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with Cleanflight. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
// Helpful macros
|
||||
#ifdef LED0
|
||||
#define LED0_TOGGLE digitalToggle(LED0_GPIO, LED0_PIN);
|
||||
#ifndef LED0_INVERTED
|
||||
#define LED0_OFF digitalHi(LED0_GPIO, LED0_PIN);
|
||||
#define LED0_ON digitalLo(LED0_GPIO, LED0_PIN);
|
||||
#else
|
||||
#define LED0_OFF digitalLo(LED0_GPIO, LED0_PIN);
|
||||
#define LED0_ON digitalHi(LED0_GPIO, LED0_PIN);
|
||||
#endif // inverted
|
||||
#else
|
||||
#define LED0_TOGGLE
|
||||
#define LED0_OFF
|
||||
#define LED0_ON
|
||||
#endif
|
||||
|
||||
#ifdef LED1
|
||||
#define LED1_TOGGLE digitalToggle(LED1_GPIO, LED1_PIN);
|
||||
#ifndef LED1_INVERTED
|
||||
#define LED1_OFF digitalHi(LED1_GPIO, LED1_PIN);
|
||||
#define LED1_ON digitalLo(LED1_GPIO, LED1_PIN);
|
||||
#else
|
||||
#define LED1_OFF digitalLo(LED1_GPIO, LED1_PIN);
|
||||
#define LED1_ON digitalHi(LED1_GPIO, LED1_PIN);
|
||||
#endif // inverted
|
||||
#else
|
||||
#define LED1_TOGGLE
|
||||
#define LED1_OFF
|
||||
#define LED1_ON
|
||||
#endif
|
||||
|
||||
void ledInit(void);
|
||||
/*
|
||||
* This file is part of Cleanflight.
|
||||
*
|
||||
* Cleanflight is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* Cleanflight is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with Cleanflight. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
// Helpful macros
|
||||
#ifdef LED0
|
||||
#define LED0_TOGGLE digitalToggle(LED0_GPIO, LED0_PIN);
|
||||
#ifndef LED0_INVERTED
|
||||
#define LED0_OFF digitalHi(LED0_GPIO, LED0_PIN);
|
||||
#define LED0_ON digitalLo(LED0_GPIO, LED0_PIN);
|
||||
#else
|
||||
#define LED0_OFF digitalLo(LED0_GPIO, LED0_PIN);
|
||||
#define LED0_ON digitalHi(LED0_GPIO, LED0_PIN);
|
||||
#endif // inverted
|
||||
#else
|
||||
#define LED0_TOGGLE
|
||||
#define LED0_OFF
|
||||
#define LED0_ON
|
||||
#endif
|
||||
|
||||
#ifdef LED1
|
||||
#define LED1_TOGGLE digitalToggle(LED1_GPIO, LED1_PIN);
|
||||
#ifndef LED1_INVERTED
|
||||
#define LED1_OFF digitalHi(LED1_GPIO, LED1_PIN);
|
||||
#define LED1_ON digitalLo(LED1_GPIO, LED1_PIN);
|
||||
#else
|
||||
#define LED1_OFF digitalLo(LED1_GPIO, LED1_PIN);
|
||||
#define LED1_ON digitalHi(LED1_GPIO, LED1_PIN);
|
||||
#endif // inverted
|
||||
#else
|
||||
#define LED1_TOGGLE
|
||||
#define LED1_OFF
|
||||
#define LED1_ON
|
||||
#endif
|
||||
|
||||
void ledInit(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue