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>
31 lines
1.0 KiB
C
31 lines
1.0 KiB
C
#include "../avr_isp_app_i.h"
|
|
|
|
// Generate scene on_enter handlers array
|
|
#define ADD_SCENE(prefix, name, id) prefix##_scene_##name##_on_enter,
|
|
void (*const avr_isp_scene_on_enter_handlers[])(void*) = {
|
|
#include "avr_isp_scene_config.h"
|
|
};
|
|
#undef ADD_SCENE
|
|
|
|
// Generate scene on_event handlers array
|
|
#define ADD_SCENE(prefix, name, id) prefix##_scene_##name##_on_event,
|
|
bool (*const avr_isp_scene_on_event_handlers[])(void* context, SceneManagerEvent event) = {
|
|
#include "avr_isp_scene_config.h"
|
|
};
|
|
#undef ADD_SCENE
|
|
|
|
// Generate scene on_exit handlers array
|
|
#define ADD_SCENE(prefix, name, id) prefix##_scene_##name##_on_exit,
|
|
void (*const avr_isp_scene_on_exit_handlers[])(void* context) = {
|
|
#include "avr_isp_scene_config.h"
|
|
};
|
|
#undef ADD_SCENE
|
|
|
|
// Initialize scene handlers configuration structure
|
|
const SceneManagerHandlers avr_isp_scene_handlers = {
|
|
.on_enter_handlers = avr_isp_scene_on_enter_handlers,
|
|
.on_event_handlers = avr_isp_scene_on_event_handlers,
|
|
.on_exit_handlers = avr_isp_scene_on_exit_handlers,
|
|
.scene_num = AvrIspSceneNum,
|
|
};
|