mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Random cleanup of remains from past times
This commit is contained in:
7
Brewfile
7
Brewfile
@@ -1,7 +0,0 @@
|
||||
cask "brew-cask/gcc-arm-embedded.rb"
|
||||
brew "protobuf"
|
||||
brew "gdb"
|
||||
brew "open-ocd"
|
||||
brew "clang-format"
|
||||
brew "dfu-util"
|
||||
brew "protobuf-c"
|
||||
@@ -11,7 +11,6 @@
|
||||
#include <stddef.h>
|
||||
#include <toolbox/level_duration.h>
|
||||
#include <furi_hal_gpio.h>
|
||||
#include <momentum/momentum.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#include <furi_hal.h>
|
||||
|
||||
#include "../desktop_i.h"
|
||||
#include <momentum/momentum.h>
|
||||
|
||||
#define DesktopFaultEventExit 0x00FF00FF
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ void view_dispatcher_enable_queue(ViewDispatcher* view_dispatcher) {
|
||||
view_dispatcher_run_input_callback,
|
||||
view_dispatcher);
|
||||
|
||||
view_dispatcher->ascii_queue = furi_message_queue_alloc(8, sizeof(AsciiEvent));
|
||||
view_dispatcher->ascii_queue = furi_message_queue_alloc(16, sizeof(AsciiEvent));
|
||||
furi_event_loop_message_queue_subscribe(
|
||||
view_dispatcher->event_loop,
|
||||
view_dispatcher->ascii_queue,
|
||||
|
||||
@@ -1,56 +0,0 @@
|
||||
cask "gcc-arm-embedded" do
|
||||
# Exists as a cask because it is impractical as a formula:
|
||||
# https://github.com/Homebrew/homebrew-core/pull/45780#issuecomment-569246452
|
||||
version "10.3-2021.07,10.14.6"
|
||||
sha256 "cae8b168ad16556ca204c0b441f9fb2c05be85362fe10e3b210be6b7177ef2d7"
|
||||
|
||||
url "https://developer.arm.com/-/media/Files/downloads/gnu-rm/#{version.before_comma}/gcc-arm-none-eabi-#{version.before_comma}-mac-#{version.after_comma}-sha1.pkg"
|
||||
name "GCC ARM Embedded"
|
||||
desc "Pre-built GNU bare-metal toolchain for 32-bit Arm processors"
|
||||
homepage "https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm"
|
||||
|
||||
livecheck do
|
||||
url "https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads"
|
||||
strategy :page_match do |page|
|
||||
match = page.match(/href=.*?gcc-arm-none-eabi-(\d+\.\d+-\d+\.\d+)-mac-(\d+\.\d+\.\d+)-sha1.pkg/i)
|
||||
"#{match[1]},#{match[2]}"
|
||||
end
|
||||
end
|
||||
|
||||
pkg "gcc-arm-none-eabi-#{version.before_comma}-mac-#{version.after_comma}-sha1.pkg"
|
||||
binary "#{appdir}/ARM/bin/arm-none-eabi-addr2line"
|
||||
binary "#{appdir}/ARM/bin/arm-none-eabi-ar"
|
||||
binary "#{appdir}/ARM/bin/arm-none-eabi-as"
|
||||
binary "#{appdir}/ARM/bin/arm-none-eabi-c++"
|
||||
binary "#{appdir}/ARM/bin/arm-none-eabi-c++filt"
|
||||
binary "#{appdir}/ARM/bin/arm-none-eabi-cpp"
|
||||
binary "#{appdir}/ARM/bin/arm-none-eabi-elfedit"
|
||||
binary "#{appdir}/ARM/bin/arm-none-eabi-g++"
|
||||
binary "#{appdir}/ARM/bin/arm-none-eabi-gcc"
|
||||
binary "#{appdir}/ARM/bin/arm-none-eabi-gcc-10.3.1"
|
||||
binary "#{appdir}/ARM/bin/arm-none-eabi-gcc-ar"
|
||||
binary "#{appdir}/ARM/bin/arm-none-eabi-gcc-nm"
|
||||
binary "#{appdir}/ARM/bin/arm-none-eabi-gcc-ranlib"
|
||||
binary "#{appdir}/ARM/bin/arm-none-eabi-gcov"
|
||||
binary "#{appdir}/ARM/bin/arm-none-eabi-gcov-dump"
|
||||
binary "#{appdir}/ARM/bin/arm-none-eabi-gcov-tool"
|
||||
binary "#{appdir}/ARM/bin/arm-none-eabi-gdb"
|
||||
binary "#{appdir}/ARM/bin/arm-none-eabi-gdb-add-index"
|
||||
binary "#{appdir}/ARM/bin/arm-none-eabi-gdb-add-index-py"
|
||||
binary "#{appdir}/ARM/bin/arm-none-eabi-gdb-py"
|
||||
binary "#{appdir}/ARM/bin/arm-none-eabi-gprof"
|
||||
binary "#{appdir}/ARM/bin/arm-none-eabi-ld"
|
||||
binary "#{appdir}/ARM/bin/arm-none-eabi-ld.bfd"
|
||||
binary "#{appdir}/ARM/bin/arm-none-eabi-lto-dump"
|
||||
binary "#{appdir}/ARM/bin/arm-none-eabi-nm"
|
||||
binary "#{appdir}/ARM/bin/arm-none-eabi-objcopy"
|
||||
binary "#{appdir}/ARM/bin/arm-none-eabi-objdump"
|
||||
binary "#{appdir}/ARM/bin/arm-none-eabi-ranlib"
|
||||
binary "#{appdir}/ARM/bin/arm-none-eabi-readelf"
|
||||
binary "#{appdir}/ARM/bin/arm-none-eabi-size"
|
||||
binary "#{appdir}/ARM/bin/arm-none-eabi-strings"
|
||||
binary "#{appdir}/ARM/bin/arm-none-eabi-strip"
|
||||
|
||||
uninstall pkgutil: "gcc.arm-none-eabi-#{version[/^(\d{2})/]}",
|
||||
delete: "/Applications/ARM"
|
||||
end
|
||||
2
fbt
2
fbt
@@ -33,7 +33,7 @@ if [ -z "$FBT_NO_SYNC" ]; then
|
||||
_FBT_CLONE_FLAGS="$_FBT_CLONE_FLAGS --depth 1";
|
||||
fi
|
||||
|
||||
git submodule update --init --recursive --recursive $_FBT_CLONE_FLAGS;
|
||||
git submodule update --init --recursive $_FBT_CLONE_FLAGS;
|
||||
fi
|
||||
|
||||
$SCONS_EP $SCONS_DEFAULT_FLAGS "$@"
|
||||
|
||||
2
fbt.cmd
2
fbt.cmd
@@ -9,7 +9,7 @@ if [%FBT_NO_SYNC%] == [] (
|
||||
set _FBT_CLONE_FLAGS=%_FBT_CLONE_FLAGS% --depth 1
|
||||
)
|
||||
if exist ".git" (
|
||||
git submodule update --init --recursive --recursive %_FBT_CLONE_FLAGS%
|
||||
git submodule update --init --recursive %_FBT_CLONE_FLAGS%
|
||||
if %ERRORLEVEL% neq 0 (
|
||||
echo Failed to update submodules, set FBT_NO_SYNC to skip
|
||||
exit /b 1
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
from pathlib import Path
|
||||
import posixpath
|
||||
import re
|
||||
import os
|
||||
|
||||
# For more details on these options, run 'fbt -h'
|
||||
|
||||
@@ -5371,7 +5371,7 @@ FRESULT f_mkfs (
|
||||
/* Pre-determine the FAT type */
|
||||
do {
|
||||
if (_FS_EXFAT && (opt & FM_EXFAT)) { /* exFAT possible? */
|
||||
if ((opt & FM_ANY) == FM_EXFAT || sz_vol >= 0x2000000 || au > 128) { /* exFAT only, vol >= 32Ms or au > 128s ? */
|
||||
if ((opt & FM_ANY) == FM_EXFAT || sz_vol >= 0x4000000 || au > 128) { /* exFAT only, vol >= 64Ms or au > 128s ? */
|
||||
fmt = FS_EXFAT; break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#include "t5577.h"
|
||||
#include <furi.h>
|
||||
#include <furi_hal_rfid.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#define T5577_TIMING_WAIT_TIME 400
|
||||
#define T5577_TIMING_START_GAP 30
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
|
||||
#include <furi.h>
|
||||
|
||||
// #ifdef FURI_NDEBUG
|
||||
// #define LFS_NO_ASSERT
|
||||
// #define LFS_ASSERT(x)
|
||||
// #else
|
||||
#ifdef FURI_NDEBUG
|
||||
#define LFS_NO_ASSERT
|
||||
#define LFS_ASSERT(x)
|
||||
#else
|
||||
#define LFS_ASSERT furi_assert
|
||||
// #endif
|
||||
#endif
|
||||
|
||||
#define LFS_TAG "Lfs"
|
||||
|
||||
|
||||
@@ -5813,7 +5813,6 @@ extern const uint8_t u8g2_font_px437wyse700b_tn[] U8G2_FONT_SECTION("u8g2_font_p
|
||||
extern const uint8_t u8g2_font_px437wyse700b_mf[] U8G2_FONT_SECTION("u8g2_font_px437wyse700b_mf");
|
||||
extern const uint8_t u8g2_font_px437wyse700b_mr[] U8G2_FONT_SECTION("u8g2_font_px437wyse700b_mr");
|
||||
extern const uint8_t u8g2_font_px437wyse700b_mn[] U8G2_FONT_SECTION("u8g2_font_px437wyse700b_mn");
|
||||
extern const uint8_t u8g2_font_eurocorp_tr[] U8G2_FONT_SECTION("u8g2_font_eurocorp_tr");
|
||||
|
||||
/* end font list */
|
||||
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
#!/bin/bash
|
||||
pushd .
|
||||
$1
|
||||
popd
|
||||
@@ -1,28 +0,0 @@
|
||||
sonar.projectKey=Next-Flip_Momentum-Firmware
|
||||
sonar.organization=Next-Flip
|
||||
|
||||
# This is the name and version displayed in the SonarCloud UI.
|
||||
#sonar.projectName=Momentum-Firmware
|
||||
#sonar.projectVersion=1.0
|
||||
|
||||
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
|
||||
#sonar.sources=.
|
||||
|
||||
# Encoding of the source code. Default is default system encoding
|
||||
#sonar.sourceEncoding=UTF-8
|
||||
|
||||
|
||||
# Ignore some rules
|
||||
sonar.issue.ignore.multicriteria=c1,c2,c3
|
||||
|
||||
# Make sure use of "strcpy" is safe here
|
||||
sonar.issue.ignore.multicriteria.c1.ruleKey=c:S5801
|
||||
sonar.issue.ignore.multicriteria.c1.resourceKey=**/*.c
|
||||
|
||||
# Make sure use of "strlen" is safe here
|
||||
sonar.issue.ignore.multicriteria.c2.ruleKey=c:S5813
|
||||
sonar.issue.ignore.multicriteria.c2.resourceKey=**/*.c
|
||||
|
||||
# Make sure that using this pseudorandom number generator "rand" is safe here
|
||||
sonar.issue.ignore.multicriteria.c3.ruleKey=c:S2245
|
||||
sonar.issue.ignore.multicriteria.c3.resourceKey=**/*.c
|
||||
@@ -107,7 +107,7 @@ BleServiceDevInfo* ble_svc_dev_info_start(void) {
|
||||
sizeof(software_revision),
|
||||
"%s %s %s %s",
|
||||
version_get_githash(NULL),
|
||||
version_get_version(NULL),
|
||||
version_get_gitbranch(NULL),
|
||||
version_get_gitbranchnum(NULL),
|
||||
version_get_builddate(NULL));
|
||||
snprintf(hardware_revision, sizeof(hardware_revision), "%d", version_get_target(NULL));
|
||||
|
||||
@@ -9,12 +9,6 @@
|
||||
#include <furi.h>
|
||||
#include <protobuf_version.h>
|
||||
|
||||
#include <momentum/momentum.h>
|
||||
#include <rgb_backlight.h>
|
||||
#include <SK6805.h>
|
||||
#include <colors.h>
|
||||
#include <stdint.h>
|
||||
|
||||
FURI_WEAK void furi_hal_info_get_api_version(uint16_t* major, uint16_t* minor) {
|
||||
*major = 0;
|
||||
*minor = 0;
|
||||
|
||||
Reference in New Issue
Block a user