Commit graph

1452 commits

Author SHA1 Message Date
Vadim Kaushan
bb68fca20b
Implement ValueManager and ValueComposer (#183)
* Fix ValueManager implementation
* Implement ValueComposer
* Add constructor for ValueManager
* Add value-expanders.h to flipper_v2.h set
* Move COPY_COMPOSE body into a .c file
* Add test for ValueManager
* Add destructors for ValueMutex, ValueManager and ValueComposer
* Use destructors in tests
* Move composition logic into perform_compose()
* Add docs for perform_compose()
* Add test for ValueComposer
* Replace atomic_bool with bool as g++ compiler doesn't support C11 atomics
* Add Event type
* Add semaphore support to the local target
* Add test for Event
* Update input records and relevant examples
* Rename Event to AppEvent in the cc1101-workaround example
* Rename Event to AppEvent in the irda example
* Use Event in ValueComposer to wait for update request
* Add perform_compose_internal() function
* fix Event/AppEvent

Co-authored-by: aanper <mail@s3f.ru>
2020-10-26 12:26:15 +03:00
DrZlo13
69d97afea8
IRDA samsung protocol (#200)
* samsung irda protocol implementation
* app for samsung irda protocol
* smaller strings and hal pwm

Co-authored-by: aanper <mail@s3f.ru>
2020-10-26 10:27:27 +03:00
coreglitch
f5b342abbe
Api hw gpio pwm (#199)
* initial gpio layer

* move temlplate.c to template.c.example in preparing to applications.mk rework

* separate arduino layer

* separate flipper_hal.x

* prepare to switch applications on v2 core gpio api

* swithch applications to v2 gpio api

* gpio api for local target

* better gpio_disable handling

* remove pwm functions from local target

* inline gpio funcs

* common function to init all api's

* fix local example blink

* move delay us to hal api folder

* move pwm_set/pwm_stop to hal api folder

* update applications to use hal pwm api

* remove gpio mode case warning

* add speaker demo to build

Co-authored-by: DrZlo13 <who.just.the.doctor@gmail.com>
2020-10-26 10:16:54 +03:00
rusdacent
c8cc3c7dc8
Refactor pylint (#195)
* fix pylint paths

* add fake py file for test
* rm fake py file
* add fake txt file for test
* rm fake txt file
* fix paths for pull request
* fix for pull request trigger
* add fake py file for test
* rm fake py file
* add fake text file for test
* rm fake text file for test

Co-authored-by: coreglitch <mail@s3f.ru>
2020-10-26 09:59:16 +03:00
Pavel Zhovner
aa835aa7c9 [Wiki] Update firmware fix 2020-10-23 16:54:16 +03:00
DrZlo13
37fc47a24f
IR transmit example (#180)
* DWT-based microsecond delay

* simple ir app (work only with NEC protocol and predefined address - command)

* remove space from file name, add delay_us_init_DWT header

* float-based delay us

* init tim2 by CubeMX

* fix simple pwm functions

* simple pwm timer based ir nec protocol

* ir gui test app

Co-authored-by: aanper <mail@s3f.ru>
2020-10-23 12:39:11 +03:00
Pavel Zhovner
7205fa7ed7 [Wiki] Firmware update, fixes 2020-10-23 11:42:53 +03:00
coreglitch
b624b2dc9d
Merge pull request #192 from Flipper-Zero/aku_wiki_fix
Wiki: proper crossplatform symlink dereference while copying
2020-10-22 16:43:20 +06:00
Aleksandr Kutuzov
8099915ce2 Wiki: proper crossplatform symlink dereference while copying. Fixes #191. 2020-10-22 12:25:56 +03:00
aanper
83dad63813 fix brace 2020-10-22 10:06:40 +03:00
aanper
736225c90e fix syntax 2020-10-22 09:59:33 +03:00
aanper
fe89c81bfa add example template code 2020-10-22 09:58:51 +03:00
coreglitch
e5f9159f66
Merge pull request #184 from Flipper-Zero/aku_nfc_clean
NFC: application + rfal + driver.
2020-10-21 18:26:49 +06:00
aanper
b607e6e5f5 add todo about dispatcher lock implementation 2020-10-21 15:19:43 +03:00
Aleksandr Kutuzov
1595ec782e CC1101: format sources 2020-10-21 15:13:26 +03:00
Aleksandr Kutuzov
aced0ee961 CC1101: explicitly configure SPI 2020-10-21 15:06:18 +03:00
Aleksandr Kutuzov
adb319b912 RFAL: explicitly configure SPI 2020-10-21 14:44:48 +03:00
aanper
4e4965fad3 syntax check 2020-10-21 13:59:52 +03:00
aanper
a1780154df not start worker if err 2020-10-21 13:52:51 +03:00
aanper
fa2f071ed1 start nfc test anyway (showing error) 2020-10-21 12:59:06 +03:00
aanper
d818fe1d27 Merge branch 'master' into aku_nfc_clean 2020-10-21 12:21:53 +03:00
coreglitch
bd670c3a6b
Merge pull request #185 from Flipper-Zero/clang-format-update
update version clang-format
2020-10-21 15:14:59 +06:00
aanper
e95db0eedd update AllowShortBlocksOnASingleLine param (not work) 2020-10-21 12:08:23 +03:00
Aleksandr Kutuzov
f33647df54 NFC: replace deprecated furi api with new one 2020-10-20 17:27:54 +03:00
Aleksandr Kutuzov
aab597e0a3 NFC: format sources 2020-10-20 16:58:41 +03:00
Aleksandr Kutuzov
92f6e124ba NFC: screens for not implemented features 2020-10-20 16:49:52 +03:00
Aleksandr Kutuzov
6b33e8ff61 Menu: fix code formatting 2020-10-20 16:27:38 +03:00
Aleksandr Kutuzov
357922ab14 NFC: proper menu valuemutex invokation 2020-10-20 16:20:53 +03:00
Aleksandr Kutuzov
224668e156 Menu: handle empty menu 2020-10-20 16:20:30 +03:00
Aleksandr Kutuzov
e2157b2403 NFC: format source. 2020-10-20 15:31:21 +03:00
Aleksandr Kutuzov
4c60218997 NFC: proper include order in Makefile 2020-10-20 15:25:01 +03:00
Aleksandr Kutuzov
88ab3c3aee NFS: export config var 2020-10-20 15:02:00 +03:00
Aleksandr Kutuzov
b1eb171e4b Nfc: show nfc driver status 2020-10-20 14:12:34 +03:00
Aleksandr Kutuzov
d27b93c1ca NFC: add interrupt routine only if APP_NFC is defined 2020-10-20 14:12:34 +03:00
Aleksandr Kutuzov
785469f598 NFC: input ISR cleanup 2020-10-20 14:12:34 +03:00
Aleksandr Kutuzov
ecc93152c9 NFC: rename to Nfc 2020-10-20 14:12:34 +03:00
Aleksandr Kutuzov
c124471d44 NFC: build rfal with only with nfc app 2020-10-20 14:12:34 +03:00
Aleksandr Kutuzov
ee18198b4d Move dispatcher to nfc. 2020-10-20 14:12:34 +03:00
Aleksandr Kutuzov
4fea9e43a8 clang format 2020-10-20 14:12:33 +03:00
Aleksandr Kutuzov
4c9eb4928d NFC: application + rfal + driver. 2020-10-20 14:12:28 +03:00
aanper
767f9aa4fa Merge remote-tracking branch 'origin/master' into clang-format-update 2020-10-20 13:55:01 +03:00
coreglitch
763606c1d2
Merge pull request #188 from Flipper-Zero/fix-asserts
better assert handling
2020-10-20 16:50:11 +06:00
rusdacent
ebd7120151 refs #146 bump clang-format version to 12 2020-10-20 13:41:00 +03:00
DrZlo13
0d25b09ad8 Merge branch 'master' into fix-asserts 2020-10-20 19:24:58 +10:00
DrZlo13
430815d561 now asserts dont break anything in release mode 2020-10-20 19:23:53 +10:00
aanper
09d3a42c14 Merge remote-tracking branch 'origin/master' into clang-format-update 2020-10-20 09:50:03 +03:00
aanper
13608cee9e ignore pyc 2020-10-20 09:49:28 +03:00
coreglitch
c4e3f28a8d
Merge pull request #186 from Flipper-Zero/fix-build-flag
fix build flag
2020-10-20 11:59:42 +06:00
aanper
3da3022dff fix build flag 2020-10-20 08:45:38 +03:00
rusdacent
2b513d381b refs #146 fix path for clang-format in syntax-check 2020-10-20 08:38:53 +03:00