summaryrefslogtreecommitdiff
path: root/apps/plugins/iriver_flash.c
diff options
context:
space:
mode:
authorJames Buren <braewoods+rb@braewoods.net>2020-10-25 23:48:26 +0000
committerSolomon Peachy <pizza@shaftnet.org>2020-10-26 01:07:14 +0000
commit129001909d36161b4850142f29eeafc295b92a3e (patch)
treeac324ab92eab17f65c291fede8fb2f9e65562784 /apps/plugins/iriver_flash.c
parentf7e0ce8fb96d9e8d8428925abac7d9a6ceb3d83a (diff)
downloadrockbox-129001909d36161b4850142f29eeafc295b92a3e.tar.gz
rockbox-129001909d36161b4850142f29eeafc295b92a3e.zip
h300: enable support for iriver_flash
This also modifies the configuration file to include macros defined in the H100 / H120 implementation. Change-Id: Iae845889c98661ec548c04fc57e733dcc346c0f1
Diffstat (limited to 'apps/plugins/iriver_flash.c')
-rw-r--r--apps/plugins/iriver_flash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/iriver_flash.c b/apps/plugins/iriver_flash.c
index cecd4990a9..2ef6872c7d 100644
--- a/apps/plugins/iriver_flash.c
+++ b/apps/plugins/iriver_flash.c
@@ -27,7 +27,7 @@
27unsigned char *audiobuf; 27unsigned char *audiobuf;
28ssize_t audiobuf_size; 28ssize_t audiobuf_size;
29 29
30#ifndef IRIVER_H100_SERIES 30#if !defined(IRIVER_H100_SERIES) && !defined(IRIVER_H300_SERIES)
31#error this platform is not (yet) flashable 31#error this platform is not (yet) flashable
32#endif 32#endif
33 33
@@ -48,7 +48,7 @@ struct flash_info
48 char name[32]; 48 char name[32];
49}; 49};
50 50
51#ifdef IRIVER_H100_SERIES 51#if defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES)
52#define SEC_SIZE 4096 52#define SEC_SIZE 4096
53#define BOOTLOADER_ERASEGUARD (BOOTLOADER_ENTRYPOINT / SEC_SIZE) 53#define BOOTLOADER_ERASEGUARD (BOOTLOADER_ENTRYPOINT / SEC_SIZE)
54enum sections { 54enum sections {