blob: a08401861bb4fe0bea3b97caf96e09b6e6fd27f6 [file] [log] [blame]
b.liu90f385f2025-02-20 19:57:52 +08001/*
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
12typedef unsigned int uint32; /* Unsigned 32 bit value */
13typedef unsigned short uint16; /* Unsigned 16 bit value */
14typedef unsigned char uint8; /* Unsigned 8 bit value */
15typedef signed int int32; /* Signed 32 bit value */
16typedef signed short int16; /* Signed 16 bit value */
17typedef signed char int8; /* Signed 8 bit value */
18
b.liu0c2d03b2025-02-26 16:53:44 +080019/* 该变量只在uboot和kernel中加载 分区custom_logo时会使用 */
20/* 与 mbtk_source 无关 */
b.liu90f385f2025-02-20 19:57:52 +080021#define LOGO_PARTITION_ADDR 0x0A3A0000 // custom_logo 分区的地址
b.liu0c2d03b2025-02-26 16:53:44 +080022#define LOGO_PARTITION_NAME "custom_logo"
b.liu90f385f2025-02-20 19:57:52 +080023
b.liu0c2d03b2025-02-26 16:53:44 +080024#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.liu90f385f2025-02-20 19:57:52 +080027
28typedef struct {
29 uint32 addr;
30 uint32 pic_width;
31 uint32 pic_height;
32 uint32 bg_rgb; // 背景色
33} mbtk_logo_header_t;
34
35typedef struct {
36 uint32 addr;
37 uint32 pic_num;
38 uint32 pic_width;
39 uint32 pic_height;
b.liu0c2d03b2025-02-26 16:53:44 +080040 uint32 waitting_time; // 每帧图片之间的等待时间(ms)
41 uint32 frame_show_num; // 总共显示的帧数
b.liu90f385f2025-02-20 19:57:52 +080042 uint32 bg_rgb; // 背景色
43} mbtk_animation_header_t;
44
45#endif /* _LOGO_PARTITION_H */
b.liu0c2d03b2025-02-26 16:53:44 +080046