diff --git a/anyio.c b/anyio.c index 6fbd956..cf1979e 100644 --- a/anyio.c +++ b/anyio.c @@ -125,6 +125,7 @@ int anyio_find_dev(board_access_t *access) { if (supported_board == NULL) { printf("ERROR: Unsupported device %s\n", access->device_name); + anyio_print_supported_board_names(); return -1; } @@ -446,3 +447,13 @@ void anyio_bitfile_print_info(char *bitfile_name, int verbose_flag) { print_bitfile_header(fp, (char*) &part_name, verbose_flag); fclose(fp); } + +void anyio_print_supported_board_names() { + printf("Supported card names are:\n"); + for (size_t i=0; supported_boards[i].name != NULL; i++) { + printf("%10s,",supported_boards[i].name); + if ((((i+1) % 6) == 0) & (i != 0)) { printf("\n"); }; + } + printf("\n"); +} + diff --git a/anyio.h b/anyio.h index c1abd23..2df16f7 100644 --- a/anyio.h +++ b/anyio.h @@ -43,5 +43,6 @@ void anyio_dev_print_pin_descriptors(board_t *board); void anyio_dev_print_localio_descriptors(board_t *board); void anyio_dev_print_sserial_info(board_t *board); void anyio_bitfile_print_info(char *bitfile_name, int verbose_flag); +void anyio_print_supported_board_names(); #endif diff --git a/hostmot2.c b/hostmot2.c index 41bfaee..777163d 100644 --- a/hostmot2.c +++ b/hostmot2.c @@ -865,3 +865,4 @@ void hm2_print_bob_hint_names() { } printf("\n"); } + diff --git a/mesaflash.c b/mesaflash.c index 312240b..3ea9070 100644 --- a/mesaflash.c +++ b/mesaflash.c @@ -32,7 +32,7 @@ #endif #ifndef VERSION -#define VERSION "3.5.3" +#define VERSION "3.5.4" #endif static int device_flag;