Files
luban-lite/bsp/artinchip/drv/spinand/spinand_parts.h
刘可亮 564e22b32f v0.7.5
2023-08-28 09:48:01 +08:00

21 lines
438 B
C

/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef __SPI_NAND_PARTS_H__
#define __SPI_NAND_PARTS_H__
#define MAX_MTD_NAME 32
struct mtd_partition {
char name[MAX_MTD_NAME];
uint32_t start;
uint32_t size;
struct mtd_partition *next;
};
struct mtd_partition *mtd_parts_parse(char *parts);
void mtd_parts_free(struct mtd_partition *head);
#endif /* __SPI_NAND_PARTS_H__ */