Commit Graph

102 Commits

Author SHA1 Message Date
DrZlo13
49fdb28871
sd detect pin feature (#222)
* test sd detect pin
* sd detect support for f2 board
2020-11-11 09:17:53 +03:00
coreglitch
1fbfc5a61a
Blink strobe (#213)
* blink all led and control freq by button
* rename to strobe
2020-11-07 12:24:40 +03:00
DrZlo13
f4d4604a03
rgb blink (#223) 2020-11-07 11:42:00 +03:00
coreglitch
bce6f867f1
show target version, date, commit hash and branch (#221) 2020-11-06 12:31:06 +03:00
coreglitch
eb2679b982
Refactor F2/local before F3 merge (#220)
* add files from f3
* rollback lfs
* Move assets from LFS
* remove lfs from build

Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2020-11-06 11:31:59 +03:00
DrZlo13
979af6c165
Core code cleanup (#206)
* add delay function
* todo about delay_isr
* remove arduino defines and fix all apps to use core-api/hal-api
* delay for local target
* remove warnings of task_equal
* fix BSP_SD_Init
* fix USBD_static
* grio read constant pointer to gpio
* add TODO about ISR context
* const void* arg for pubsub api
* mark unused functions
* app pointers now pointed to constant apps
* fix printf format
* fix "unused" warnings in local target
* fix const pin read in local target
* fix int to pointer warnings in local target
* power read mutex error fix
* delete old makefile
* add -werror

Co-authored-by: Aleksandr Kutuzov <aku@plooks.com>
Co-authored-by: aanper <mail@s3f.ru>
2020-10-29 10:58:19 +03:00
あく
0af239ebc0
GUI: status bar rendering. Power: battery indicator. (#207)
* Menu: animation. Irukagotchi: idle image.
* Power: battery, usb activity widget
* Power: tune battery max voltage and clamp overshoot
* get initial charge state

Co-authored-by: Aleksandr Kutuzov <aku@plooks.com>
Co-authored-by: aanper <mail@s3f.ru>
2020-10-29 10:11:16 +03:00
DrZlo13
8aeafd8179
furi_check - a new way to asserting (#204)
* hal-related task_is_isr_context function
* furi_check implementation
* change application to use furi_check
* add second level of assertion
* add TODO about ISR context
* Applications: refactor furi_check and furi_assert.
* Apploader: propwer widget usage. Menu: check on furi resource request.
* refactor furi_check

Co-authored-by: Aleksandr Kutuzov <aku@plooks.com>
Co-authored-by: coreglitch <mail@s3f.ru>
2020-10-29 09:27:17 +03:00
coreglitch
de968b13b4
Implement LF RFID emulation (#208)
* migrate code from old repo, not work
* fix emulation
* disable irq handling while RFID emulating
* add testcase
2020-10-28 11:38:04 +03:00
あく
665f6d7d9c
Assets, Icons, UI toolkit. Part 1. (#202)
* Assets: import from gdrive
* Assets: fully working build pipeline and registry
* NFC: menu icon
* Gui: layers. Irukagotchi: base app to handle input on idle screen. Makefile: reboot after flash in dfu mode.
* ValueMutex: with lambda
* Assets: proper animation frames sorting
* ValueMutex: proper furi_open usage
* Assets,GUI: split icon into icon data and icon state.
* Format source code
* Docker: add python3 and imagemagic
* Irukagotchi: cleanup
* GUI: event lock moved to gui.
* Rfid: proper gui layer
* GUI: elements. Menu: frame and scroll
* GUI, Menu: format code.
* Menu: dual font main menu
* Menu: format sources
* GUI: 0 total scrollbar
* CI: enable lfs
* Menu: pixel perfect main menu

Co-authored-by: Aleksandr Kutuzov <aku@plooks.com>
Co-authored-by: aanper <mail@s3f.ru>
2020-10-26 20:00:17 +03:00
coreglitch
e699c4a31e
Lf rfid (#196)
* add lf rfid workaround
* add pwmn
* carrier generator
* proper exit for lf rfid

Co-authored-by: DrZlo13 <who.just.the.doctor@gmail.com>
2020-10-26 12:56:46 +03:00
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
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
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
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
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
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
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
DrZlo13
430815d561 now asserts dont break anything in release mode 2020-10-20 19:23:53 +10:00
aanper
3da3022dff fix build flag 2020-10-20 08:45:38 +03:00
aanper
dc39be505b not build cc1101 in local build, app_release default in CI build 2020-10-19 09:56:12 +03:00
aanper
5bd5136972 syntax check 2020-10-19 09:23:49 +03:00
aanper
6a647f0fa3 fix tx mode (disable manual calibration) 2020-10-19 09:22:56 +03:00
aanper
3b993578f4 release/cc1101 debug build 2020-10-19 09:22:38 +03:00
aanper
e217029fcc tx not work properly 2020-10-18 10:47:38 +03:00
aanper
6b5797bbf4 rx example 2020-10-18 07:47:49 +03:00
aanper
737ee2b0bf gui, navigate over freqs 2020-10-18 07:10:15 +03:00