summaryrefslogtreecommitdiffstats
path: root/jlink_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'jlink_spi.c')
-rw-r--r--jlink_spi.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/jlink_spi.c b/jlink_spi.c
index 0b862cf16..8b8533cab 100644
--- a/jlink_spi.c
+++ b/jlink_spi.c
@@ -181,7 +181,7 @@ static int jlink_spi_shutdown(void *data)
return 0;
}
-int jlink_spi_init(void)
+static int jlink_spi_init(void)
{
char *arg;
unsigned long speed = 0;
@@ -486,3 +486,13 @@ init_err:
return 1;
}
+
+const struct programmer_entry programmer_jlink_spi = {
+ .name = "jlink_spi",
+ .type = OTHER,
+ .init = jlink_spi_init,
+ .devs.note = "SEGGER J-Link and compatible devices\n",
+ .map_flash_region = fallback_map,
+ .unmap_flash_region = fallback_unmap,
+ .delay = internal_delay,
+};