Commit Graph

14 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
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
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
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
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
aanper
568143537d build ok, issue with display 2020-10-18 05:52:11 +03:00
aanper
7c03ce179c add cc1101 to build/menu 2020-10-18 05:43:09 +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
aanper
f696673700 add workaround app 2020-10-13 13:39:59 +03:00