Skip to content

Commit

Permalink
Merge pull request #85 from therealdreg/legacy2third
Browse files Browse the repository at this point in the history
Add legacy mode for third parties flashrom avrdude
  • Loading branch information
DangerousPrototypes authored Sep 10, 2024
2 parents 2c25f65 + fa5a688 commit 5bbaed7
Show file tree
Hide file tree
Showing 5 changed files with 862 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ set(bp5_common
mode/binloopback.c mode/binloopback.h
binmode/logicanalyzer.h binmode/logicanalyzer.c binmode/sump.c binmode/sump.h
binmode/dirtyproto.c binmode/dirtyproto.h
binmode/legacy4third.c binmode/legacy4third.h
lib/arduino-ch32v003-swio/arduino_ch32v003.c lib/arduino-ch32v003-swio/arduino_ch32v003.h
lib/arduino-ch32v003-swio/swio.h lib/arduino-ch32v003-swio/swio.c
lib/picorvd/picoswio.c lib/picorvd/picoswio.h lib/picorvd/debug_defines.h
Expand Down
8 changes: 8 additions & 0 deletions binmode/binmodes.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include "system_config.h"
#include "binmode/sump.h"
#include "binmode/dirtyproto.h"
#include "binmode/legacy4third.h"
#include "binmode/falaio.h"
#include "lib/arduino-ch32v003-swio/arduino_ch32v003.h"

Expand Down Expand Up @@ -43,6 +44,13 @@ const binmode_t binmodes[] = {
.binmode_service = falaio_service,
.binmode_cleanup = falaio_cleanup,
},
{
.lock_terminal = true,
.binmode_name = legacy4third_mode_name,
.binmode_setup = binmode_null_func_void,
.binmode_service = legacy4third_mode,
.binmode_cleanup = binmode_null_func_void,
},
};

inline void binmode_setup(void){
Expand Down
1 change: 1 addition & 0 deletions binmode/binmodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ enum {
BINMODE_USE_SUMPLA=0,
BINMODE_USE_DIRTYPROTO,
BINMODE_USE_ARDUINO_CH32V003_SWIO,
BINMODE_USE_LEGACY4THIRD,
BINMODE_USE_FALA,
BINMODE_MAXPROTO
};
Expand Down
Loading

0 comments on commit 5bbaed7

Please sign in to comment.