blob: 6a4b8d36ee4c08c4df2a1275512cb281f7d4faee [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
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
24typedef struct {
25 uint32 addr;
26 uint32 pic_width;
27 uint32 pic_height;
28 uint32 bg_rgb; // 背景色
29} mbtk_logo_header_t;
30
31typedef 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 */