Naming and coding style convention, new linter tool. (#945)
* Makefile, Scripts: new linter * About: remove ID from IC * Firmware: remove double define for DIVC/DIVR * Scripts: check folder names too. Docker: replace syntax check with make lint. * Reformat Sources and Migrate to new file naming convention * Docker: symlink clang-format-12 to clang-format * Add coding style guide
This commit is contained in:
+1
-1
@@ -4,5 +4,5 @@ CFLAGS += -I$(CORE_DIR) -D_GNU_SOURCE
|
||||
ASM_SOURCES += $(wildcard $(CORE_DIR)/*.s)
|
||||
C_SOURCES += $(wildcard $(CORE_DIR)/*.c)
|
||||
C_SOURCES += $(wildcard $(CORE_DIR)/furi/*.c)
|
||||
C_SOURCES += $(wildcard $(CORE_DIR)/furi-hal/*.c)
|
||||
C_SOURCES += $(wildcard $(CORE_DIR)/furi_hal/*.c)
|
||||
CPP_SOURCES += $(wildcard $(CORE_DIR)/*.cpp)
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
#include "flipper.h"
|
||||
#include <applications.h>
|
||||
#include <furi.h>
|
||||
#include <furi-hal-version.h>
|
||||
#include <furi_hal_version.h>
|
||||
|
||||
#define TAG "Flipper"
|
||||
|
||||
|
||||
+2
-2
@@ -17,8 +17,8 @@
|
||||
#include <furi/valuemutex.h>
|
||||
#include <furi/log.h>
|
||||
|
||||
#include <furi-hal-gpio.h>
|
||||
#include <furi-hal/api-interrupt-mgr.h>
|
||||
#include <furi_hal_gpio.h>
|
||||
#include <furi_hal/api_interrupt_mgr.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
+3
-3
@@ -1,7 +1,7 @@
|
||||
#include "check.h"
|
||||
#include "furi-hal-task.h"
|
||||
#include <furi-hal-console.h>
|
||||
#include <furi-hal-rtc.h>
|
||||
#include "furi_hal_task.h"
|
||||
#include <furi_hal_console.h>
|
||||
#include <furi_hal_rtc.h>
|
||||
#include <stdio.h>
|
||||
|
||||
__attribute__((always_inline)) inline static void __furi_print_name() {
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
#include "log.h"
|
||||
#include "check.h"
|
||||
#include <cmsis_os2.h>
|
||||
#include <furi-hal.h>
|
||||
#include <furi_hal.h>
|
||||
|
||||
#define FURI_LOG_LEVEL_DEFAULT FuriLogLevelInfo
|
||||
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
#include <FreeRTOS.h>
|
||||
#include <task.h>
|
||||
|
||||
#include <furi-hal.h>
|
||||
#include <furi_hal.h>
|
||||
#include <m-dict.h>
|
||||
|
||||
DICT_DEF2(
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "api-interrupt-mgr.h"
|
||||
#include "api_interrupt_mgr.h"
|
||||
#include <cmsis_os2.h>
|
||||
#include <furi.h>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @file api-interrupt-mgr.h
|
||||
* @file api_interrupt_mgr.h
|
||||
* Furi: interrupt API
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user