Permalink
Browse files

CLI: allow loading of embedded FPGA config (named "ROM")

1 parent 6e26236 commit d15049cec0b0e8c17e4c54e0cefd1e49d7251782 @mrehkopf committed Nov 30, 2016
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/cli.c
View
@@ -445,7 +445,12 @@ void cmd_test(void) {
}
void cmd_fpgaconf(void) {
- fpga_pgm((uint8_t*)curchar);
+ if(!strncmp(curchar, "ROM", 3)) {
+ fpga_rompgm();
+ set_rom_mask(0x3fffff);
+ } else {
+ fpga_pgm((uint8_t*)curchar);
+ }
}
void cmd_dspfeat(void) {

0 comments on commit d15049c

Please sign in to comment.