forked from auracaster/openocd
contrib/loaders/flash/hpmicro: add hpmicro device xpi support
- add xpi flash support for hpmicro devices Change-Id: I3531fdf20a34561c6f3fe6ac0b9af988d483aae7 Signed-off-by: Ryan QIAN <jianghao.qian@hpmicro.com> Reviewed-on: https://review.openocd.org/c/openocd/+/8695 Tested-by: jenkins Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
This commit is contained in:
17
contrib/loaders/flash/hpmicro/hpm_xpi_flash.h
Normal file
17
contrib/loaders/flash/hpmicro/hpm_xpi_flash.h
Normal file
@@ -0,0 +1,17 @@
|
||||
/* SPDX-License-Identifier: BSD-3-Clause */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2021 hpmicro
|
||||
*/
|
||||
|
||||
#ifndef HPM_XPI_FLASH_H
|
||||
#define HPM_XPI_FLASH_H
|
||||
|
||||
#define FLASH_INIT (0)
|
||||
#define FLASH_ERASE (0x6)
|
||||
#define FLASH_PROGRAM (0xc)
|
||||
#define FLASH_READ (0x12)
|
||||
#define FLASH_GET_INFO (0x18)
|
||||
#define FLASH_ERASE_CHIP (0x1e)
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user