d1ad924216
* [AVR_ISP]: add AVR ISP Programmer FAP * [AVR_ISP]: add auto detect AVR chip * [AVR_ISP]: fix auto detect chip * [AVR_ISP]: fix fast write flash * AVR_ISP: auto set SPI speed * AVR_ISP: add clock 4Mhz on &gpio_ext_pa4 * AVR_ISP: fix "[CRASH][ISR 4] NULL pointer dereference" with no AVR chip connected * AVR_ISP: add AVR ISP Reader * AVR_ISP: add read and check I32HEX file * AVR_ISP: add write eerom, flash, fuse, lock byte * AVR_ISP: add gui Reader, Writer * Github: unshallow on decontamination * AVR_ISP: move to external * API: fix api_symbols * AVR_ISP: add wiring scene * GUI: model mutex FuriMutexTypeNormal -> FuriMutexTypeRecursive * AVR_ISP: add chip_detect view * AVR_ISP: refactoring gui ISP Programmer * AVR_ISP: add gui "Dump AVR" * AVR_ISP: add gui "Flash AVR" * AVR_ISP: fix navigation gui * GUI: model mutex FuriMutexTypeRecursive -> FuriMutexTypeNormal * AVR_ISP: fix conflicts * AVR_ISP: fix build * AVR_ISP: delete images * AVR_ISP: add images * AVR_ISP: fix gui * AVR_ISP: fix stuck in navigation * AVR_ISP: changing the Fuse bit recording logic * AVR_ISP: fix read/write chips with memory greater than 64Kb * AVR_ISP: fix auto set speed SPI * AVR_ISP: fix gui * ISP: switching on +5 volts to an external GPIO Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
30 lines
888 B
C
30 lines
888 B
C
#pragma once
|
|
|
|
#include <gui/scene_manager.h>
|
|
|
|
// Generate scene id and total number
|
|
#define ADD_SCENE(prefix, name, id) AvrIspScene##id,
|
|
typedef enum {
|
|
#include "avr_isp_scene_config.h"
|
|
AvrIspSceneNum,
|
|
} AvrIspScene;
|
|
#undef ADD_SCENE
|
|
|
|
extern const SceneManagerHandlers avr_isp_scene_handlers;
|
|
|
|
// Generate scene on_enter handlers declaration
|
|
#define ADD_SCENE(prefix, name, id) void prefix##_scene_##name##_on_enter(void*);
|
|
#include "avr_isp_scene_config.h"
|
|
#undef ADD_SCENE
|
|
|
|
// Generate scene on_event handlers declaration
|
|
#define ADD_SCENE(prefix, name, id) \
|
|
bool prefix##_scene_##name##_on_event(void* context, SceneManagerEvent event);
|
|
#include "avr_isp_scene_config.h"
|
|
#undef ADD_SCENE
|
|
|
|
// Generate scene on_exit handlers declaration
|
|
#define ADD_SCENE(prefix, name, id) void prefix##_scene_##name##_on_exit(void* context);
|
|
#include "avr_isp_scene_config.h"
|
|
#undef ADD_SCENE
|