Commit Graph

1777 Commits

Author SHA1 Message Date
coreglitch
72e78dcc1b
Gui refactor (#179)
* fix syntax

* [wip] change gui/widget api

* refactor canvas

* gui draw refactor

* compile/run ok, issue with backlight

* lint

* backlight control

* add forgotten u8g2 periphery

* GUI: osWaitForeverfor in queue put, simplify osMessageQueueGet.

* Menu: item callback function context, event osWaitForever timeouts.

* Menu: code format

* GUI: hide canvas inside

* GUI: reformat sources

Co-authored-by: Aleksandr Kutuzov <aku@plooks.com>
2020-10-17 00:25:07 +06:00
Aleksandr Kutuzov
f0800e579f GUI: GuiApi isolation 2020-10-16 18:25:06 +03:00
Aleksandr Kutuzov
491343b683 GUI: reformat sources 2020-10-16 16:36:05 +03:00
Aleksandr Kutuzov
1a36dfc5d3 GUI: hide canvas inside 2020-10-16 16:34:36 +03:00
Aleksandr Kutuzov
23478fd175 Menu: code format 2020-10-16 16:11:51 +03:00
Aleksandr Kutuzov
e213954d2d Menu: item callback function context, event osWaitForever timeouts. 2020-10-16 15:18:36 +03:00
Aleksandr Kutuzov
d715767cef GUI: osWaitForeverfor in queue put, simplify osMessageQueueGet. 2020-10-16 15:16:54 +03:00
aanper
d80e22a6c6 Merge branch 'master' into gui-refactor 2020-10-16 09:46:14 +03:00
aanper
571f97e2b3 hotfix usb stack 2020-10-16 09:45:38 +03:00
aanper
a9a39fcda9 merge from master, menu not work 2020-10-16 07:42:08 +03:00
DrZlo13
05ef19b07a
Pubsub core api feature (#174)
* fixed inline functions for modern C standart

* pubsub api, base version

* basic test for pubsub

* update applications.mk, add test file

* more test for pubsub

* remove unimplemented files, cleanup header file

* remove legacy tests, check unsubscribe not call cb

* implement deleting mutex, fail test

* release mutex before deleting

Co-authored-by: aanper <mail@s3f.ru>
2020-10-15 21:23:18 +03:00
DrZlo13
59740349fa
furi memory managment (#177)
* memory managment calls now forwarded to freertos heap

* memory managment tests

* local target test compability

* rename heap.c file to heap_4.c for local target and explicity init heap in single thread context

* rebase BlockLink_t struct

* check mutex in local heap

Co-authored-by: aanper <mail@s3f.ru>
2020-10-15 20:36:15 +03:00
rusdacent
7570ac08a9
Fix codestyle check pipeline (#178)
* change continue-on-error to false

* add manual trigger

* revert manual trigger

* test fail checkstyle

* restore prev trigger and settings

* fix syntax

* fix exit code for codestyle

* try to break pipeline

* restore pipeline

Co-authored-by: aanper <mail@s3f.ru>
2020-10-15 19:50:21 +03:00
aanper
2806a3ce3d add forgotten u8g2 periphery 2020-10-15 19:16:11 +03:00
aanper
1e40f873a5 backlight control 2020-10-15 19:15:53 +03:00
aanper
f9bda68ef8 lint 2020-10-15 18:57:21 +03:00
aanper
f0f3615c55 compile/run ok, issue with backlight 2020-10-15 18:56:47 +03:00
aanper
78e016412e gui draw refactor 2020-10-15 18:13:18 +03:00
aanper
e684869970 refactor canvas 2020-10-15 18:05:28 +03:00
aanper
19ef348c80 [wip] change gui/widget api 2020-10-15 11:32:48 +03:00
aanper
f2a38cf174 fix syntax 2020-10-15 11:02:40 +03:00
DrZlo13
d33e16dae1
Update .gitignore (#176)
Co-authored-by: coreglitch <mail@s3f.ru>
2020-10-14 14:11:08 +03:00
coreglitch
b2a12d091a
Display and UI implementation (#169)
* Menu app. Lib: add mlib submodule.

* Menu: new startup lib dependency definition

* Menu: hierarchy in menu. Cube: fix heap1/4 inconsistency, stack protection.

* GUI: rendering pipeline initial version.

* GUI: layered widget composing, FURI record. Menu: FURI record, api.

* GUI: input dispatching. Menu: switch to input from GUI.

* GUI, MENU: code style cleanup, fix type conversion warnings.

* GUI, Menu: syntax check.

* Makefile: check and reinit submodules, format.

* Menu: lock on event processing. Makefile: proper submodule initialization.

* Menu: fix stack corruption by queue.

* GUI: refactor.

* Makefile: format rule fix, st-util pid.

* GUI, Menu, FURI: format with clang-format.

* GUI, MENU: locks in critical sections, fix stack corruption, ready signaling.

* Makefile: clang format rule cleanup.

* GUI,MENU: migrate to new API.

* Applications: PRODUCTION_HW variable, skip drivers build on local target.

* refactor production build

* add git to dockerfile

* GUI: uncomment lock block

Co-authored-by: Aleksandr Kutuzov <aku@plooks.com>
2020-10-14 13:21:55 +03:00
aanper
3020a2a6b9 wip cc1101 work 2020-10-14 10:26:23 +03:00
aanper
b007b9cb60 lint code 2020-10-13 20:59:39 +03:00
DrZlo13
1b85fa69af
Build firmware for target without bootloader (#173)
* fixed inline functions for modern C standart

* Build firmware for mcu without bootloader
2020-10-13 14:55:04 +03:00
aanper
f696673700 add workaround app 2020-10-13 13:39:59 +03:00
coreglitch
942bbfaefe
Core api concept (#144)
* add input debounce code from old fw

* exampl of input api

* change input API to get/release

* revert input API to read

* pointer instead of instance

* add input API description

* add display API

* rewrite display names

* migrate to valuemanager

* add LED API

* add closing brakets

* add sound api

* fix led api

* basic api

* rename API pages

* change pubsub implementation

* move FURI AC -> flapp, add valuemutex example, add valuemanager implementation

* pubsub usage example

* user led example

* update example

* simplify input

* add composed display

* add SPI/GPIO and CC1101 bus

* change cc1101 api

* spi api and devices

* spi api and devices

* move SPI to page, add GPIO

* not block pin open

* backlight API and more

* add minunit tests

* fix logging

* ignore unexisting time service on embedded targets

* fix warning, issue with printf

* Deprecate furi_open and furi_close (#167)

Rename existing furi_open and furi_close to deprecated version

* add exitcode

* migrate to printf

* indicate test by leds

* add testing description

* rename furi.h

* wip basic api

* add valuemutex, pubsub, split files

* add value expanders

* value mutex realization and tests

* valuemutex test added to makefile

* do not build unimplemented files

* fix build furmware target f2

* redesigned minunit tests to allow testing in separate files

* test file for valuemutex minunit testing

* minunit partial test valuemutex

* local cmsis_os2 mutex bindings

* implement furi open/create, tests

* migrate concurrent_access to ValueMutex

* add spi header

* Lib: add mlib submodule.

Co-authored-by: rusdacent <rusdacentx0x08@gmail.com>
Co-authored-by: DrZlo13 <who.just.the.doctor@gmail.com>
2020-10-13 11:22:43 +03:00
Pavel Zhovner
b7c30154f4
Broken link in Readme 2020-10-13 03:03:39 +03:00
Pavel Zhovner
a7ee68c095
USB, SD-card wiki updates (#172) 2020-10-13 03:01:25 +03:00
aanper
b463db4f57 general building testing wiki fixes 2020-10-12 09:14:59 +03:00
aanper
3076dd0406 testing wiki fixes 2020-10-12 09:10:15 +03:00
Pavel Zhovner
14b8cba999
Fix wrong font 2020-10-12 02:05:41 +03:00
Pavel Zhovner
032c107bae
Updated font info (#171)
Co-authored-by: Valeria Aquamine <valerie@flipperdevices.com>
2020-10-12 01:58:33 +03:00
coreglitch
469dbf58ac
Fix linter path and lint code (#170)
* chage syntax checker path

* fix syntax
2020-10-11 17:03:05 +06:00
coreglitch
176e608c6d
Add minunit test framework (#168)
* add minunit tests

* fix logging

* ignore unexisting time service on embedded targets

* fix warning, issue with printf

* add exitcode

* migrate to printf

* indicate test by leds

* add testing description

* redesigned minunit tests to allow testing in separate files

* add test step for local target

* add failure test

* add restore test_check

* testing description

Co-authored-by: rusdacent <rusdacentx0x08@gmail.com>
Co-authored-by: DrZlo13 <who.just.the.doctor@gmail.com>
2020-10-10 13:32:06 +03:00
aanper
aa3ac5b242 add forgotten header 2020-10-09 08:10:11 +03:00
DrZlo13
364a8e6f6c
Fix input (#166)
* fixed inline functions for modern C standart

* Fix button-left and button-back setup code

* *nix fix

Co-authored-by: aanper <mail@s3f.ru>
2020-10-08 19:34:43 +03:00
DrZlo13
59513b05ee
Simple sd card driver (#162)
* fixed inline functions for modern C standart

* more stack for application

* added library

* init fatfs library

* fatfs example application

* Merge with current master

* fix typo and delete old files

* cmsis os 2 reentrance fix

* Reworked dependency wait to support multiple dependency

* Build FatFS on local target, syscall.c is target-specific.

* run local target ok

* testcase for fatfs

Co-authored-by: aanper <mail@s3f.ru>
2020-10-08 17:37:19 +03:00
あく
2ab6f82ddf
Makefile: build flags as a target. (#163)
* Makefile: build flags as a target.

* Makefile: proper BUILD_FLAGS generation routine

Co-authored-by: Aleksandr Kutuzov <aku@plooks.com>
2020-10-08 12:47:12 +03:00
あく
3c2711102c
Target refactoring and cube update (#161)
* Lib: move cube to libs. Firmware: prepare for code base refactoring, detach from cube, port to cmsis_os2.

* Firmware, target f2: regenerate project with latest cube package, tim17 for os ticks.

* Firmware: unified codebase.

* Core: do not include semaphore on old targets. Firmware: dfu uplaod target.

* CI: submodules, add firmware build.

* CI: proper submodule config.

* refactor build system

* CI: update chain to use new targets. Documentation: update to match current structure.

* CI: clean before rebuild.

* Add local test

docker-compose exec dev make -C firmware TARGET=local TEST=1 run

* Makefile: target specific build directory. CI: updated artifacts path.

* Makefile: init git submodules if they don't exists.

* Makefile: debug rule now doesn't reset MCU, prevent SIGINT propagation to st-util.

* Makefile: proper rebuild sequence in zz and zzz

* Makefile: timestamp tracking for flash and upload commands.

* Apps: modular build. Input: fix flipper hal inline.

* Wiki: proper bootloader link.

* Applications: fix broken build for local targets.

* add st-flash to docker

* fix build

* force rebuild app

* move app force to firmware part

* fix build deps

* qrcode build ok

* fix example display

* add testing routine

* update build instruction

Co-authored-by: Aleksandr Kutuzov <aku@plooks.com>
Co-authored-by: aanper <mail@s3f.ru>
2020-10-07 12:37:43 +03:00
DrZlo13
04bf049612
New application, QRCode generator (#160)
* Applications dependency, initial realization

* New application, qr code generator

* better buffer clearing

Co-authored-by: aanper <mail@s3f.ru>
2020-10-05 13:33:35 +03:00
DrZlo13
ec5e5da138
Applications dependency, initial realization (#159) 2020-10-05 13:17:34 +03:00
DrZlo13
44ab04f8d6
fixed inline functions for modern C standards (#157) 2020-10-05 13:01:20 +03:00
Pavel Zhovner
33812362d3
[Wiki] VPN hosts 2020-10-04 17:51:40 +03:00
Pavel Zhovner
16dc8dd42f
Reboot LED fix (#158)
Co-authored-by: Valeria Aquamine <valerie@flipperdevices.com>
2020-10-03 20:57:52 +03:00
Lesha Lomalkin
8fb183234c
VPN Wiki page fix (#156) 2020-10-03 00:05:40 +03:00
Pavel Zhovner
4820a63c38 Developers VPN manual 2020-10-02 22:39:39 +03:00
Vadim Kaushan
8c36d65e63
Input handling and debouncing (#148)
* Add input driver and definitions for target_f2

* Add input_dump example

* Invert charge input

* Fix back and left button configuration

* remove input debug

* input testing case

* move header

* lint code

Co-authored-by: aanper <mail@s3f.ru>
2020-10-02 09:44:05 +03:00
coreglitch
ed76f702b1
always break rule (#154) 2020-10-02 09:32:11 +03:00