[FL-1254] ViewDispatcher improvements, SubGhz cli and certification preparation (#482)
* Add more more frequencees and change ok key bahavior to toggle * GUI: add queue support to ViewDispatcher * SubGhz: basic cli * SubGHz: pt send cli * SubGhz: carrier cli commands. * Fix irda test data merge artifacts
This commit is contained in:
@@ -11,37 +11,14 @@
|
||||
#include <gui/view_dispatcher.h>
|
||||
#include <gui/modules/submenu.h>
|
||||
|
||||
static const uint32_t subghz_frequencies[] = {
|
||||
301000000,
|
||||
315000000,
|
||||
346000000,
|
||||
385000000,
|
||||
433920000,
|
||||
438900000,
|
||||
463000000,
|
||||
781000000,
|
||||
868000000,
|
||||
868350000,
|
||||
915000000,
|
||||
925000000,
|
||||
};
|
||||
typedef struct {
|
||||
uint32_t frequency;
|
||||
uint8_t path;
|
||||
} SubGhzFrequency;
|
||||
|
||||
static const ApiHalSubGhzPath subghz_frequencies_paths[] = {
|
||||
ApiHalSubGhzPath2, /* 301000000 */
|
||||
ApiHalSubGhzPath2, /* 315000000 */
|
||||
ApiHalSubGhzPath2, /* 346000000 */
|
||||
ApiHalSubGhzPath2, /* 385000000 */
|
||||
ApiHalSubGhzPath1, /* 433920000 */
|
||||
ApiHalSubGhzPath1, /* 438900000 */
|
||||
ApiHalSubGhzPath1, /* 463000000 */
|
||||
ApiHalSubGhzPath3, /* 781000000 */
|
||||
ApiHalSubGhzPath3, /* 868000000 */
|
||||
ApiHalSubGhzPath3, /* 868350000 */
|
||||
ApiHalSubGhzPath3, /* 915000000 */
|
||||
ApiHalSubGhzPath3, /* 925000000 */
|
||||
};
|
||||
|
||||
static const uint32_t subghz_frequencies_count = sizeof(subghz_frequencies) / sizeof(uint32_t);
|
||||
extern const SubGhzFrequency subghz_frequencies[];
|
||||
extern const uint32_t subghz_frequencies_count;
|
||||
extern const uint32_t subghz_frequencies_433_92;
|
||||
|
||||
struct SubGhz {
|
||||
Gui* gui;
|
||||
|
Reference in New Issue
Block a user