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 | |
b.liu | 0c2d03b | 2025-02-26 16:53:44 +0800 | [diff] [blame^] | 19 | /* 该变量只在uboot和kernel中加载 分区custom_logo时会使用 */ |
| 20 | /* 与 mbtk_source 无关 */ |
b.liu | 90f385f | 2025-02-20 19:57:52 +0800 | [diff] [blame] | 21 | #define LOGO_PARTITION_ADDR 0x0A3A0000 // custom_logo 分区的地址 |
b.liu | 0c2d03b | 2025-02-26 16:53:44 +0800 | [diff] [blame^] | 22 | #define LOGO_PARTITION_NAME "custom_logo" |
b.liu | 90f385f | 2025-02-20 19:57:52 +0800 | [diff] [blame] | 23 | |
b.liu | 0c2d03b | 2025-02-26 16:53:44 +0800 | [diff] [blame^] | 24 | #define LOGO_SIZE_MAX 0x00080000 // 512K |
| 25 | #define LOGO_ADDR_START 0x00001000 // 4K (必须为页大小倍数) |
| 26 | #define ANIMATION_ADDR_START (LOGO_ADDR_START + LOGO_SIZE_MAX) // log 不超过 512K |
b.liu | 90f385f | 2025-02-20 19:57:52 +0800 | [diff] [blame] | 27 | |
| 28 | typedef struct { |
| 29 | uint32 addr; |
| 30 | uint32 pic_width; |
| 31 | uint32 pic_height; |
| 32 | uint32 bg_rgb; // 背景色 |
| 33 | } mbtk_logo_header_t; |
| 34 | |
| 35 | typedef struct { |
| 36 | uint32 addr; |
| 37 | uint32 pic_num; |
| 38 | uint32 pic_width; |
| 39 | uint32 pic_height; |
b.liu | 0c2d03b | 2025-02-26 16:53:44 +0800 | [diff] [blame^] | 40 | uint32 waitting_time; // 每帧图片之间的等待时间(ms) |
| 41 | uint32 frame_show_num; // 总共显示的帧数 |
b.liu | 90f385f | 2025-02-20 19:57:52 +0800 | [diff] [blame] | 42 | uint32 bg_rgb; // 背景色 |
| 43 | } mbtk_animation_header_t; |
| 44 | |
| 45 | #endif /* _LOGO_PARTITION_H */ |
b.liu | 0c2d03b | 2025-02-26 16:53:44 +0800 | [diff] [blame^] | 46 | |