From bea42e45952df85d61428662caefbb100465a585 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 6 May 2018 21:13:02 -0700 Subject: altos/chaoskey-v1.0: Add endpoint for reading flash contents This creates another IN endpoint which provides the contents of flash for validation of the firmware load on the host. Signed-off-by: Keith Packard --- src/kernel/ao_flash_readout.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/kernel/ao_flash_readout.h (limited to 'src/kernel/ao_flash_readout.h') diff --git a/src/kernel/ao_flash_readout.h b/src/kernel/ao_flash_readout.h new file mode 100644 index 00000000..5eee53cc --- /dev/null +++ b/src/kernel/ao_flash_readout.h @@ -0,0 +1,20 @@ +/* + * Copyright © 2018 Keith Packard + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + */ + +#ifndef _AO_FLASH_READOUT_H_ +#define _AO_FLASH_READOUT_H_ + +void ao_flash_readout_init(void); + +#endif /* _AO_FLASH_READOUT_H_ */ -- cgit v1.2.3