mirror of
https://gitee.com/Vancouver2017/luban-lite-t3e-pro.git
synced 2025-12-16 19:38:56 +00:00
V1.0.5
This commit is contained in:
@@ -62,7 +62,7 @@ void aic_memheap_init(void)
|
||||
rt_ubase_t end_align;
|
||||
int i = 0;
|
||||
|
||||
for (i=0; i<sizeof(aic_memheaps)/sizeof(struct aic_memheap); i++){
|
||||
for (i=0; i<sizeof(aic_memheaps)/sizeof(struct aic_memheap); i++) {
|
||||
begin_align = RT_ALIGN((rt_ubase_t)aic_memheaps[i].begin_addr, RT_ALIGN_SIZE);
|
||||
end_align = RT_ALIGN_DOWN((rt_ubase_t)aic_memheaps[i].end_addr, RT_ALIGN_SIZE);
|
||||
RT_ASSERT(end_align > begin_align);
|
||||
@@ -78,7 +78,7 @@ void *aic_memheap_malloc(int type, size_t size)
|
||||
void *ptr;
|
||||
int i = 0;
|
||||
|
||||
for (i=0; i<sizeof(aic_memheaps)/sizeof(struct aic_memheap); i++){
|
||||
for (i=0; i<sizeof(aic_memheaps)/sizeof(struct aic_memheap); i++) {
|
||||
if (aic_memheaps[i].type == type)
|
||||
break;
|
||||
}
|
||||
@@ -102,7 +102,7 @@ void aic_memheap_free(int type, void *rmem)
|
||||
if (rmem == RT_NULL)
|
||||
return;
|
||||
|
||||
for (i=0; i<sizeof(aic_memheaps)/sizeof(struct aic_memheap); i++){
|
||||
for (i=0; i<sizeof(aic_memheaps)/sizeof(struct aic_memheap); i++) {
|
||||
if (aic_memheaps[i].type == type)
|
||||
break;
|
||||
}
|
||||
@@ -180,9 +180,11 @@ const struct dfs_mount_tbl mount_table[] = {
|
||||
#ifdef LPKG_RAMDISK_TYPE_INITDATA
|
||||
{"ramdisk0", "/ram", "elm", 0, 0, 0},
|
||||
#endif
|
||||
#ifndef AIC_AB_SYSTEM_INTERFACE
|
||||
#if (defined(AIC_USING_FS_IMAGE_TYPE_FATFS_FOR_0) || defined(AIC_USING_FS_IMAGE_TYPE_FATFS_FOR_1))
|
||||
{"blk_rodata", "/rodata", "elm", 0, 0, 0},
|
||||
#endif
|
||||
#endif
|
||||
#ifdef LPKG_USING_LITTLEFS
|
||||
{"data", "/data", "lfs", 0, 0, 0},
|
||||
#endif
|
||||
|
||||
Binary file not shown.
6
target/d13x/demo88-nor/pack/env.txt
Normal file
6
target/d13x/demo88-nor/pack/env.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
osAB_next=A
|
||||
osAB_now=A
|
||||
upgrade_available=0
|
||||
bootlimit=5
|
||||
bootcount=0
|
||||
|
||||
@@ -3,8 +3,12 @@
|
||||
"size": "16m", // Size of SPI NOR
|
||||
"partitions": {
|
||||
"spl": { "size": "256k" },
|
||||
"os": { "size": "2m" },
|
||||
"rodata": { "size": "6m" },
|
||||
"env": { "size": "128k" },
|
||||
"env_r": { "size": "128k" },
|
||||
"os": { "size": "1m" },
|
||||
"os_r": { "size": "1m" },
|
||||
"rodata": { "size": "3m" },
|
||||
"rodata_r": { "size": "3m" },
|
||||
"data": { "size": "7m" }
|
||||
},
|
||||
},
|
||||
@@ -31,6 +35,11 @@
|
||||
"attr": ["mtd", "required"],
|
||||
"part": ["spl"]
|
||||
},
|
||||
"env": {
|
||||
"file": "env.bin",
|
||||
"attr": ["mtd", "optional"],
|
||||
"part": ["env","env_r"]
|
||||
},
|
||||
"os": {
|
||||
"file": "d13x_os.itb",
|
||||
"attr": ["mtd", "required"],
|
||||
@@ -68,5 +77,12 @@
|
||||
"its": "d13x_os.its"
|
||||
},
|
||||
},
|
||||
"uboot_env": {
|
||||
"env.bin": {
|
||||
"file": "env.txt",
|
||||
"size": "4096",
|
||||
"redundant": "enable",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
2
target/d13x/demo88-nor/pack/ota-subimgs.cfg
Normal file
2
target/d13x/demo88-nor/pack/ota-subimgs.cfg
Normal file
@@ -0,0 +1,2 @@
|
||||
d13x_os.itb
|
||||
rodata.fatfs
|
||||
@@ -23,7 +23,7 @@ struct aic_pinmux aic_pinmux_config[] = {
|
||||
/* uart0 */
|
||||
{5, PIN_PULL_DIS, 3, "PA.0"},
|
||||
{5, PIN_PULL_DIS, 3, "PA.1"},
|
||||
#ifdef AIC_DEV_UART0_MODE_RS485
|
||||
#ifdef AIC_DEV_UART0_MODE_RS485_SIMULATION
|
||||
{1, PIN_PULL_DIS, 3, AIC_UART0_RTS_NAME},
|
||||
#endif
|
||||
#ifdef AIC_DEV_UART0_MODE_RS232_UNAUTO_FLOW_CTRL
|
||||
@@ -47,7 +47,7 @@ struct aic_pinmux aic_pinmux_config[] = {
|
||||
/* uart1 */
|
||||
{5, PIN_PULL_DIS, 3, "PD.2"},
|
||||
{5, PIN_PULL_DIS, 3, "PD.3"},
|
||||
#ifdef AIC_DEV_UART1_MODE_RS485
|
||||
#ifdef AIC_DEV_UART1_MODE_RS485_SIMULATION
|
||||
{1, PIN_PULL_DIS, 3, AIC_UART1_RTS_NAME},
|
||||
#endif
|
||||
#ifdef AIC_DEV_UART1_MODE_RS232_UNAUTO_FLOW_CTRL
|
||||
@@ -72,7 +72,7 @@ struct aic_pinmux aic_pinmux_config[] = {
|
||||
/* uart2 */
|
||||
{5, PIN_PULL_DIS, 3, "PD.4"}, // BT_UART2_TX
|
||||
{5, PIN_PULL_DIS, 3, "PD.5"}, // BT_UART2_RX
|
||||
#ifdef AIC_DEV_UART2_MODE_RS485
|
||||
#ifdef AIC_DEV_UART2_MODE_RS485_SIMULATION
|
||||
{1, PIN_PULL_DIS, 3, AIC_UART2_RTS_NAME},
|
||||
#elif defined AIC_DEV_UART2_MODE_RS232_UNAUTO_FLOW_CTRL
|
||||
#ifdef AIC_UART2_RTS_ENABLE
|
||||
@@ -283,12 +283,6 @@ struct aic_pinmux aic_pinmux_config[] = {
|
||||
{2, PIN_PULL_DIS, 3, "PO.1"}, // USB-DP
|
||||
{1, PIN_PULL_DIS, 3, "PD.8"}, // USB-ID
|
||||
#endif
|
||||
#ifdef AIC_USING_RTP
|
||||
{2, PIN_PULL_DIS, 3, "PA.8"},
|
||||
{2, PIN_PULL_DIS, 3, "PA.9"},
|
||||
{2, PIN_PULL_DIS, 3, "PA.10"},
|
||||
{2, PIN_PULL_DIS, 3, "PA.11"},
|
||||
#endif
|
||||
#ifdef AIC_USING_PSADC0
|
||||
{7, PIN_PULL_DIS, 3, "PA.0"},
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user