b.liu | 90f385f | 2025-02-20 19:57:52 +0800 | [diff] [blame^] | 1 | /* |
| 2 | * logo_partition.h |
| 3 | * |
| 4 | * Logo partition header. |
| 5 | * |
| 6 | * Author : lb |
| 7 | * Date : 2025/2/20 14:45:19 |
| 8 | */ |
| 9 | #ifndef _LOGO_PARTITION_H |
| 10 | #define _LOGO_PARTITION_H |
| 11 | |
| 12 | typedef unsigned int uint32; /* Unsigned 32 bit value */ |
| 13 | typedef unsigned short uint16; /* Unsigned 16 bit value */ |
| 14 | typedef unsigned char uint8; /* Unsigned 8 bit value */ |
| 15 | typedef signed int int32; /* Signed 32 bit value */ |
| 16 | typedef signed short int16; /* Signed 16 bit value */ |
| 17 | typedef signed char int8; /* Signed 8 bit value */ |
| 18 | |
| 19 | #define LOGO_PARTITION_ADDR 0x0A3A0000 // custom_logo 分区的地址 |
| 20 | |
| 21 | #define LOGO_ADDR_START 0x00000400 // 1K |
| 22 | #define ANIMATION_ADDR_START 0x00080400 // log 不超过 512K |
| 23 | |
| 24 | typedef struct { |
| 25 | uint32 addr; |
| 26 | uint32 pic_width; |
| 27 | uint32 pic_height; |
| 28 | uint32 bg_rgb; // 背景色 |
| 29 | } mbtk_logo_header_t; |
| 30 | |
| 31 | typedef struct { |
| 32 | uint32 addr; |
| 33 | uint32 pic_num; |
| 34 | uint32 pic_width; |
| 35 | uint32 pic_height; |
| 36 | uint32 frame_rate; |
| 37 | uint32 bg_rgb; // 背景色 |
| 38 | } mbtk_animation_header_t; |
| 39 | |
| 40 | #endif /* _LOGO_PARTITION_H */ |