forked from xuos/xiuos
				
			add touchnsh/defconfig
This commit is contained in:
		
							parent
							
								
									6794cb03a8
								
							
						
					
					
						commit
						490d372b47
					
				| 
						 | 
					@ -0,0 +1,63 @@
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# This file is autogenerated: PLEASE DO NOT EDIT IT.
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# You can use "make menuconfig" to make any modifications to the installed .config file.
 | 
				
			||||||
 | 
					# You can then do "make savedefconfig" to generate a new defconfig file that includes your
 | 
				
			||||||
 | 
					# modifications.
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# CONFIG_NSH_DISABLE_LOSMART is not set
 | 
				
			||||||
 | 
					# CONFIG_STANDARD_SERIAL is not set
 | 
				
			||||||
 | 
					CONFIG_ADD_NUTTX_FETURES=y
 | 
				
			||||||
 | 
					CONFIG_ARCH="risc-v"
 | 
				
			||||||
 | 
					CONFIG_ARCH_BOARD="xidatong-riscv64"
 | 
				
			||||||
 | 
					CONFIG_ARCH_BOARD_XIDATONG_RISCV64=y
 | 
				
			||||||
 | 
					CONFIG_ARCH_CHIP="k210"
 | 
				
			||||||
 | 
					CONFIG_ARCH_CHIP_K210=y
 | 
				
			||||||
 | 
					CONFIG_ARCH_INTERRUPTSTACK=2048
 | 
				
			||||||
 | 
					CONFIG_ARCH_RISCV=y
 | 
				
			||||||
 | 
					CONFIG_ARCH_STACKDUMP=y
 | 
				
			||||||
 | 
					CONFIG_BINFMT_DISABLE=y
 | 
				
			||||||
 | 
					CONFIG_BOARD_LOOPSPERMSEC=46000
 | 
				
			||||||
 | 
					CONFIG_BUILTIN=y
 | 
				
			||||||
 | 
					CONFIG_DEBUG_FULLOPT=y
 | 
				
			||||||
 | 
					CONFIG_DEBUG_SYMBOLS=y
 | 
				
			||||||
 | 
					CONFIG_EXAMPLES_HELLO=y
 | 
				
			||||||
 | 
					CONFIG_IDLETHREAD_STACKSIZE=2048
 | 
				
			||||||
 | 
					CONFIG_INIT_ENTRYPOINT="nsh_main"
 | 
				
			||||||
 | 
					CONFIG_INIT_STACKSIZE=3072
 | 
				
			||||||
 | 
					CONFIG_INTELHEX_BINARY=y
 | 
				
			||||||
 | 
					CONFIG_LIBC_PERROR_STDOUT=y
 | 
				
			||||||
 | 
					CONFIG_LIBC_STRERROR=y
 | 
				
			||||||
 | 
					CONFIG_NSH_ARCHINIT=y
 | 
				
			||||||
 | 
					CONFIG_NSH_BUILTIN_APPS=y
 | 
				
			||||||
 | 
					CONFIG_NSH_DISABLE_IFUPDOWN=y
 | 
				
			||||||
 | 
					CONFIG_NSH_DISABLE_MKDIR=y
 | 
				
			||||||
 | 
					CONFIG_NSH_DISABLE_RM=y
 | 
				
			||||||
 | 
					CONFIG_NSH_DISABLE_RMDIR=y
 | 
				
			||||||
 | 
					CONFIG_NSH_DISABLE_UMOUNT=y
 | 
				
			||||||
 | 
					CONFIG_NSH_READLINE=y
 | 
				
			||||||
 | 
					CONFIG_NSH_STRERROR=y
 | 
				
			||||||
 | 
					CONFIG_PREALLOC_TIMERS=4
 | 
				
			||||||
 | 
					CONFIG_RAM_SIZE=2097152
 | 
				
			||||||
 | 
					CONFIG_RAM_START=0x80400000
 | 
				
			||||||
 | 
					CONFIG_RAW_BINARY=y
 | 
				
			||||||
 | 
					CONFIG_READLINE_CMD_HISTORY=y
 | 
				
			||||||
 | 
					CONFIG_READLINE_CMD_HISTORY_LEN=100
 | 
				
			||||||
 | 
					CONFIG_READLINE_CMD_HISTORY_LINELEN=120
 | 
				
			||||||
 | 
					CONFIG_RR_INTERVAL=200
 | 
				
			||||||
 | 
					CONFIG_SCHED_WAITPID=y
 | 
				
			||||||
 | 
					CONFIG_STACK_COLORATION=y
 | 
				
			||||||
 | 
					CONFIG_START_DAY=28
 | 
				
			||||||
 | 
					CONFIG_START_MONTH=12
 | 
				
			||||||
 | 
					CONFIG_START_YEAR=2019
 | 
				
			||||||
 | 
					CONFIG_SYSTEM_NSH=y
 | 
				
			||||||
 | 
					CONFIG_TASK_NAME_SIZE=20
 | 
				
			||||||
 | 
					CONFIG_TESTING_GETPRIME=y
 | 
				
			||||||
 | 
					CONFIG_UART0_SERIAL_CONSOLE=y
 | 
				
			||||||
 | 
					CONFIG_READLINE_TABCOMPLETION=y
 | 
				
			||||||
 | 
					CONFIG_SCHED_HPWORK=y
 | 
				
			||||||
 | 
					CONFIG_DEV_GPIO=y
 | 
				
			||||||
 | 
					CONFIG_BOARDCTL_RESET=y
 | 
				
			||||||
 | 
					CONFIG_K210_16550_UART=y
 | 
				
			||||||
 | 
					CONFIG_K210_16550_UART3=y
 | 
				
			||||||
 | 
					CONFIG_BSP_USING_TOUCH=y
 | 
				
			||||||
| 
						 | 
					@ -555,6 +555,10 @@ config NSH_DISABLE_W5500
 | 
				
			||||||
	bool "Disable the w5500 demo."
 | 
						bool "Disable the w5500 demo."
 | 
				
			||||||
	default n
 | 
						default n
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					config NSH_DISABLE_TOUCH
 | 
				
			||||||
 | 
						bool "Disable the gt911 touch screen demo."
 | 
				
			||||||
 | 
						default n
 | 
				
			||||||
 | 
					
 | 
				
			||||||
config NSH_DISABLE_CH438
 | 
					config NSH_DISABLE_CH438
 | 
				
			||||||
	bool "Disable the ch438 demo."
 | 
						bool "Disable the ch438 demo."
 | 
				
			||||||
	default n
 | 
						default n
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1458,6 +1458,10 @@ int nsh_foreach_var(FAR struct nsh_vtbl_s *vtbl, nsh_foreach_var_t cb,
 | 
				
			||||||
  int cmd_w5500(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv);
 | 
					  int cmd_w5500(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv);
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if defined(CONFIG_BSP_USING_TOUCH) && !defined(CONFIG_NSH_DISABLE_TOUCH)
 | 
				
			||||||
 | 
					  int cmd_Touch(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv);
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if defined(CONFIG_BSP_USING_CH438) && !defined(CONFIG_NSH_DISABLE_CH438)
 | 
					#if defined(CONFIG_BSP_USING_CH438) && !defined(CONFIG_NSH_DISABLE_CH438)
 | 
				
			||||||
  int cmd_Ch438(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv);
 | 
					  int cmd_Ch438(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv);
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -64,6 +64,19 @@ int cmd_w5500(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/****************************************************************************
 | 
				
			||||||
 | 
					 * Name: cmd_Touch
 | 
				
			||||||
 | 
					 ****************************************************************************/
 | 
				
			||||||
 | 
					#if defined(CONFIG_BSP_USING_TOUCH) && !defined(CONFIG_NSH_DISABLE_TOUCH)
 | 
				
			||||||
 | 
					extern void GT911_test(void);
 | 
				
			||||||
 | 
					int cmd_Touch(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    nsh_output(vtbl, "Hello, world!\n");
 | 
				
			||||||
 | 
					    GT911_test();
 | 
				
			||||||
 | 
					    return OK;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/****************************************************************************
 | 
					/****************************************************************************
 | 
				
			||||||
 * Name: cmd_Ch438
 | 
					 * Name: cmd_Ch438
 | 
				
			||||||
 ****************************************************************************/
 | 
					 ****************************************************************************/
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -604,6 +604,10 @@ static const struct cmdmap_s g_cmdmap[] =
 | 
				
			||||||
  { "w5500",    cmd_w5500,     1, 1, "[w5500 demo cmd.]" },
 | 
					  { "w5500",    cmd_w5500,     1, 1, "[w5500 demo cmd.]" },
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if defined(CONFIG_BSP_USING_TOUCH) && !defined(CONFIG_NSH_DISABLE_TOUCH)
 | 
				
			||||||
 | 
					  { "touch",    cmd_Touch,     1, 1, "[gt911 touch screen demo cmd.]" },
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if defined(CONFIG_BSP_USING_CH438) && !defined(CONFIG_NSH_DISABLE_CH438)
 | 
					#if defined(CONFIG_BSP_USING_CH438) && !defined(CONFIG_NSH_DISABLE_CH438)
 | 
				
			||||||
  { "ch438",    cmd_Ch438,     1, 1, "[ch438 demo cmd.]" },
 | 
					  { "ch438",    cmd_Ch438,     1, 1, "[ch438 demo cmd.]" },
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue