Description: refactor

Reviewed-by: likailong
This commit is contained in:
Caoruihong
2020-12-16 17:21:23 +08:00
parent b295e8e28f
commit 1405111aa9
269 changed files with 6962 additions and 9592 deletions

View File

43
targets/cortex-m3_stm32f103_simulator_keil/main.c Executable file → Normal file
View File

@@ -1,15 +1,21 @@
/*
* Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved.
* Description: Redistribution and use in source and binary forms, with or without modification,
* Copyright (c) 2013-2019, Huawei Technologies Co., Ltd. All rights reserved.
* Copyright (c) 2020, Huawei Device Co., Ltd. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer.
* conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list
* of conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
* of conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* 3. Neither the name of the copyright holder nor the names of its contributors may be used
* to endorse or promote products derived from this software without specific prior written
* permission.
* to endorse or promote products derived from this software without specific prior written
* permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
@@ -21,16 +27,8 @@
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* ---------------------------------------------------------------------------
* Notice of Export Control Law
* ===============================================
* Huawei LiteOS may be subject to applicable export control laws and regulations, which might
* include those applicable to Huawei LiteOS of U.S. and the country in which you are located.
* Import, export and usage of Huawei LiteOS in any manner by you shall be in compliance with such
* applicable export control laws and regulations.
*/
#include "los_tick.h"
#include "los_task.h"
#include "los_config.h"
@@ -49,7 +47,6 @@ UINT8 g_memStart[OS_SYS_MEM_SIZE];
VOID taskSampleEntry2(VOID)
{
UINT32 uwRet;
while(1) {
LOS_TaskDelay(10000);
printf("taskSampleEntry2 running...\n");
@@ -59,7 +56,6 @@ VOID taskSampleEntry2(VOID)
VOID taskSampleEntry1(VOID)
{
UINT32 uwRet;
while(1) {
LOS_TaskDelay(2000);
printf("taskSampleEntry1 running...\n");
@@ -70,20 +66,25 @@ VOID taskSampleEntry1(VOID)
UINT32 taskSample(VOID)
{
UINT32 uwRet;
UINT32 taskID1,taskID2;
UINT32 taskID1,taskID2;
TSK_INIT_PARAM_S stTask1={0};
stTask1.pfnTaskEntry = (TSK_ENTRY_FUNC)taskSampleEntry1;
stTask1.uwStackSize = 0X1000;
stTask1.pcName = "taskSampleEntry1";
stTask1.usTaskPrio = 6;
uwRet = LOS_TaskCreate(&taskID1, &stTask1);
if (uwRet != LOS_OK) {
printf("create task1 failed\n");
}
stTask1.pfnTaskEntry = (TSK_ENTRY_FUNC)taskSampleEntry2;
stTask1.uwStackSize = 0X1000;
stTask1.pcName = "taskSampleEntry2";
stTask1.usTaskPrio = 7;
uwRet = LOS_TaskCreate(&taskID2, &stTask1);
if (uwRet != LOS_OK) {
printf("create task2 failed\n");
}
return LOS_OK;
}
@@ -118,12 +119,12 @@ LITE_OS_SEC_TEXT_INIT int main(void)
printf("\n\rhello world!!\n\r");
ret = LOS_KernelInit();
taskSample();
taskSample();
if (ret == LOS_OK) {
LOS_Start();
}
while (1) {
while (1) {
__asm volatile("wfi");
}
}

View File

@@ -4,7 +4,7 @@
LR_IROM1 0x08000000 0x00200000 { ; load region size_region
ER_IROM1 0x08000000 0x00200000 { ; load address = execution address
LOS_vendor.o (RESET, +First)
los_startup.o (RESET, +First)
*(InRoot$$Sections)
* (+RO)
}

View File

@@ -13,7 +13,6 @@
<tExt>*.txt; *.h; *.inc</tExt>
<pExt>*.plm</pExt>
<CppX>*.cpp</CppX>
<nMigrate>0</nMigrate>
</Extensions>
<DaveTm>
@@ -32,7 +31,6 @@
<BeepAtEnd>1</BeepAtEnd>
<RunSim>1</RunSim>
<RunTarget>0</RunTarget>
<RunAbUc>0</RunAbUc>
</OPTTT>
<OPTHX>
<HexSelection>1</HexSelection>
@@ -95,6 +93,16 @@
<Path>datashts\arm\cortex_m3\r2p1\DUI0552A_CORTEX_M3_DGUG.PDF</Path>
</Book>
</Books>
<DllOpt>
<SimDllName>SARMCM3.DLL</SimDllName>
<SimDllArguments></SimDllArguments>
<SimDlgDllName>DARMSTM.DLL</SimDlgDllName>
<SimDlgDllArguments>-pSTM32F103RB</SimDlgDllArguments>
<TargetDllName>SARMCM3.DLL</TargetDllName>
<TargetDllArguments></TargetDllArguments>
<TargetDlgDllName>TARMSTM.DLL</TargetDlgDllName>
<TargetDlgDllArguments>-pSTM32F103RB</TargetDlgDllArguments>
</DllOpt>
<DebugOpt>
<uSim>1</uSim>
<uTrg>0</uTrg>
@@ -113,13 +121,8 @@
<tRfunc>0</tRfunc>
<tRbox>1</tRbox>
<tRtrace>1</tRtrace>
<sRSysVw>1</sRSysVw>
<tRSysVw>1</tRSysVw>
<sRunDeb>0</sRunDeb>
<sLrtime>0</sLrtime>
<bEvRecOn>1</bEvRecOn>
<bSchkAxf>0</bSchkAxf>
<bTchkAxf>0</bTchkAxf>
<nTsel>0</nTsel>
<sDll></sDll>
<sDllPa></sDllPa>
@@ -182,23 +185,12 @@
</DebugFlag>
<LintExecutable></LintExecutable>
<LintConfigFile></LintConfigFile>
<bLintAuto>0</bLintAuto>
<bAutoGenD>0</bAutoGenD>
<LntExFlags>0</LntExFlags>
<pMisraName></pMisraName>
<pszMrule></pszMrule>
<pSingCmds></pSingCmds>
<pMultCmds></pMultCmds>
<pMisraNamep></pMisraNamep>
<pszMrulep></pszMrulep>
<pSingCmdsp></pSingCmdsp>
<pMultCmdsp></pMultCmdsp>
</TargetOption>
</Target>
<Group>
<GroupName>liteos-m</GroupName>
<tvExp>1</tvExp>
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<cbSel>0</cbSel>
<RteFlg>0</RteFlg>
@@ -207,31 +199,11 @@
<FileNumber>1</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>1</Focus>
<ColumnNumber>49223292</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<bDave2>0</bDave2>
<PathWithFileName>..\..\..\kernel\arch\arm\cortex-m3\keil\los_hw.c</PathWithFileName>
<FilenameWithoutPath>los_hw.c</FilenameWithoutPath>
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>
<File>
<GroupNumber>1</GroupNumber>
<FileNumber>2</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<bDave2>0</bDave2>
<PathWithFileName>..\..\..\kernel\arch\arm\cortex-m3\keil\los_hw_tick.c</PathWithFileName>
<FilenameWithoutPath>los_hw_tick.c</FilenameWithoutPath>
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>
<File>
<GroupNumber>1</GroupNumber>
<FileNumber>3</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>5</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\..\..\kernel\src\los_event.c</PathWithFileName>
<FilenameWithoutPath>los_event.c</FilenameWithoutPath>
@@ -240,10 +212,14 @@
</File>
<File>
<GroupNumber>1</GroupNumber>
<FileNumber>4</FileNumber>
<FileNumber>2</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>1</Focus>
<ColumnNumber>49223292</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>5</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\..\..\kernel\src\los_init.c</PathWithFileName>
<FilenameWithoutPath>los_init.c</FilenameWithoutPath>
@@ -252,10 +228,14 @@
</File>
<File>
<GroupNumber>1</GroupNumber>
<FileNumber>5</FileNumber>
<FileNumber>3</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>1</Focus>
<ColumnNumber>49223292</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>5</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\..\..\kernel\src\los_mux.c</PathWithFileName>
<FilenameWithoutPath>los_mux.c</FilenameWithoutPath>
@@ -264,10 +244,14 @@
</File>
<File>
<GroupNumber>1</GroupNumber>
<FileNumber>6</FileNumber>
<FileNumber>4</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>1</Focus>
<ColumnNumber>49223292</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>5</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\..\..\kernel\src\los_queue.c</PathWithFileName>
<FilenameWithoutPath>los_queue.c</FilenameWithoutPath>
@@ -276,10 +260,14 @@
</File>
<File>
<GroupNumber>1</GroupNumber>
<FileNumber>7</FileNumber>
<FileNumber>5</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>1</Focus>
<ColumnNumber>49223292</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>5</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\..\..\kernel\src\los_sem.c</PathWithFileName>
<FilenameWithoutPath>los_sem.c</FilenameWithoutPath>
@@ -288,10 +276,14 @@
</File>
<File>
<GroupNumber>1</GroupNumber>
<FileNumber>8</FileNumber>
<FileNumber>6</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>1</Focus>
<ColumnNumber>49223292</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>5</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\..\..\kernel\src\los_swtmr.c</PathWithFileName>
<FilenameWithoutPath>los_swtmr.c</FilenameWithoutPath>
@@ -300,10 +292,14 @@
</File>
<File>
<GroupNumber>1</GroupNumber>
<FileNumber>9</FileNumber>
<FileNumber>7</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>1</Focus>
<ColumnNumber>49223292</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>5</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\..\..\kernel\src\los_task.c</PathWithFileName>
<FilenameWithoutPath>los_task.c</FilenameWithoutPath>
@@ -312,10 +308,14 @@
</File>
<File>
<GroupNumber>1</GroupNumber>
<FileNumber>10</FileNumber>
<FileNumber>8</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>1</Focus>
<ColumnNumber>49223292</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>5</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\..\..\kernel\src\los_tick.c</PathWithFileName>
<FilenameWithoutPath>los_tick.c</FilenameWithoutPath>
@@ -324,10 +324,14 @@
</File>
<File>
<GroupNumber>1</GroupNumber>
<FileNumber>11</FileNumber>
<FileNumber>9</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>1</Focus>
<ColumnNumber>49223292</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>5</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\..\..\kernel\src\mm\los_membox.c</PathWithFileName>
<FilenameWithoutPath>los_membox.c</FilenameWithoutPath>
@@ -336,10 +340,14 @@
</File>
<File>
<GroupNumber>1</GroupNumber>
<FileNumber>12</FileNumber>
<FileNumber>10</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>1</Focus>
<ColumnNumber>49223292</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>5</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\..\..\kernel\src\mm\los_memcheck.c</PathWithFileName>
<FilenameWithoutPath>los_memcheck.c</FilenameWithoutPath>
@@ -348,10 +356,14 @@
</File>
<File>
<GroupNumber>1</GroupNumber>
<FileNumber>13</FileNumber>
<FileNumber>11</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>1</Focus>
<ColumnNumber>49223292</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>5</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\..\..\kernel\src\mm\los_memory.c</PathWithFileName>
<FilenameWithoutPath>los_memory.c</FilenameWithoutPath>
@@ -360,10 +372,14 @@
</File>
<File>
<GroupNumber>1</GroupNumber>
<FileNumber>14</FileNumber>
<FileNumber>12</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>1</Focus>
<ColumnNumber>49223292</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>5</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\..\..\kernel\src\mm\los_memstat.c</PathWithFileName>
<FilenameWithoutPath>los_memstat.c</FilenameWithoutPath>
@@ -372,10 +388,14 @@
</File>
<File>
<GroupNumber>1</GroupNumber>
<FileNumber>15</FileNumber>
<FileNumber>13</FileNumber>
<FileType>2</FileType>
<tvExp>0</tvExp>
<Focus>1</Focus>
<ColumnNumber>49223292</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>5</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\..\..\kernel\arch\arm\cortex-m3\keil\los_dispatch.S</PathWithFileName>
<FilenameWithoutPath>los_dispatch.S</FilenameWithoutPath>
@@ -384,34 +404,14 @@
</File>
<File>
<GroupNumber>1</GroupNumber>
<FileNumber>16</FileNumber>
<FileType>2</FileType>
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<bDave2>0</bDave2>
<PathWithFileName>..\..\..\kernel\arch\arm\cortex-m3\keil\los_hw_exc.S</PathWithFileName>
<FilenameWithoutPath>los_hw_exc.S</FilenameWithoutPath>
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>
<File>
<GroupNumber>1</GroupNumber>
<FileNumber>17</FileNumber>
<FileType>2</FileType>
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<bDave2>0</bDave2>
<PathWithFileName>..\..\..\kernel\arch\arm\cortex-m3\keil\los_vendor.s</PathWithFileName>
<FilenameWithoutPath>los_vendor.s</FilenameWithoutPath>
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>
<File>
<GroupNumber>1</GroupNumber>
<FileNumber>18</FileNumber>
<FileNumber>14</FileNumber>
<FileType>5</FileType>
<tvExp>0</tvExp>
<Focus>1</Focus>
<ColumnNumber>49223292</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>5</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\..\..\kernel\arch\arm\cortex-m3\keil\cmsis\ARMCM3.h</PathWithFileName>
<FilenameWithoutPath>ARMCM3.h</FilenameWithoutPath>
@@ -420,10 +420,14 @@
</File>
<File>
<GroupNumber>1</GroupNumber>
<FileNumber>19</FileNumber>
<FileNumber>15</FileNumber>
<FileType>5</FileType>
<tvExp>0</tvExp>
<Focus>1</Focus>
<ColumnNumber>49223292</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>5</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\..\..\kernel\arch\arm\cortex-m3\keil\cmsis\core_cm3.h</PathWithFileName>
<FilenameWithoutPath>core_cm3.h</FilenameWithoutPath>
@@ -432,10 +436,14 @@
</File>
<File>
<GroupNumber>1</GroupNumber>
<FileNumber>20</FileNumber>
<FileNumber>16</FileNumber>
<FileType>5</FileType>
<tvExp>0</tvExp>
<Focus>1</Focus>
<ColumnNumber>49223292</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>5</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\..\..\kernel\arch\arm\cortex-m3\keil\cmsis\core_cmFunc.h</PathWithFileName>
<FilenameWithoutPath>core_cmFunc.h</FilenameWithoutPath>
@@ -444,10 +452,14 @@
</File>
<File>
<GroupNumber>1</GroupNumber>
<FileNumber>21</FileNumber>
<FileNumber>17</FileNumber>
<FileType>5</FileType>
<tvExp>0</tvExp>
<Focus>1</Focus>
<ColumnNumber>49223292</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>5</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\..\..\kernel\arch\arm\cortex-m3\keil\cmsis\core_cmInstr.h</PathWithFileName>
<FilenameWithoutPath>core_cmInstr.h</FilenameWithoutPath>
@@ -456,10 +468,14 @@
</File>
<File>
<GroupNumber>1</GroupNumber>
<FileNumber>22</FileNumber>
<FileNumber>18</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>1</Focus>
<ColumnNumber>49223292</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>5</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\..\..\components\cpup\los_cpup.c</PathWithFileName>
<FilenameWithoutPath>los_cpup.c</FilenameWithoutPath>
@@ -468,10 +484,14 @@
</File>
<File>
<GroupNumber>1</GroupNumber>
<FileNumber>23</FileNumber>
<FileNumber>19</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>1</Focus>
<ColumnNumber>49223292</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>5</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\..\..\kernel\arch\arm\cortex-m3\keil\los_interrupt.c</PathWithFileName>
<FilenameWithoutPath>los_interrupt.c</FilenameWithoutPath>
@@ -480,21 +500,89 @@
</File>
<File>
<GroupNumber>1</GroupNumber>
<FileNumber>24</FileNumber>
<FileNumber>20</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>1</Focus>
<ColumnNumber>49223292</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>5</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\..\..\utils\los_error.c</PathWithFileName>
<FilenameWithoutPath>los_error.c</FilenameWithoutPath>
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>
<File>
<GroupNumber>1</GroupNumber>
<FileNumber>21</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>0</Focus>
<ColumnNumber>0</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>0</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\..\..\kernel\arch\arm\cortex-m3\keil\los_context.c</PathWithFileName>
<FilenameWithoutPath>los_context.c</FilenameWithoutPath>
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>
<File>
<GroupNumber>1</GroupNumber>
<FileNumber>22</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>0</Focus>
<ColumnNumber>1</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>206</TopLine>
<CurrentLine>216</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\..\..\kernel\arch\arm\cortex-m3\keil\los_timer.c</PathWithFileName>
<FilenameWithoutPath>los_timer.c</FilenameWithoutPath>
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>
<File>
<GroupNumber>1</GroupNumber>
<FileNumber>23</FileNumber>
<FileType>2</FileType>
<tvExp>0</tvExp>
<Focus>0</Focus>
<ColumnNumber>0</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>0</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\..\..\kernel\arch\arm\cortex-m3\keil\los_exc.S</PathWithFileName>
<FilenameWithoutPath>los_exc.S</FilenameWithoutPath>
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>
<File>
<GroupNumber>1</GroupNumber>
<FileNumber>24</FileNumber>
<FileType>2</FileType>
<tvExp>0</tvExp>
<Focus>0</Focus>
<ColumnNumber>0</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>26</TopLine>
<CurrentLine>45</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\..\..\kernel\arch\arm\cortex-m3\keil\los_startup.s</PathWithFileName>
<FilenameWithoutPath>los_startup.s</FilenameWithoutPath>
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>
</Group>
<Group>
<GroupName>main</GroupName>
<tvExp>1</tvExp>
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<cbSel>0</cbSel>
<RteFlg>0</RteFlg>
@@ -503,7 +591,11 @@
<FileNumber>25</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>1</Focus>
<ColumnNumber>49223292</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>5</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\Driver\STM32F103\uart.c</PathWithFileName>
<FilenameWithoutPath>uart.c</FilenameWithoutPath>
@@ -515,7 +607,11 @@
<FileNumber>26</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>1</Focus>
<ColumnNumber>0</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>113</TopLine>
<CurrentLine>121</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\main.c</PathWithFileName>
<FilenameWithoutPath>main.c</FilenameWithoutPath>
@@ -535,7 +631,11 @@
<FileNumber>27</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>1</Focus>
<ColumnNumber>49223292</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>5</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\..\..\components\bounds_checking_function\src\memcpy_s.c</PathWithFileName>
<FilenameWithoutPath>memcpy_s.c</FilenameWithoutPath>
@@ -547,7 +647,11 @@
<FileNumber>28</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>1</Focus>
<ColumnNumber>49223292</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>5</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\..\..\components\bounds_checking_function\src\memmove_s.c</PathWithFileName>
<FilenameWithoutPath>memmove_s.c</FilenameWithoutPath>
@@ -559,7 +663,11 @@
<FileNumber>29</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>1</Focus>
<ColumnNumber>49223292</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>5</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\..\..\components\bounds_checking_function\src\memset_s.c</PathWithFileName>
<FilenameWithoutPath>memset_s.c</FilenameWithoutPath>
@@ -571,7 +679,11 @@
<FileNumber>30</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>1</Focus>
<ColumnNumber>49223292</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>5</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\..\..\components\bounds_checking_function\src\strcpy_s.c</PathWithFileName>
<FilenameWithoutPath>strcpy_s.c</FilenameWithoutPath>
@@ -583,7 +695,11 @@
<FileNumber>31</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>1</Focus>
<ColumnNumber>49223292</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>5</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\..\..\components\bounds_checking_function\src\strncpy_s.c</PathWithFileName>
<FilenameWithoutPath>strncpy_s.c</FilenameWithoutPath>

View File

@@ -10,7 +10,6 @@
<TargetName>los_demo</TargetName>
<ToolsetNumber>0x4</ToolsetNumber>
<ToolsetName>ARM-ADS</ToolsetName>
<uAC6>0</uAC6>
<TargetOption>
<TargetCommonOption>
<Device>STM32F103RB</Device>
@@ -31,7 +30,6 @@
<SLE66AMisc></SLE66AMisc>
<SLE66LinkerMisc></SLE66LinkerMisc>
<SFDFile>SFD\ST\STM32F1xx\STM32F103xx.sfr</SFDFile>
<bCustSvd>0</bCustSvd>
<UseEnv>0</UseEnv>
<BinPath></BinPath>
<IncludePath></IncludePath>
@@ -73,8 +71,6 @@
<UserProg2Name></UserProg2Name>
<UserProg1Dos16Mode>0</UserProg1Dos16Mode>
<UserProg2Dos16Mode>0</UserProg2Dos16Mode>
<nStopB1X>0</nStopB1X>
<nStopB2X>0</nStopB2X>
</BeforeMake>
<AfterMake>
<RunUserProg1>0</RunUserProg1>
@@ -83,8 +79,6 @@
<UserProg2Name></UserProg2Name>
<UserProg1Dos16Mode>0</UserProg1Dos16Mode>
<UserProg2Dos16Mode>0</UserProg2Dos16Mode>
<nStopA1X>0</nStopA1X>
<nStopA2X>0</nStopA2X>
</AfterMake>
<SelectedForBatchBuild>0</SelectedForBatchBuild>
<SVCSIdString></SVCSIdString>
@@ -103,7 +97,6 @@
<StopOnExitCode>3</StopOnExitCode>
<CustomArgument></CustomArgument>
<IncludeLibraryModules></IncludeLibraryModules>
<ComprImg>1</ComprImg>
</CommonProperty>
<DllOption>
<SimDllName>SARMCM3.DLL</SimDllName>
@@ -133,7 +126,6 @@
<RestoreFunctions>1</RestoreFunctions>
<RestoreToolbox>1</RestoreToolbox>
<LimitSpeedToRealTime>0</LimitSpeedToRealTime>
<RestoreSysVw>1</RestoreSysVw>
</Simulator>
<Target>
<UseTarget>0</UseTarget>
@@ -145,7 +137,6 @@
<RestoreFunctions>0</RestoreFunctions>
<RestoreToolbox>1</RestoreToolbox>
<RestoreTracepoints>1</RestoreTracepoints>
<RestoreSysVw>1</RestoreSysVw>
</Target>
<RunDebugAfterBuild>0</RunDebugAfterBuild>
<TargetSelection>0</TargetSelection>
@@ -178,10 +169,6 @@
<Flash2>BIN\UL2CM3.DLL</Flash2>
<Flash3></Flash3>
<Flash4></Flash4>
<pFcarmOut></pFcarmOut>
<pFcarmGrp></pFcarmGrp>
<pFcArmRoot></pFcArmRoot>
<FcArmLst>0</FcArmLst>
</Utilities>
<TargetArmAds>
<ArmAdsMisc>
@@ -222,15 +209,12 @@
<hadXRAM>0</hadXRAM>
<uocXRam>0</uocXRam>
<RvdsVP>0</RvdsVP>
<RvdsMve>0</RvdsMve>
<RvdsCdeCp>0</RvdsCdeCp>
<hadIRAM2>0</hadIRAM2>
<hadIROM2>0</hadIROM2>
<StupSel>8</StupSel>
<useUlib>1</useUlib>
<EndSel>0</EndSel>
<uLtcg>0</uLtcg>
<nSecure>0</nSecure>
<RoSelD>3</RoSelD>
<RwSelD>3</RwSelD>
<CodeSel>0</CodeSel>
@@ -363,21 +347,11 @@
<wLevel>0</wLevel>
<uThumb>0</uThumb>
<uSurpInc>0</uSurpInc>
<uC99>0</uC99>
<uGnu>0</uGnu>
<useXO>0</useXO>
<v6Lang>1</v6Lang>
<v6LangP>1</v6LangP>
<vShortEn>1</vShortEn>
<vShortWch>1</vShortWch>
<v6Lto>0</v6Lto>
<v6WtE>0</v6WtE>
<v6Rtti>0</v6Rtti>
<VariousControls>
<MiscControls>--gnu</MiscControls>
<Define></Define>
<Undefine></Undefine>
<IncludePath>..\..\cortex-m3_stm32f103_simulator_keil;..\..\..\kernel\include;..\..\..\kernel\arch\arm\cortex-m3\keil;..\..\..\kernel\arch\arm\cortex-m3\keil\cmsis;..\..\..\kernel\src;..\..\..\components\bounds_checking_function\include;..\..\..\components\cpup;..\..\..\utils</IncludePath>
<IncludePath>..\..\cortex-m3_stm32f103_simulator_keil;..\..\..\kernel\include;..\..\..\kernel\arch\arm\cortex-m3\keil;..\..\..\kernel\arch\arm\cortex-m3\keil\cmsis;..\..\..\kernel\src;..\..\..\components\bounds_checking_function\include;..\..\..\components\cpup;..\..\..\utils;..\..\..\kernel\arch\include</IncludePath>
</VariousControls>
</Cads>
<Aads>
@@ -389,8 +363,6 @@
<SwStkChk>0</SwStkChk>
<NoWarn>0</NoWarn>
<uSurpInc>0</uSurpInc>
<useXO>0</useXO>
<ClangAsOpt>1</ClangAsOpt>
<VariousControls>
<MiscControls></MiscControls>
<Define></Define>
@@ -407,7 +379,6 @@
<useFile>0</useFile>
<TextAddressRange>0x08000000</TextAddressRange>
<DataAddressRange>0x20000000</DataAddressRange>
<pXoBase></pXoBase>
<ScatterFile>.\los_demo.sct</ScatterFile>
<IncludeLibs></IncludeLibs>
<IncludeLibsPath></IncludeLibsPath>
@@ -421,16 +392,6 @@
<Group>
<GroupName>liteos-m</GroupName>
<Files>
<File>
<FileName>los_hw.c</FileName>
<FileType>1</FileType>
<FilePath>..\..\..\kernel\arch\arm\cortex-m3\keil\los_hw.c</FilePath>
</File>
<File>
<FileName>los_hw_tick.c</FileName>
<FileType>1</FileType>
<FilePath>..\..\..\kernel\arch\arm\cortex-m3\keil\los_hw_tick.c</FilePath>
</File>
<File>
<FileName>los_event.c</FileName>
<FileType>1</FileType>
@@ -496,16 +457,6 @@
<FileType>2</FileType>
<FilePath>..\..\..\kernel\arch\arm\cortex-m3\keil\los_dispatch.S</FilePath>
</File>
<File>
<FileName>los_hw_exc.S</FileName>
<FileType>2</FileType>
<FilePath>..\..\..\kernel\arch\arm\cortex-m3\keil\los_hw_exc.S</FilePath>
</File>
<File>
<FileName>los_vendor.s</FileName>
<FileType>2</FileType>
<FilePath>..\..\..\kernel\arch\arm\cortex-m3\keil\los_vendor.s</FilePath>
</File>
<File>
<FileName>ARMCM3.h</FileName>
<FileType>5</FileType>
@@ -541,6 +492,26 @@
<FileType>1</FileType>
<FilePath>..\..\..\utils\los_error.c</FilePath>
</File>
<File>
<FileName>los_context.c</FileName>
<FileType>1</FileType>
<FilePath>..\..\..\kernel\arch\arm\cortex-m3\keil\los_context.c</FilePath>
</File>
<File>
<FileName>los_timer.c</FileName>
<FileType>1</FileType>
<FilePath>..\..\..\kernel\arch\arm\cortex-m3\keil\los_timer.c</FilePath>
</File>
<File>
<FileName>los_exc.S</FileName>
<FileType>2</FileType>
<FilePath>..\..\..\kernel\arch\arm\cortex-m3\keil\los_exc.S</FilePath>
</File>
<File>
<FileName>los_startup.s</FileName>
<FileType>2</FileType>
<FilePath>..\..\..\kernel\arch\arm\cortex-m3\keil\los_startup.s</FilePath>
</File>
</Files>
</Group>
<Group>
@@ -592,19 +563,4 @@
</Target>
</Targets>
<LayerInfo>
<Layers>
<Layer>
<LayName>&lt;Project Info&gt;</LayName>
<LayDesc></LayDesc>
<LayUrl></LayUrl>
<LayKeys></LayKeys>
<LayCat></LayCat>
<LayLic></LayLic>
<LayTarg>0</LayTarg>
<LayPrjMark>1</LayPrjMark>
</Layer>
</Layers>
</LayerInfo>
</Project>

View File

@@ -1,15 +1,21 @@
/*
* Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved.
* Description: Redistribution and use in source and binary forms, with or without modification,
* Copyright (c) 2013-2019, Huawei Technologies Co., Ltd. All rights reserved.
* Copyright (c) 2020, Huawei Device Co., Ltd. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer.
* conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list
* of conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
* of conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* 3. Neither the name of the copyright holder nor the names of its contributors may be used
* to endorse or promote products derived from this software without specific prior written
* permission.
* to endorse or promote products derived from this software without specific prior written
* permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
@@ -21,13 +27,6 @@
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* ---------------------------------------------------------------------------
* Notice of Export Control Law
* ===============================================
* Huawei LiteOS may be subject to applicable export control laws and regulations, which might
* include those applicable to Huawei LiteOS of U.S. and the country in which you are located.
* Import, export and usage of Huawei LiteOS in any manner by you shall be in compliance with such
* applicable export control laws and regulations.
*/
/**@defgroup los_config System configuration items
@@ -37,396 +36,66 @@
#ifndef _TARGET_CONFIG_H
#define _TARGET_CONFIG_H
#include "los_compiler.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#define LOSCFG_CORTEX_M3
//#define LOSCFG_BASE_CORE_MPU YES
#define LOSCFG_BASE_CORE_MPU NO
#define LOSCFG_BASE_CORE_CPUP YES
/*=============================================================================
System clock module configuration
=============================================================================*/
/**
* @ingroup los_config
* System clock (unit: HZ)
*/
#define OS_SYS_CLOCK 24000000
#define configCPU_CLOCK_HZ ( OS_SYS_CLOCK )
#if( configUSE_16_BIT_TICKS == 1 )
typedef UINT16 TickType_t;
#define portMAX_DELAY ( TickType_t ) 0xffff
#else
typedef UINT32 TickType_t;
#define portMAX_DELAY ( TickType_t ) 0xffffffffUL
/* 32-bit tick type on a 32-bit architecture, so reads of the tick count do
not need to be guarded with a critical section. */
#define portTICK_TYPE_IS_ATOMIC 1
#endif
#define configTICK_RATE_HZ ( ( TickType_t ) 1000 )
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
/**
* @ingroup los_config
* Number of Ticks in one second
*/
#define OS_SYS_CLOCK 24000000
#define LOSCFG_BASE_CORE_TICK_PER_SECOND (1000UL)
/**
* @ingroup los_config
* External configuration item for timer tailoring
*/
#define LOSCFG_BASE_CORE_TICK_HW_TIME NO
/**
* @ingroup los_config
* Configuration liteos kernel tickless
*/
#define LOSCFG_KERNEL_TICKLESS NO
#define LOSCFG_BASE_CORE_TICK_HW_TIME 0
/*=============================================================================
Hardware interrupt module configuration
=============================================================================*/
/**
* @ingroup los_config
* Configuration item for hardware interrupt tailoring
*/
#define LOSCFG_PLATFORM_HWI YES
/**
* @ingroup los_config
* Maximum number of used hardware interrupts, including Tick timer interrupts.
*/
#define LOSCFG_PLATFORM_HWI 1
#define LOSCFG_PLATFORM_HWI_LIMIT 128
#define LOSCFG_PLATFORM_HWI_MAX_EXCEPTION_COUNT 65000
/*=============================================================================
Task module configuration
=============================================================================*/
/**
* @ingroup los_config
* Default task priority
*/
#define LOSCFG_BASE_CORE_TSK_DEFAULT_PRIO 10
/**
* @ingroup los_config
* Maximum supported number of tasks except the idle task rather than the number of usable tasks
*/
#define LOSCFG_BASE_CORE_TSK_LIMIT 24 // max num task
/**
* @ingroup los_config
* Size of the idle task stack
*/
#define LOSCFG_BASE_CORE_TSK_IDLE_STACK_SIZE (0x500U) // IDLE task stack
/**
* @ingroup los_config
* Default task stack size
*/
#define LOSCFG_BASE_CORE_TSK_DEFAULT_STACK_SIZE (0x2D0U) // default stack
/**
* @ingroup los_config
* Minimum stack size.
*/
#define LOSCFG_BASE_CORE_TSK_LIMIT 24
#define LOSCFG_BASE_CORE_TSK_IDLE_STACK_SIZE (0x500U)
#define LOSCFG_BASE_CORE_TSK_DEFAULT_STACK_SIZE (0x2D0U)
#define LOSCFG_BASE_CORE_TSK_MIN_STACK_SIZE (0x130U)
/**
* @ingroup los_config
* Configuration item for task Robin tailoring
*/
#define LOSCFG_BASE_CORE_TIMESLICE YES
/**
* @ingroup los_config
* Longest execution time of tasks with the same priorities
*/
#define LOSCFG_BASE_CORE_TIMESLICE 1
#define LOSCFG_BASE_CORE_TIMESLICE_TIMEOUT 10
/**
* @ingroup los_config
* Configuration item for task (stack) monitoring module tailoring
*/
#define LOSCFG_BASE_CORE_TSK_MONITOR YES
/**
* @ingroup los_config
* Configuration item for task perf task filter hook
*/
#define LOSCFG_BASE_CORE_EXC_TSK_SWITCH YES
/**
* @ingroup los_config
* Configuration item for performance moniter unit
*/
#define OS_INCLUDE_PERF YES
/**
* @ingroup los_config
* Define a usable task priority.Highest task priority.
*/
#define LOS_TASK_PRIORITY_HIGHEST 0
/**
* @ingroup los_config
* Define a usable task priority.Lowest task priority.
*/
#define LOS_TASK_PRIORITY_LOWEST 31
/*=============================================================================
Semaphore module configuration
=============================================================================*/
/**
* @ingroup los_config
* Configuration item for semaphore module tailoring
*/
#define LOSCFG_BASE_IPC_SEM YES
/**
* @ingroup los_config
* Maximum supported number of semaphores
*/
#define LOSCFG_BASE_IPC_SEM_LIMIT 48 // the max sem-numb
#define LOSCFG_BASE_IPC_SEM 1
#define LOSCFG_BASE_IPC_SEM_LIMIT 48
/*=============================================================================
Mutex module configuration
=============================================================================*/
/**
* @ingroup los_config
* Configuration item for mutex module tailoring
*/
#define LOSCFG_BASE_IPC_MUX YES
/**
* @ingroup los_config
* Maximum supported number of mutexes
*/
#define LOSCFG_BASE_IPC_MUX_LIMIT 24 // the max mutex-num
#define LOSCFG_BASE_IPC_MUX 1
#define LOSCFG_BASE_IPC_MUX_LIMIT 24
/*=============================================================================
Queue module configuration
=============================================================================*/
/**
* @ingroup los_config
* Configuration item for queue module tailoring
*/
#define LOSCFG_BASE_IPC_QUEUE YES
/**
* @ingroup los_config
* Maximum supported number of queues rather than the number of usable queues
*/
#define LOSCFG_BASE_IPC_QUEUE_LIMIT 24 //the max queue-numb
#define LOSCFG_BASE_IPC_QUEUE 1
#define LOSCFG_BASE_IPC_QUEUE_LIMIT 24
/*=============================================================================
Software timer module configuration
=============================================================================*/
#if (LOSCFG_BASE_IPC_QUEUE == YES)
/**
* @ingroup los_config
* Configuration item for software timer module tailoring
*/
#define LOSCFG_BASE_CORE_SWTMR YES
#define LOSCFG_BASE_CORE_TSK_SWTMR_STACK_SIZE (LOSCFG_BASE_CORE_TSK_DEFAULT_STACK_SIZE * 4)
#define LOSCFG_BASE_CORE_SWTMR_TASK YES
#define LOSCFG_BASE_CORE_SWTMR_ALIGN YES
#if(LOSCFG_BASE_CORE_SWTMR == NO && LOSCFG_BASE_CORE_SWTMR_ALIGN == YES)
#error "swtmr align first need support swmtr, should make LOSCFG_BASE_CORE_SWTMR = YES"
#endif
/**
* @ingroup los_config
* Maximum supported number of software timers rather than the number of usable software timers
*/
#define LOSCFG_BASE_CORE_SWTMR_LIMIT 48 // the max SWTMR numb
/**
* @ingroup los_config
* Max number of software timers ID
*/
#define OS_SWTMR_MAX_TIMERID ((65535/LOSCFG_BASE_CORE_SWTMR_LIMIT) * LOSCFG_BASE_CORE_SWTMR_LIMIT)
/**
* @ingroup los_config
* Maximum size of a software timer queue
*/
#define OS_SWTMR_HANDLE_QUEUE_SIZE (LOSCFG_BASE_CORE_SWTMR_LIMIT + 0)
/**
* @ingroup los_config
* Minimum divisor of software timer multiple alignment
*/
#define LOS_COMMON_DIVISOR 10
#endif
#define LOSCFG_BASE_CORE_SWTMR 1
#define LOSCFG_BASE_CORE_SWTMR_ALIGN 1
#define LOSCFG_BASE_CORE_SWTMR_LIMIT 48
/*=============================================================================
Memory module configuration
=============================================================================*/
extern UINT8 *m_aucSysMem0;
extern UINT32 __LOS_HEAP_ADDR_START__;
extern UINT32 __LOS_HEAP_ADDR_END__;
/**
* @ingroup los_config
* Starting address of the memory
*/
#define OS_SYS_MEM_ADDR (VOID *)m_aucSysMem0
/**
* @ingroup los_config
* Ending address of the memory
*/
extern UINT32 g_sys_mem_addr_end;
/**
* @ingroup los_config
* Memory size
*/
#define OS_SYS_MEM_SIZE 0x00014000
/**
* @ingroup los_config
* Configuration module tailoring of mem node integrity checking
*/
#define LOSCFG_BASE_MEM_NODE_INTEGRITY_CHECK YES
/**
* @ingroup los_config
* Configuration module tailoring of mem node size checking
*/
#define LOSCFG_BASE_MEM_NODE_SIZE_CHECK YES
#define LOSCFG_MEMORY_BESTFIT YES
/**
* @ingroup los_config
* Configuration module tailoring of more mempry pool checking
*/
#define LOSCFG_MEM_MUL_POOL YES
/**
* @ingroup los_config
* Number of memory checking blocks
*/
#define OS_SYS_MEM_SIZE 0x00013000
#define LOSCFG_BASE_MEM_NODE_INTEGRITY_CHECK 0
#define LOSCFG_BASE_MEM_NODE_SIZE_CHECK 1
#define LOSCFG_MEM_MUL_POOL 1
#define OS_SYS_MEM_NUM 20
/**
* @ingroup los_config
* Configuration module tailoring of slab memory
*/
#define LOSCFG_KERNEL_MEM_SLAB NO
/*=============================================================================
fw Interface configuration
=============================================================================*/
/**
* @ingroup los_config
* Configuration item for the monitoring of task communication
*/
#define LOSCFG_COMPAT_CMSIS_FW YES
/*=============================================================================
others
=============================================================================*/
/**
* @ingroup los_config
* Configuration system wake-up info to open
*/
#define OS_SR_WAKEUP_INFO YES
/**
* @ingroup los_config
* Configuration CMSIS_OS_VER
*/
#define CMSIS_OS_VER 2
#define LOSCFG_KERNEL_MEM_SLAB 0
/*=============================================================================
Exception module configuration
=============================================================================*/
/**
* @ingroup los_config
* Configuration item for exception tailoring
*/
#define LOSCFG_PLATFORM_EXC YES
/*=============================================================================
Runstop module configuration
=============================================================================*/
/**
* @ingroup los_config
* Configuration item for runstop module tailoring
*/
#define LOSCFG_KERNEL_RUNSTOP NO
/**
* @ingroup los_config
* Configuration test case to open
*/
#define LOSCFG_EXCLUDE_TEST
#ifndef LOSCFG_EXCLUDE_TEST
#define LOSCFG_TEST YES
#else
#define LOSCFG_TEST NO
#endif
/*=============================================================================
track configuration
=============================================================================*/
/**
* @ingroup los_config
* Configuration item for track
*/
#define LOSCFG_BASE_MISC_TRACK NO
/**
* @ingroup los_config
* Max count of track items
*/
#define LOSCFG_BASE_MISC_TRACK_MAX_COUNT 1024
#define LOSCFG_PLATFORM_EXC 1
#ifdef __cplusplus
#if __cplusplus

Some files were not shown because too many files have changed in this diff Show More