forked from xuos/xiuos
				
			fix complie error for incompatibilities between kernels
This commit is contained in:
		
							parent
							
								
									4b0783ab07
								
							
						
					
					
						commit
						195e0085db
					
				|  | @ -18,6 +18,7 @@ | |||
| * @date:    2022/1/7 | ||||
| */ | ||||
| 
 | ||||
| #ifdef ADD_XIZI_FETURES | ||||
| #include <stdio.h> | ||||
| #include <string.h> | ||||
| #include <transform.h> | ||||
|  | @ -57,3 +58,4 @@ void TestAdc(void) | |||
|     return; | ||||
| } | ||||
| PRIV_SHELL_CMD_FUNCTION(TestAdc, a adc test sample, PRIV_SHELL_CMD_MAIN_ATTR); | ||||
| #endif | ||||
|  | @ -1,8 +1,29 @@ | |||
| /*
 | ||||
| * Copyright (c) 2020 AIIT XUOS Lab | ||||
| * XiUOS is licensed under Mulan PSL v2. | ||||
| * You can use this software according to the terms and conditions of the Mulan PSL v2. | ||||
| * You may obtain a copy of Mulan PSL v2 at: | ||||
| *        http://license.coscl.org.cn/MulanPSL2
 | ||||
| * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, | ||||
| * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, | ||||
| * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. | ||||
| * See the Mulan PSL v2 for more details. | ||||
| */ | ||||
| 
 | ||||
| /**
 | ||||
| * @file:    test_camera.c | ||||
| * @brief:   a application of camera function | ||||
| * @version: 1.1 | ||||
| * @author:  AIIT XUOS Lab | ||||
| * @date:    2022/12/7 | ||||
| */ | ||||
| 
 | ||||
| #ifdef ADD_XIZI_FETURES | ||||
| 
 | ||||
| #include <stdio.h> | ||||
| #include <string.h> | ||||
| #include <transform.h> | ||||
| 
 | ||||
| 
 | ||||
| static uint16_t image_buff[384000]; | ||||
| 
 | ||||
| void TestCamera(int argc, char *argv[]) | ||||
|  | @ -97,3 +118,4 @@ void TestCamera(int argc, char *argv[]) | |||
| } | ||||
| 
 | ||||
| PRIV_SHELL_CMD_FUNCTION(TestCamera, a camera test sample, PRIV_SHELL_CMD_MAIN_ATTR); | ||||
| #endif | ||||
|  | @ -1,3 +1,23 @@ | |||
| /*
 | ||||
| * Copyright (c) 2020 AIIT XUOS Lab | ||||
| * XiUOS is licensed under Mulan PSL v2. | ||||
| * You can use this software according to the terms and conditions of the Mulan PSL v2. | ||||
| * You may obtain a copy of Mulan PSL v2 at: | ||||
| *        http://license.coscl.org.cn/MulanPSL2
 | ||||
| * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, | ||||
| * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, | ||||
| * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. | ||||
| * See the Mulan PSL v2 for more details. | ||||
| */ | ||||
| 
 | ||||
| /**
 | ||||
| * @file:    test_can.c | ||||
| * @brief:   a application of can function | ||||
| * @version: 1.1 | ||||
| * @author:  AIIT XUOS Lab | ||||
| * @date:    2023/2/17 | ||||
| */ | ||||
| #ifdef ADD_XIZI_FETURES | ||||
| #include <stdio.h> | ||||
| #include <string.h> | ||||
| #include <transform.h> | ||||
|  | @ -64,3 +84,4 @@ void TestCAN(void) | |||
| } | ||||
| 
 | ||||
| PRIV_SHELL_CMD_FUNCTION(TestCAN, a can test sample, PRIV_SHELL_CMD_MAIN_ATTR); | ||||
| #endif | ||||
|  | @ -17,7 +17,7 @@ | |||
| * @author:  AIIT XUOS Lab | ||||
| * @date:    2022/1/11 | ||||
| */ | ||||
| 
 | ||||
| #ifdef ADD_XIZI_FETURES | ||||
| #include <stdio.h> | ||||
| #include <string.h> | ||||
| #include <transform.h> | ||||
|  | @ -57,3 +57,4 @@ void TestDac(void) | |||
|     return; | ||||
| } | ||||
| PRIV_SHELL_CMD_FUNCTION(TestDac, a dac test sample, PRIV_SHELL_CMD_MAIN_ATTR); | ||||
| #endif | ||||
|  | @ -1,3 +1,23 @@ | |||
| /*
 | ||||
| * Copyright (c) 2020 AIIT XUOS Lab | ||||
| * XiUOS is licensed under Mulan PSL v2. | ||||
| * You can use this software according to the terms and conditions of the Mulan PSL v2. | ||||
| * You may obtain a copy of Mulan PSL v2 at: | ||||
| *        http://license.coscl.org.cn/MulanPSL2
 | ||||
| * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, | ||||
| * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, | ||||
| * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. | ||||
| * See the Mulan PSL v2 for more details. | ||||
| */ | ||||
| 
 | ||||
| /**
 | ||||
| * @file:    test_ethernet.c | ||||
| * @brief:   a application of ethernet function | ||||
| * @version: 1.1 | ||||
| * @author:  AIIT XUOS Lab | ||||
| * @date:    2022/12/17 | ||||
| */ | ||||
| #ifdef ADD_XIZI_FETURES | ||||
| #include <stdio.h> | ||||
| #include <string.h> | ||||
| #include <transform.h> | ||||
|  | @ -171,3 +191,4 @@ PRIV_SHELL_CMD_FUNCTION(TestSocketAsClient, a w5500 client-ip-port-msg test samp | |||
| #endif | ||||
| 
 | ||||
| 
 | ||||
| #endif | ||||
|  | @ -1,3 +1,23 @@ | |||
| /*
 | ||||
| * Copyright (c) 2020 AIIT XUOS Lab | ||||
| * XiUOS is licensed under Mulan PSL v2. | ||||
| * You can use this software according to the terms and conditions of the Mulan PSL v2. | ||||
| * You may obtain a copy of Mulan PSL v2 at: | ||||
| *        http://license.coscl.org.cn/MulanPSL2
 | ||||
| * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, | ||||
| * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, | ||||
| * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. | ||||
| * See the Mulan PSL v2 for more details. | ||||
| */ | ||||
| 
 | ||||
| /**
 | ||||
| * @file:    test_flash.c | ||||
| * @brief:   a application of flash function | ||||
| * @version: 1.1 | ||||
| * @author:  AIIT XUOS Lab | ||||
| * @date:    2022/12/17 | ||||
| */ | ||||
| #ifdef ADD_XIZI_FETURES | ||||
| #include <stdio.h> | ||||
| #include <string.h> | ||||
| #include <transform.h> | ||||
|  | @ -33,3 +53,4 @@ void TestFlash(void) | |||
| } | ||||
| 
 | ||||
| PRIV_SHELL_CMD_FUNCTION(TestFlash, a flash test sample, PRIV_SHELL_CMD_MAIN_ATTR); | ||||
| #endif | ||||
|  | @ -1,3 +1,23 @@ | |||
| /*
 | ||||
| * Copyright (c) 2020 AIIT XUOS Lab | ||||
| * XiUOS is licensed under Mulan PSL v2. | ||||
| * You can use this software according to the terms and conditions of the Mulan PSL v2. | ||||
| * You may obtain a copy of Mulan PSL v2 at: | ||||
| *        http://license.coscl.org.cn/MulanPSL2
 | ||||
| * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, | ||||
| * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, | ||||
| * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. | ||||
| * See the Mulan PSL v2 for more details. | ||||
| */ | ||||
| 
 | ||||
| /**
 | ||||
| * @file:    test_fs.c | ||||
| * @brief:   a application of file_system function | ||||
| * @version: 1.1 | ||||
| * @author:  AIIT XUOS Lab | ||||
| * @date:    2022/11/17 | ||||
| */ | ||||
| #ifdef ADD_XIZI_FETURES | ||||
| #include <stdio.h> | ||||
| #include <string.h> | ||||
| #include <transform.h> | ||||
|  | @ -60,3 +80,4 @@ void TestFs(void) | |||
| } | ||||
| 
 | ||||
| PRIV_SHELL_CMD_FUNCTION(TestFs, a sd or usb filesystem test sample, PRIV_SHELL_CMD_MAIN_ATTR); | ||||
| #endif | ||||
|  | @ -1,3 +1,23 @@ | |||
| /*
 | ||||
| * Copyright (c) 2020 AIIT XUOS Lab | ||||
| * XiUOS is licensed under Mulan PSL v2. | ||||
| * You can use this software according to the terms and conditions of the Mulan PSL v2. | ||||
| * You may obtain a copy of Mulan PSL v2 at: | ||||
| *        http://license.coscl.org.cn/MulanPSL2
 | ||||
| * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, | ||||
| * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, | ||||
| * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. | ||||
| * See the Mulan PSL v2 for more details. | ||||
| */ | ||||
| 
 | ||||
| /**
 | ||||
| * @file:    test_gpio.c | ||||
| * @brief:   a application of GPIO function | ||||
| * @version: 1.1 | ||||
| * @author:  AIIT XUOS Lab | ||||
| * @date:    2022/12/17 | ||||
| */ | ||||
| #ifdef ADD_XIZI_FETURES | ||||
| #include <stdio.h> | ||||
| #include <string.h> | ||||
| #include <transform.h> | ||||
|  | @ -71,3 +91,4 @@ void  TestGpio(void) | |||
| } | ||||
| 
 | ||||
| PRIV_SHELL_CMD_FUNCTION(TestGpio, a gpio test sample, PRIV_SHELL_CMD_MAIN_ATTR); | ||||
| #endif | ||||
|  | @ -1,3 +1,23 @@ | |||
| /*
 | ||||
| * Copyright (c) 2020 AIIT XUOS Lab | ||||
| * XiUOS is licensed under Mulan PSL v2. | ||||
| * You can use this software according to the terms and conditions of the Mulan PSL v2. | ||||
| * You may obtain a copy of Mulan PSL v2 at: | ||||
| *        http://license.coscl.org.cn/MulanPSL2
 | ||||
| * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, | ||||
| * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, | ||||
| * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. | ||||
| * See the Mulan PSL v2 for more details. | ||||
| */ | ||||
| 
 | ||||
| /**
 | ||||
| * @file:    test_hwtimer.c | ||||
| * @brief:   a application of hwtimer function | ||||
| * @version: 1.1 | ||||
| * @author:  AIIT XUOS Lab | ||||
| * @date:    2022/12/17 | ||||
| */ | ||||
| #ifdef ADD_XIZI_FETURES | ||||
| #include <stdio.h> | ||||
| #include <string.h> | ||||
| #include <transform.h> | ||||
|  | @ -74,3 +94,4 @@ void TestHwTimer(void) | |||
| } | ||||
| 
 | ||||
| PRIV_SHELL_CMD_FUNCTION(TestHwTimer, a timer test sample, PRIV_SHELL_CMD_MAIN_ATTR); | ||||
| #endif | ||||
|  | @ -1,3 +1,23 @@ | |||
| /*
 | ||||
| * Copyright (c) 2020 AIIT XUOS Lab | ||||
| * XiUOS is licensed under Mulan PSL v2. | ||||
| * You can use this software according to the terms and conditions of the Mulan PSL v2. | ||||
| * You may obtain a copy of Mulan PSL v2 at: | ||||
| *        http://license.coscl.org.cn/MulanPSL2
 | ||||
| * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, | ||||
| * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, | ||||
| * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. | ||||
| * See the Mulan PSL v2 for more details. | ||||
| */ | ||||
| 
 | ||||
| /**
 | ||||
| * @file:    test_i2c.c | ||||
| * @brief:   a application of i2c function | ||||
| * @version: 1.1 | ||||
| * @author:  AIIT XUOS Lab | ||||
| * @date:    2022/12/17 | ||||
| */ | ||||
| #ifdef ADD_XIZI_FETURES | ||||
| #include <stdio.h> | ||||
| #include <string.h> | ||||
| #include <transform.h> | ||||
|  | @ -48,3 +68,4 @@ void TestI2C(void) | |||
| } | ||||
| 
 | ||||
| PRIV_SHELL_CMD_FUNCTION(TestI2C, a iic test sample, PRIV_SHELL_CMD_MAIN_ATTR); | ||||
| #endif | ||||
|  | @ -1,3 +1,23 @@ | |||
| /*
 | ||||
| * Copyright (c) 2020 AIIT XUOS Lab | ||||
| * XiUOS is licensed under Mulan PSL v2. | ||||
| * You can use this software according to the terms and conditions of the Mulan PSL v2. | ||||
| * You may obtain a copy of Mulan PSL v2 at: | ||||
| *        http://license.coscl.org.cn/MulanPSL2
 | ||||
| * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, | ||||
| * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, | ||||
| * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. | ||||
| * See the Mulan PSL v2 for more details. | ||||
| */ | ||||
| 
 | ||||
| /**
 | ||||
| * @file:    test_lcd.c | ||||
| * @brief:   a application of lcd function | ||||
| * @version: 1.1 | ||||
| * @author:  AIIT XUOS Lab | ||||
| * @date:    2022/12/17 | ||||
| */ | ||||
| #ifdef ADD_XIZI_FETURES | ||||
| #include <stdio.h> | ||||
| #include <string.h> | ||||
| #include <transform.h> | ||||
|  | @ -48,3 +68,4 @@ void TestLcd(void) | |||
| } | ||||
| 
 | ||||
| PRIV_SHELL_CMD_FUNCTION(TestLcd, a lcd test sample, PRIV_SHELL_CMD_MAIN_ATTR); | ||||
| #endif | ||||
|  | @ -1,3 +1,23 @@ | |||
| /*
 | ||||
| * Copyright (c) 2020 AIIT XUOS Lab | ||||
| * XiUOS is licensed under Mulan PSL v2. | ||||
| * You can use this software according to the terms and conditions of the Mulan PSL v2. | ||||
| * You may obtain a copy of Mulan PSL v2 at: | ||||
| *        http://license.coscl.org.cn/MulanPSL2
 | ||||
| * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, | ||||
| * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, | ||||
| * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. | ||||
| * See the Mulan PSL v2 for more details. | ||||
| */ | ||||
| 
 | ||||
| /**
 | ||||
| * @file:    test_loraE220.c | ||||
| * @brief:   a application of loraE220 function | ||||
| * @version: 1.1 | ||||
| * @author:  AIIT XUOS Lab | ||||
| * @date:    2022/12/17 | ||||
| */ | ||||
| #ifdef ADD_XIZI_FETURES | ||||
| #include <stdio.h> | ||||
| #include <string.h> | ||||
| #include <transform.h> | ||||
|  | @ -145,3 +165,4 @@ void TestLora(int argc, char *argv[]) | |||
| } | ||||
| 
 | ||||
| PRIV_SHELL_CMD_FUNCTION(TestLora, a lora test sample, PRIV_SHELL_CMD_MAIN_ATTR); | ||||
| #endif | ||||
|  | @ -1,3 +1,23 @@ | |||
| /*
 | ||||
| * Copyright (c) 2020 AIIT XUOS Lab | ||||
| * XiUOS is licensed under Mulan PSL v2. | ||||
| * You can use this software according to the terms and conditions of the Mulan PSL v2. | ||||
| * You may obtain a copy of Mulan PSL v2 at: | ||||
| *        http://license.coscl.org.cn/MulanPSL2
 | ||||
| * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, | ||||
| * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, | ||||
| * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. | ||||
| * See the Mulan PSL v2 for more details. | ||||
| */ | ||||
| 
 | ||||
| /**
 | ||||
| * @file:    test_rs485.c | ||||
| * @brief:   a application of rs485 function | ||||
| * @version: 1.1 | ||||
| * @author:  AIIT XUOS Lab | ||||
| * @date:    2022/12/17 | ||||
| */ | ||||
| #ifdef ADD_XIZI_FETURES | ||||
| #include <stdio.h> | ||||
| #include <string.h> | ||||
| #include <transform.h> | ||||
|  | @ -84,3 +104,4 @@ void Test485(void) | |||
| } | ||||
| 
 | ||||
| PRIV_SHELL_CMD_FUNCTION(Test485, a RS485 test sample, PRIV_SHELL_CMD_MAIN_ATTR); | ||||
| #endif | ||||
|  | @ -1,3 +1,23 @@ | |||
| /*
 | ||||
| * Copyright (c) 2020 AIIT XUOS Lab | ||||
| * XiUOS is licensed under Mulan PSL v2. | ||||
| * You can use this software according to the terms and conditions of the Mulan PSL v2. | ||||
| * You may obtain a copy of Mulan PSL v2 at: | ||||
| *        http://license.coscl.org.cn/MulanPSL2
 | ||||
| * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, | ||||
| * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, | ||||
| * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. | ||||
| * See the Mulan PSL v2 for more details. | ||||
| */ | ||||
| 
 | ||||
| /**
 | ||||
| * @file:    test_rtc.c | ||||
| * @brief:   a application of rtc function | ||||
| * @version: 1.1 | ||||
| * @author:  AIIT XUOS Lab | ||||
| * @date:    2022/12/17 | ||||
| */ | ||||
| #ifdef ADD_XIZI_FETURES | ||||
| #include <stdio.h> | ||||
| #include <string.h> | ||||
| #include <transform.h> | ||||
|  | @ -39,3 +59,4 @@ void TestRTC(int argc,char *argv[]) | |||
| } | ||||
| 
 | ||||
| PRIV_SHELL_CMD_FUNCTION(TestRTC, a rtc test sample, PRIV_SHELL_CMD_MAIN_ATTR); | ||||
| #endif | ||||
|  | @ -40,7 +40,6 @@ void TestTouch(void) | |||
| } | ||||
| #endif | ||||
| 
 | ||||
| #endif | ||||
| #include <stdio.h> | ||||
| #include <string.h> | ||||
| #include <transform.h> | ||||
|  | @ -49,6 +48,7 @@ void TestTouch(void) | |||
| #define LCD_DOT_TYPE 1 | ||||
| #define LCD_SIZE 320 | ||||
| 
 | ||||
| #elif ADD_XIZI_FETURES | ||||
| 
 | ||||
| void TestTouch(void) | ||||
| { | ||||
|  | @ -110,3 +110,4 @@ void TestTouch(void) | |||
| } | ||||
| 
 | ||||
| PRIV_SHELL_CMD_FUNCTION(TestTouch, a touch test sample, PRIV_SHELL_CMD_MAIN_ATTR); | ||||
| #endif | ||||
|  | @ -1,3 +1,23 @@ | |||
| /*
 | ||||
| * Copyright (c) 2020 AIIT XUOS Lab | ||||
| * XiUOS is licensed under Mulan PSL v2. | ||||
| * You can use this software according to the terms and conditions of the Mulan PSL v2. | ||||
| * You may obtain a copy of Mulan PSL v2 at: | ||||
| *        http://license.coscl.org.cn/MulanPSL2
 | ||||
| * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, | ||||
| * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, | ||||
| * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. | ||||
| * See the Mulan PSL v2 for more details. | ||||
| */ | ||||
| 
 | ||||
| /**
 | ||||
| * @file:    test_wdt.c | ||||
| * @brief:   a application of wdt function | ||||
| * @version: 1.1 | ||||
| * @author:  AIIT XUOS Lab | ||||
| * @date:    2022/12/17 | ||||
| */ | ||||
| #ifdef ADD_XIZI_FETURES | ||||
| #include <stdio.h> | ||||
| #include <string.h> | ||||
| #include <transform.h> | ||||
|  | @ -43,3 +63,4 @@ void TestWDT(int argc, char *agrv[]) | |||
| } | ||||
| 
 | ||||
| PRIV_SHELL_CMD_FUNCTION(TestWDT, a wdt test sample, PRIV_SHELL_CMD_MAIN_ATTR); | ||||
| #endif | ||||
		Loading…
	
		Reference in New Issue