mirror of
https://github.com/DualTachyon/uv-k5-firmware.git
synced 2025-02-17 17:50:43 +08:00
Fixed some warnings from clang's -Weverything.
This commit is contained in:
parent
b8b8d9988b
commit
939d0df345
@ -17,6 +17,10 @@
|
||||
#ifndef DRIVER_BACKLIGHT_H
|
||||
#define DRIVER_BACKLIGHT_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
extern uint8_t gBacklightCountdown;
|
||||
|
||||
void BACKLIGHT_TurnOn(void);
|
||||
|
||||
#endif
|
||||
|
@ -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)
|
||||
|
1
helper.c
1
helper.c
@ -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
3
init.c
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -23,6 +23,8 @@
|
||||
|
||||
static volatile uint32_t gGlobalSysTickCounter;
|
||||
|
||||
void SystickHandler(void);
|
||||
|
||||
void SystickHandler(void)
|
||||
{
|
||||
gGlobalSysTickCounter++;
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user