diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2017-09-27 19:07:14 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2017-09-27 19:07:14 +0900 |
commit | bc39f0e58268e7f88e1c376c1a1fef17376ca44f (patch) | |
tree | b8ea94a6de51b1e3989e49c520962e3782a150de /mcu/sys-gnu-linux.h | |
parent | e671a539b08b98dc74505ac22789fdb4474689d2 (diff) |
update flash routines for GNU/Linux.
Diffstat (limited to 'mcu/sys-gnu-linux.h')
-rw-r--r-- | mcu/sys-gnu-linux.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mcu/sys-gnu-linux.h b/mcu/sys-gnu-linux.h index 3c81513..6fbc081 100644 --- a/mcu/sys-gnu-linux.h +++ b/mcu/sys-gnu-linux.h @@ -10,7 +10,10 @@ extern const uint8_t sys_board_name[]; static inline const uint8_t * unique_device_id (void) { - /* STM32F103 has 96-bit unique device identifier */ + /* + * STM32F103 has 96-bit unique device identifier. + * This routine mimics that. + */ static const uint8_t id[] = { /* My RSA fingerprint */ 0x12, 0x41, 0x24, 0xBD, 0x3B, 0x48, 0x62, 0xAF, @@ -22,6 +25,8 @@ unique_device_id (void) } void set_led (int on); + +uintptr_t flash_init (const char *f_name); void flash_unlock (void); int flash_program_halfword (uintptr_t addr, uint16_t data); int flash_erase_page (uintptr_t addr); |