feat modify XiUOS_Kernel dir from Ubiquitous/XiUOS to Ubiquitous/XiZi

This commit is contained in:
Liu_Weichao
2022-03-01 14:15:01 +08:00
parent f45477ab2a
commit 5078ff66cc
2178 changed files with 431 additions and 434 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ ifeq ($(CONFIG_ADD_NUTTX_FETURES),y)
endif
ifeq ($(CONFIG_ADD_XIUOS_FETURES),y)
ifeq ($(CONFIG_ADD_XIZI_FETURES),y)
SRC_DIR := general_functions app_test
SRC_FILES := main.c framework_init.c
+2 -2
View File
@@ -12,7 +12,7 @@ menu "test app"
bool "Config test adc"
default n
if USER_TEST_ADC
if ADD_XIUOS_FETURES
if ADD_XIZI_FETURES
config ADC_DEV_DRIVER
string "Set ADC dev path"
default "/dev/adc1_dev"
@@ -23,7 +23,7 @@ menu "test app"
bool "Config test dac"
default n
if USER_TEST_DAC
if ADD_XIUOS_FETURES
if ADD_XIZI_FETURES
config DAC_DEV_DRIVER
string "Set DAC dev path"
default "/dev/dac_dev"
@@ -42,7 +42,7 @@ Modification:
1. support spi flash open, read and write function
*************************************************/
#include <xiuos.h>
#include <xizi.h>
#include <device.h>
#include <flash_spi.h>
#include <user_api.h>
@@ -18,7 +18,7 @@
* @date 2021-05-29
*/
#include <transform.h>
#include <xiuos.h>
#include <xizi.h>
#include "board.h"
#include "sys_arch.h"
#include <lwip/sockets.h>
@@ -18,7 +18,7 @@
* @date 2021-05-29
*/
#include <transform.h>
#include <xiuos.h>
#include <xizi.h>
#include "board.h"
#include "sys_arch.h"
#include "lwip/udp.h"
+1 -1
View File
@@ -10,7 +10,7 @@
* See the Mulan PSL v2 for more details.
*/
#include <xiuos.h>
#include <xizi.h>
#include <stdio.h>
#include <cstdlib>
using namespace std;
@@ -5,7 +5,7 @@ ifeq ($(CONFIG_ADD_NUTTX_FETURES),y)
include $(APPDIR)/Application.mk
endif
ifeq ($(CONFIG_ADD_XIUOS_FETURES),y)
ifeq ($(CONFIG_ADD_XIZI_FETURES),y)
SRC_FILES := double_list.c single_list.c
include $(KERNEL_ROOT)/compiler.mk
endif
@@ -51,7 +51,7 @@ ifeq ($(CONFIG_ADD_NUTTX_FETURES),y)
endif
ifeq ($(CONFIG_ADD_XIUOS_FETURES),y)
ifeq ($(CONFIG_ADD_XIZI_FETURES),y)
SRC_FILES :=
ifeq ($(CONFIG_APPLICATION_SENSOR_HCHO_TB600B_WQ_HCHO1OS), y)
@@ -18,7 +18,7 @@
* @date 2021.12.10
*/
#ifdef ADD_XIUOS_FETURES
#ifdef ADD_XIZI_FETURES
# include <user_api.h>
#endif
#include <sensor.h>
@@ -18,7 +18,7 @@
* @date 2021.04.23
*/
#ifdef ADD_XIUOS_FETURES
#ifdef ADD_XIZI_FETURES
# include <user_api.h>
#endif
#include <sensor.h>
@@ -18,7 +18,7 @@
* @date 2021.12.15
*/
#ifdef ADD_XIUOS_FETURES
#ifdef ADD_XIZI_FETURES
# include <user_api.h>
#endif
#include <sensor.h>
@@ -18,7 +18,7 @@
* @date 2021.04.23
*/
#ifdef ADD_XIUOS_FETURES
#ifdef ADD_XIZI_FETURES
# include <user_api.h>
#endif
@@ -18,7 +18,7 @@
* @date 2021.12.14
*/
#ifdef ADD_XIUOS_FETURES
#ifdef ADD_XIZI_FETURES
# include <user_api.h>
#endif
#include <sensor.h>
@@ -18,7 +18,7 @@
* @date 2021.04.23
*/
#ifdef ADD_XIUOS_FETURES
#ifdef ADD_XIZI_FETURES
# include <user_api.h>
#endif
@@ -18,7 +18,7 @@
* @date 2021.04.23
*/
#ifdef ADD_XIUOS_FETURES
#ifdef ADD_XIZI_FETURES
# include <user_api.h>
#endif
@@ -18,7 +18,7 @@
* @date 2021.04.23
*/
#ifdef ADD_XIUOS_FETURES
#ifdef ADD_XIZI_FETURES
# include <user_api.h>
#endif
@@ -18,7 +18,7 @@
* @date 2021.04.23
*/
#ifdef ADD_XIUOS_FETURES
#ifdef ADD_XIZI_FETURES
# include <user_api.h>
#endif
@@ -18,7 +18,7 @@
* @date 2021.12.15
*/
#ifdef ADD_XIUOS_FETURES
#ifdef ADD_XIZI_FETURES
# include <user_api.h>
#endif
#include <sensor.h>
+3 -3
View File
@@ -5,10 +5,10 @@ menu "Framework"
default y
choice
prompt "select os features"
default ADD_XIUOS_FETURES
default ADD_XIZI_FETURES
config ADD_XIUOS_FETURES
bool "add xiuos fetures"
config ADD_XIZI_FETURES
bool "add xizi fetures"
config ADD_NUTTX_FETURES
bool "add nuttx fetures"
@@ -2,7 +2,7 @@ config ADAPTER_4G_EC200T
string "EC200T adapter name"
default "ec200t"
if ADD_XIUOS_FETURES
if ADD_XIZI_FETURES
config ADAPTER_EC200T_PWRKEY
int "EC200T PWRKEY pin number"
default "97"
@@ -2,7 +2,7 @@ config ADAPTER_BLUETOOTH_HC08
string "HC08 adapter name"
default "hc08"
if ADD_XIUOS_FETURES
if ADD_XIZI_FETURES
config ADAPTER_HC08_RECV_BUFFER_SIZE
int "HC08 recv data buffer size"
default "128"
@@ -2,7 +2,7 @@ config ADAPTER_ETHERNET_HFA21
string "HFA21 ETHERNET adapter name"
default "hfa21_ethernet"
if ADD_XIUOS_FETURES
if ADD_XIZI_FETURES
config ADAPTER_HFA21_DRIVER_EXTUART
bool "Using extra uart to support ethernet"
@@ -2,7 +2,7 @@ config ADAPTER_LORA_SX1278
string "SX1278 adapter name"
default "sx1278"
if ADD_XIUOS_FETURES
if ADD_XIZI_FETURES
config ADAPTER_SX1278_DRIVER
string "SX1278 device spi driver path"
default "/dev/spi2_lora"
@@ -2,7 +2,7 @@ config ADAPTER_NBIOT_BC28
string "BC28 adapter name"
default "bc28"
if ADD_XIUOS_FETURES
if ADD_XIZI_FETURES
config ADAPTER_BC28_RESETPIN
int "BC28 RESET pin number"
default "100"
@@ -2,7 +2,7 @@ config ADAPTER_WIFI_HFA21
string "HFA21 WIFI adapter name"
default "hfa21_wifi"
if ADD_XIUOS_FETURES
if ADD_XIZI_FETURES
config ADAPTER_HFA21_DRIVER_EXTUART
bool "Using extra uart to support wifi"
@@ -17,7 +17,7 @@ choice
endchoice
if ADD_XIUOS_FETURES
if ADD_XIZI_FETURES
config ADAPTER_E18_DRIVER_EXTUART
bool "Using extra uart to support zigbee"
+1 -1
View File
@@ -6,7 +6,7 @@ ifeq ($(CONFIG_ADD_NUTTX_FETURES),y)
endif
ifeq ($(CONFIG_ADD_XIUOS_FETURES),y)
ifeq ($(CONFIG_ADD_XIZI_FETURES),y)
SRC_FILES := sensor.c
ifeq ($(CONFIG_SENSOR_HCHO),y)
+1 -1
View File
@@ -12,7 +12,7 @@ config SENSOR_AS830
string "as830 quantity name"
default "ch4_1"
if ADD_XIUOS_FETURES
if ADD_XIZI_FETURES
config SENSOR_AS830_DRIVER_EXTUART
bool "Using extra uart to support as830"
default y
@@ -5,7 +5,7 @@ ifeq ($(CONFIG_ADD_NUTTX_FETURES),y)
include $(APPDIR)/Application.mk
endif
ifeq ($(CONFIG_ADD_XIUOS_FETURES),y)
ifeq ($(CONFIG_ADD_XIZI_FETURES),y)
SRC_FILES := as830.c
include $(KERNEL_ROOT)/compiler.mk
endif
+1 -1
View File
@@ -12,7 +12,7 @@ config SENSOR_ZG09
string "zg09 quantity name"
default "co2_1"
if ADD_XIUOS_FETURES
if ADD_XIZI_FETURES
config SENSOR_ZG09_DRIVER_EXTUART
bool "Using extra uart to support zg09"
default y
@@ -6,7 +6,7 @@ ifeq ($(CONFIG_ADD_NUTTX_FETURES),y)
include $(APPDIR)/Application.mk
endif
ifeq ($(CONFIG_ADD_XIUOS_FETURES),y)
ifeq ($(CONFIG_ADD_XIZI_FETURES),y)
SRC_FILES := zg09.c
include $(KERNEL_ROOT)/compiler.mk
endif
+1 -1
View File
@@ -12,7 +12,7 @@ config SENSOR_TB600B_WQ_HCHO1OS
string "tb600b wq_hcho1os quantity name"
default "hcho_1"
if ADD_XIUOS_FETURES
if ADD_XIZI_FETURES
config SENSOR_TB600B_WQ_HCHO1OS_DRIVER_EXTUART
bool "Using extra uart to support tb600b wq_hcho1os"
default y
@@ -6,7 +6,7 @@ ifeq ($(CONFIG_ADD_NUTTX_FETURES),y)
include $(APPDIR)/Application.mk
endif
ifeq ($(CONFIG_ADD_XIUOS_FETURES),y)
ifeq ($(CONFIG_ADD_XIZI_FETURES),y)
SRC_FILES := tb600b_wq_hcho1os.c
include $(KERNEL_ROOT)/compiler.mk
endif
@@ -12,7 +12,7 @@ config SENSOR_HS300X_HUMIDITY
string "HS300x quantity name"
default "humidity_1"
if ADD_XIUOS_FETURES
if ADD_XIZI_FETURES
config SENSOR_DEVICE_HS300X_DEV
string "HS300x device name"
default "/dev/i2c1_dev0"
@@ -6,7 +6,7 @@ ifeq ($(CONFIG_ADD_NUTTX_FETURES),y)
endif
ifeq ($(CONFIG_ADD_XIUOS_FETURES),y)
ifeq ($(CONFIG_ADD_XIZI_FETURES),y)
SRC_FILES := hs300x_humi.c
include $(KERNEL_ROOT)/compiler.mk
+1 -1
View File
@@ -12,7 +12,7 @@ config SENSOR_TB600B_IAQ10
string "tb600b iaq10 quantity name"
default "iaq_1"
if ADD_XIUOS_FETURES
if ADD_XIZI_FETURES
config SENSOR_TB600B_IAQ10_DRIVER_EXTUART
bool "Using extra uart to support tb600b iaq10"
default y
@@ -6,7 +6,7 @@ ifeq ($(CONFIG_ADD_NUTTX_FETURES),y)
endif
ifeq ($(CONFIG_ADD_XIUOS_FETURES),y)
ifeq ($(CONFIG_ADD_XIZI_FETURES),y)
SRC_FILES := tb600b_iaq10.c
include $(KERNEL_ROOT)/compiler.mk
endif
+1 -1
View File
@@ -38,7 +38,7 @@ config SENSOR_PS5308
default "pm10_1"
endif
if ADD_XIUOS_FETURES
if ADD_XIZI_FETURES
config SENSOR_PS5308_DRIVER_EXTUART
bool "Using extra uart to support PS5308"
default y
@@ -5,7 +5,7 @@ ifeq ($(CONFIG_ADD_NUTTX_FETURES),y)
include $(APPDIR)/Application.mk
endif
ifeq ($(CONFIG_ADD_XIUOS_FETURES),y)
ifeq ($(CONFIG_ADD_XIZI_FETURES),y)
SRC_FILES := ps5308.c
include $(KERNEL_ROOT)/compiler.mk
endif
@@ -12,7 +12,7 @@ config SENSOR_HS300X_TEMPERATURE
string "HS300x quantity name"
default "temperature_1"
if ADD_XIUOS_FETURES
if ADD_XIZI_FETURES
config SENSOR_DEVICE_HS300X_DEV
string "HS300x device name"
default "/dev/i2c1_dev0"
@@ -6,7 +6,7 @@ ifeq ($(CONFIG_ADD_NUTTX_FETURES),y)
endif
ifeq ($(CONFIG_ADD_XIUOS_FETURES),y)
ifeq ($(CONFIG_ADD_XIZI_FETURES),y)
SRC_FILES := hs300x_temp.c
include $(KERNEL_ROOT)/compiler.mk
endif
+1 -1
View File
@@ -12,7 +12,7 @@ config SENSOR_TB600B_TVOC10
string "tb600b tvoc10 quantity name"
default "tvoc_1"
if ADD_XIUOS_FETURES
if ADD_XIZI_FETURES
config SENSOR_TB600B_TVOC10_DRIVER_EXTUART
bool "Using extra uart to support tb600b tvoc10"
default y
@@ -6,7 +6,7 @@ ifeq ($(CONFIG_ADD_NUTTX_FETURES),y)
include $(APPDIR)/Application.mk
endif
ifeq ($(CONFIG_ADD_XIUOS_FETURES),y)
ifeq ($(CONFIG_ADD_XIZI_FETURES),y)
SRC_FILES := tb600b_tvoc10.c
include $(KERNEL_ROOT)/compiler.mk
endif
+1 -1
View File
@@ -12,7 +12,7 @@ config SENSOR_D124
string "D124 quantity voice name"
default "voice_1"
if ADD_XIUOS_FETURES
if ADD_XIZI_FETURES
config SENSOR_D124_DRIVER_EXTUART
bool "Using extra uart to support D124"
default y
@@ -6,7 +6,7 @@ ifeq ($(CONFIG_ADD_NUTTX_FETURES),y)
include $(APPDIR)/Application.mk
endif
ifeq ($(CONFIG_ADD_XIUOS_FETURES),y)
ifeq ($(CONFIG_ADD_XIZI_FETURES),y)
SRC_FILES := d124.c
include $(KERNEL_ROOT)/compiler.mk
endif
@@ -1,7 +1,7 @@
SRC_DIR :=
ifeq ($(CONFIG_ADD_XIUOS_FETURES),y)
SRC_DIR += xiuos
ifeq ($(CONFIG_ADD_XIZI_FETURES),y)
SRC_DIR += xizi
endif
include $(KERNEL_ROOT)/compiler.mk
@@ -30,7 +30,7 @@
#ifdef SEPARATE_COMPILE
#include "../../../../../../Ubiquitous/XiUOS/arch/kswitch.h"
#include "../../../../../../Ubiquitous/XiZi/arch/kswitch.h"
#define TASK_INFO 1
#define MEM_INFO 2
@@ -164,7 +164,7 @@ int Userprintf(const char *fmt, ...);
#else
#include <xiuos.h>
#include <xizi.h>
#ifdef FS_VFS
#include <iot-vfs_posix.h>
+1 -1
View File
@@ -4,7 +4,7 @@ ifeq ($(CONFIG_ADD_NUTTX_FETURES),y)
include $(APPDIR)/Application.mk
endif
ifeq ($(CONFIG_ADD_XIUOS_FETURES),y)
ifeq ($(CONFIG_ADD_XIZI_FETURES),y)
SRC_DIR := Applications Framework lib
include $(KERNEL_ROOT)/compiler.mk
endif