mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-23 08:15:26 +03:00
clean up gcc 6.1.1 warnings
This commit is contained in:
parent
a8a9ba82c5
commit
eb9cd8de23
4 changed files with 5 additions and 14 deletions
|
@ -83,7 +83,7 @@ static inline uint8_t __basepriSetRetVal(uint8_t prio)
|
||||||
// ideally this would only protect memory passed as parameter (any type should work), but gcc is currently creating almost full barrier
|
// ideally this would only protect memory passed as parameter (any type should work), but gcc is currently creating almost full barrier
|
||||||
// this macro can be used only ONCE PER LINE, but multiple uses per block are fine
|
// this macro can be used only ONCE PER LINE, but multiple uses per block are fine
|
||||||
|
|
||||||
#if (__GNUC__ > 5)
|
#if (__GNUC__ > 6)
|
||||||
#warning "Please verify that ATOMIC_BARRIER works as intended"
|
#warning "Please verify that ATOMIC_BARRIER works as intended"
|
||||||
// increment version number is BARRIER works
|
// increment version number is BARRIER works
|
||||||
// TODO - use flag to disable ATOMIC_BARRIER and use full barrier instead
|
// TODO - use flag to disable ATOMIC_BARRIER and use full barrier instead
|
||||||
|
|
|
@ -83,11 +83,6 @@ static const uint8_t ubloxInit_NAV5_Airborne4G[] = {
|
||||||
0x00, 0xC8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1C, 0x6C
|
0x00, 0xC8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1C, 0x6C
|
||||||
};
|
};
|
||||||
|
|
||||||
static const uint8_t ubloxInit_NAVX5[] = {
|
|
||||||
0xB5, 0x62, 0x06, 0x23, 0x28, 0x00, 0x00, 0x00, 0x4C, 0x66, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // CFG-NAVX5 min 5 SV
|
|
||||||
0x05, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
||||||
0x00, 0x00, 0x00, 0x00, 0x64, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7C, 0xCD,
|
|
||||||
};
|
|
||||||
|
|
||||||
static const uint8_t ubloxInit_MSG_NMEA[] = {
|
static const uint8_t ubloxInit_MSG_NMEA[] = {
|
||||||
// DISABLE NMEA messages
|
// DISABLE NMEA messages
|
||||||
|
|
|
@ -373,10 +373,6 @@ static const char * const lookupTableSerialRX[] = {
|
||||||
"IBUS"
|
"IBUS"
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char * const lookupTableGyroFilter[] = {
|
|
||||||
"OFF", "LOW", "MEDIUM", "HIGH"
|
|
||||||
};
|
|
||||||
|
|
||||||
static const char * const lookupTableGyroLpf[] = {
|
static const char * const lookupTableGyroLpf[] = {
|
||||||
"256HZ",
|
"256HZ",
|
||||||
"188HZ",
|
"188HZ",
|
||||||
|
@ -1830,7 +1826,7 @@ void cliEnter(serialPort_t *serialPort)
|
||||||
setPrintfSerialPort(cliPort);
|
setPrintfSerialPort(cliPort);
|
||||||
cliWriter = bufWriterInit(cliWriteBuffer, sizeof(cliWriteBuffer),
|
cliWriter = bufWriterInit(cliWriteBuffer, sizeof(cliWriteBuffer),
|
||||||
(bufWrite_t)serialWriteBufShim, serialPort);
|
(bufWrite_t)serialWriteBufShim, serialPort);
|
||||||
|
|
||||||
cliPrint("\r\nEntering CLI Mode, type 'exit' to return, or 'help'\r\n");
|
cliPrint("\r\nEntering CLI Mode, type 'exit' to return, or 'help'\r\n");
|
||||||
cliPrompt();
|
cliPrompt();
|
||||||
ENABLE_ARMING_FLAG(PREVENT_ARMING);
|
ENABLE_ARMING_FLAG(PREVENT_ARMING);
|
||||||
|
@ -1842,7 +1838,7 @@ static void cliExit(char *cmdline)
|
||||||
|
|
||||||
cliPrint("\r\nLeaving CLI mode, unsaved changes lost.\r\n");
|
cliPrint("\r\nLeaving CLI mode, unsaved changes lost.\r\n");
|
||||||
bufWriterFlush(cliWriter);
|
bufWriterFlush(cliWriter);
|
||||||
|
|
||||||
*cliBuffer = '\0';
|
*cliBuffer = '\0';
|
||||||
bufferIndex = 0;
|
bufferIndex = 0;
|
||||||
cliMode = 0;
|
cliMode = 0;
|
||||||
|
@ -2558,7 +2554,7 @@ void cliProcess(void)
|
||||||
|
|
||||||
// Be a little bit tricky. Flush the last inputs buffer, if any.
|
// Be a little bit tricky. Flush the last inputs buffer, if any.
|
||||||
bufWriterFlush(cliWriter);
|
bufWriterFlush(cliWriter);
|
||||||
|
|
||||||
while (serialRxBytesWaiting(cliPort)) {
|
while (serialRxBytesWaiting(cliPort)) {
|
||||||
uint8_t c = serialRead(cliPort);
|
uint8_t c = serialRead(cliPort);
|
||||||
if (c == '\t' || c == '?') {
|
if (c == '\t' || c == '?') {
|
||||||
|
|
|
@ -105,7 +105,7 @@ void printfSupportInit(void);
|
||||||
void timerInit(void);
|
void timerInit(void);
|
||||||
void telemetryInit(void);
|
void telemetryInit(void);
|
||||||
void serialInit(serialConfig_t *initialSerialConfig, bool softserialEnabled);
|
void serialInit(serialConfig_t *initialSerialConfig, bool softserialEnabled);
|
||||||
void mspInit(serialConfig_t *serialConfig);
|
void mspInit();
|
||||||
void cliInit(serialConfig_t *serialConfig);
|
void cliInit(serialConfig_t *serialConfig);
|
||||||
void failsafeInit(rxConfig_t *intialRxConfig, uint16_t deadband3d_throttle);
|
void failsafeInit(rxConfig_t *intialRxConfig, uint16_t deadband3d_throttle);
|
||||||
pwmIOConfiguration_t *pwmInit(drv_pwm_config_t *init);
|
pwmIOConfiguration_t *pwmInit(drv_pwm_config_t *init);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue