Fixed some warnings from clang's -Weverything.

This commit is contained in:
Dual Tachyon 2023-08-16 10:04:06 +01:00
parent b8b8d9988b
commit 939d0df345
7 changed files with 16 additions and 3 deletions

View File

@ -17,6 +17,10 @@
#ifndef DRIVER_BACKLIGHT_H
#define DRIVER_BACKLIGHT_H
#include <stdint.h>
extern uint8_t gBacklightCountdown;
void BACKLIGHT_TurnOn(void);
#endif

View File

@ -21,7 +21,8 @@
#include "driver/system.h"
#include "driver/systick.h"
uint16_t gBK4819_GpioOutState;
static uint16_t gBK4819_GpioOutState;
bool gThisCanEnable_BK4819_Rxon;
void BK4819_Init(void)

View File

@ -21,6 +21,7 @@
#include "driver/gpio.h"
#include "driver/system.h"
#include "gui.h"
#include "helper.h"
#include "misc.h"
#include "radio.h"
#include "settings.h"

3
init.c
View File

@ -25,6 +25,9 @@ extern uint8_t _sdata[];
extern uint8_t _sidata_end__[];
extern uint8_t _edata[];
void BSS_Init(void);
void DATA_Init(void);
void BSS_Init(void)
{
uint8_t *pBss;

View File

@ -27,6 +27,8 @@ extern uint8_t overlay_data_end[];
extern const uint8_t sram_overlay_bin[];
void OVERLAY_Install(void);
void OVERLAY_Install(void)
{
uint8_t *pStart;

View File

@ -23,6 +23,8 @@
static volatile uint32_t gGlobalSysTickCounter;
void SystickHandler(void);
void SystickHandler(void)
{
gGlobalSysTickCounter++;

View File

@ -37,13 +37,13 @@ void overlay_FLASH_Lock(void);
void overlay_FLASH_Unlock(void);
uint32_t overlay_FLASH_ReadByAHB(uint32_t Offset);
uint32_t overlay_FLASH_ReadByAPB(uint32_t Offset);
void overlay_FLASH_Set_NVR_SEL(FLASH_AREA Area);
void overlay_FLASH_SetArea(FLASH_AREA Area);
void overlay_FLASH_SetReadMode(FLASH_READ_MODE Mode);
void overlay_FLASH_SetEraseTime(void);
void overlay_FLASH_WakeFromDeepSleep(void);
void overlay_FLASH_SetMode(FLASH_MODE Mode);
void overlay_FLASH_SetProgramTime(void);
void overlay_SystemReset(void);
void overlay_SystemReset(void) __attribute__((noreturn));
uint32_t overlay_FLASH_ReadNvrWord(uint32_t Offset);
void overlay_FLASH_ConfigureTrimValues(void);