From abd8db97afab4af843069eec1ac6458f93528b1c Mon Sep 17 00:00:00 2001 From: Ivan Date: Tue, 29 Aug 2017 05:26:24 +0900 Subject: [PATCH] i2schar: added code to enable I2Schar on Artik Signed-off-by: Ivan --- build/configs/artik053/audio/defconfig | 1256 ++++++++++++++++++++ .../src/artik053/include/artik053_alc5658_i2c.h | 29 + os/arch/arm/src/artik053/src/Makefile | 1 + .../arm/src/artik053/src/artik053_alc5658_i2c.c | 240 ++++ os/arch/arm/src/artik053/src/artik053_boot.c | 5 + 5 files changed, 1531 insertions(+) create mode 100644 build/configs/artik053/audio/defconfig create mode 100644 os/arch/arm/src/artik053/include/artik053_alc5658_i2c.h create mode 100644 os/arch/arm/src/artik053/src/artik053_alc5658_i2c.c diff --git a/build/configs/artik053/audio/defconfig b/build/configs/artik053/audio/defconfig new file mode 100644 index 0000000..e584d0d --- /dev/null +++ b/build/configs/artik053/audio/defconfig @@ -0,0 +1,1256 @@ +# +# Automatically generated file; DO NOT EDIT. +# TinyAra Configuration +# + +# +# Build Setup +# +# CONFIG_EXPERIMENTAL is not set +# CONFIG_DEFAULT_SMALL is not set +CONFIG_HOST_LINUX=y +# CONFIG_HOST_OSX is not set +# CONFIG_HOST_WINDOWS is not set +# CONFIG_HOST_OTHER is not set +# CONFIG_WINDOWS_NATIVE is not set + +# +# Build Configuration +# +CONFIG_APPS_DIR="../apps" +CONFIG_FRAMEWORK_DIR="../framework" +CONFIG_TOOLS_DIR="../tools" +CONFIG_BUILD_FLAT=y +# CONFIG_BUILD_PROTECTED is not set +# CONFIG_BUILD_2PASS is not set + +# +# Binary Output Formats +# +# CONFIG_INTELHEX_BINARY is not set +# CONFIG_MOTOROLA_SREC is not set +CONFIG_RAW_BINARY=y +CONFIG_SAMSUNG_NS2=y +# CONFIG_UBOOT_UIMAGE is not set +# CONFIG_DOWNLOAD_IMAGE is not set +# CONFIG_SMARTFS_IMAGE is not set + +# +# Customize Header Files +# +# CONFIG_ARCH_STDINT_H is not set +# CONFIG_ARCH_STDBOOL_H is not set +# CONFIG_ARCH_MATH_H is not set +# CONFIG_ARCH_FLOAT_H is not set +# CONFIG_ARCH_STDARG_H is not set + +# +# Debug Options +# +CONFIG_DEBUG=y +CONFIG_DEBUG_ERROR=y +# CONFIG_DEBUG_WARN is not set +CONFIG_DEBUG_VERBOSE=y + +# +# Subsystem Debug Options +# +# CONFIG_DEBUG_FS is not set +# CONFIG_DEBUG_LIB is not set +# CONFIG_DEBUG_MM is not set +CONFIG_DEBUG_NET=y +# CONFIG_DEBUG_NET_ERROR is not set +# CONFIG_DEBUG_NET_INFO is not set +# CONFIG_DEBUG_SCHED is not set +# CONFIG_DEBUG_WLAN is not set + +# +# OS Function Debug Options +# +# CONFIG_DEBUG_DMA is not set +# CONFIG_ARCH_HAVE_HEAPCHECK is not set +CONFIG_DEBUG_MM_HEAPINFO=y +# CONFIG_DEBUG_IRQ is not set +# CONFIG_DEBUG_IRQ_INFO is not set + +# +# Driver Debug Options +# +# CONFIG_DEBUG_PWM is not set +# CONFIG_DEBUG_RTC is not set +# CONFIG_DEBUG_SPI is not set +# CONFIG_DEBUG_WATCHDOG is not set +# CONFIG_DEBUG_TTRACE is not set + +# +# Stack Debug Options +# +CONFIG_ARCH_HAVE_STACKCHECK=y +CONFIG_STACK_COLORATION=y + +# +# Build Debug Options +# +CONFIG_DEBUG_SYMBOLS=y +# CONFIG_FRAME_POINTER is not set +CONFIG_ARCH_HAVE_CUSTOMOPT=y +# CONFIG_DEBUG_NOOPT is not set +# CONFIG_DEBUG_CUSTOMOPT is not set +CONFIG_DEBUG_FULLOPT=y + +# +# Chip Selection +# +CONFIG_ARCH_ARM=y +CONFIG_ARCH="arm" + +# +# ARM Options +# +# CONFIG_ARCH_CHIP_LM is not set +CONFIG_ARCH_CHIP_S5J=y +# CONFIG_ARCH_CORTEXM3 is not set +# CONFIG_ARCH_CORTEXM4 is not set +CONFIG_ARCH_CORTEXR4=y +CONFIG_ARCH_FAMILY="armv7-r" +CONFIG_ARCH_CHIP="s5j" +# CONFIG_ARCH_HAVE_FPU is not set +CONFIG_ARMV7M_MPU=y +CONFIG_ARMV7M_MPU_NREGIONS=12 + +# +# Exception stack options +# +CONFIG_ARCH_HAVE_DABORTSTACK=y +CONFIG_ARCH_DABORTSTACK=0 + +# +# ARMv7-R Configuration Options +# +CONFIG_ARMV7R_HAVE_GICv2=y +CONFIG_ARMV7R_MEMINIT=y +CONFIG_ARMV7R_ICACHE=y +CONFIG_ARMV7R_DCACHE=y +# CONFIG_ARMV7R_DCACHE_WRITETHROUGH is not set +# CONFIG_ARMV7R_HAVE_L2CC is not set +# CONFIG_ARMV7R_HAVE_L2CC_PL310 is not set +# CONFIG_ARMV7R_TOOLCHAIN_BUILDROOT is not set +# CONFIG_ARMV7R_TOOLCHAIN_CODESOURCERYL is not set +CONFIG_ARMV7R_TOOLCHAIN_GNU_EABIL=y +# CONFIG_ARMV7R_TOOLCHAIN_GNU_OABI is not set +# CONFIG_ARMV7R_HAVE_DECODEFIQ is not set +# CONFIG_BOOT_RESULT is not set + +# +# S5J Configuration Options +# +CONFIG_ARCH_CHIP_S5JT200=y +CONFIG_S5J_S5JT200=y + +# +# S5J Peripheral Support +# +CONFIG_S5J_HAVE_ADC=y +CONFIG_S5J_HAVE_DMA=y +CONFIG_S5J_HAVE_I2C=y +CONFIG_S5J_HAVE_I2S=y +CONFIG_S5J_HAVE_MCT=y +CONFIG_S5J_HAVE_PWM0=y +CONFIG_S5J_HAVE_PWM1=y +CONFIG_S5J_HAVE_PWM2=y +CONFIG_S5J_HAVE_PWM3=y +CONFIG_S5J_HAVE_PWM4=y +CONFIG_S5J_HAVE_PWM5=y +CONFIG_S5J_HAVE_PWR=y +CONFIG_S5J_HAVE_RTC=y +CONFIG_S5J_HAVE_SFLASH=y +CONFIG_S5J_HAVE_SPI=y +CONFIG_S5J_HAVE_SSS=y +CONFIG_S5J_HAVE_UART0=y +CONFIG_S5J_HAVE_UART1=y +CONFIG_S5J_HAVE_UART2=y +CONFIG_S5J_HAVE_UART3=y +CONFIG_S5J_HAVE_UART4=y +CONFIG_S5J_HAVE_WATCHDOG=y +CONFIG_S5J_ADC=y +CONFIG_S5J_DMA=y +CONFIG_S5J_I2C=y +CONFIG_S5J_I2S=y +CONFIG_S5J_I2S_RX=y +CONFIG_S5J_I2S_TX_P=y +CONFIG_S5J_I2S_TX_S=y +CONFIG_S5J_I2S_MAXINFLIGHT=16 +# CONFIG_S5J_MCT is not set +# CONFIG_S5J_TIMER0 is not set +# CONFIG_S5J_TIMER1 is not set +# CONFIG_S5J_TIMER2 is not set +# CONFIG_S5J_TIMER3 is not set +# CONFIG_S5J_UART_FLOWCONTROL is not set +CONFIG_S5J_UART0=y +CONFIG_S5J_UART1=y +CONFIG_S5J_UART2=y +# CONFIG_S5J_UART2_FLOWCONTROL is not set +CONFIG_S5J_UART3=y +# CONFIG_S5J_UART3_FLOWCONTROL is not set +CONFIG_S5J_UART4=y +CONFIG_S5J_PWM=y +CONFIG_S5J_PWM0=y +CONFIG_S5J_PWM1=y +CONFIG_S5J_PWM2=y +CONFIG_S5J_PWM3=y +CONFIG_S5J_PWM4=y +CONFIG_S5J_PWM5=y +CONFIG_S5J_SSS=y +CONFIG_S5J_SPI=y +CONFIG_S5J_WATCHDOG=y + +# +# Watchdog driver configuration +# +# CONFIG_S5J_WATCHDOG_DEBUG is not set +# CONFIG_S5J_WATCHDOG_INT is not set +# CONFIG_S5J_WATCHDOG_RESET is not set +CONFIG_S5J_WDT_DEFTIMEOUT=7000 +CONFIG_S5J_SFLASH=y +CONFIG_S5J_PWR=y + +# +# PMU Configuration +# +CONFIG_S5J_PWR_DSTOP=y +# CONFIG_S5J_PWR_SLEEP is not set + +# +# Architecture Options +# +# CONFIG_ARCH_NOINTC is not set +# CONFIG_ARCH_VECNOTIRQ is not set +CONFIG_ARCH_DMA=y +# CONFIG_ARCH_HAVE_IRQPRIO is not set +# CONFIG_ARCH_L2CACHE is not set +# CONFIG_ARCH_HAVE_COHERENT_DCACHE is not set +# CONFIG_ARCH_HAVE_ADDRENV is not set +# CONFIG_ARCH_NEED_ADDRENV_MAPPING is not set +CONFIG_ARCH_HAVE_VFORK=y +# CONFIG_ARCH_HAVE_MMU is not set +CONFIG_ARCH_HAVE_MPU=y +# CONFIG_ARCH_NAND_HWECC is not set +# CONFIG_ARCH_HAVE_EXTCLK is not set +# CONFIG_ARCH_HAVE_POWEROFF is not set +CONFIG_ARCH_HAVE_RESET=y +CONFIG_ARCH_USE_MPU=y +CONFIG_ARCH_STACKDUMP=y +# CONFIG_ENDIAN_BIG is not set +# CONFIG_ARCH_IDLE_CUSTOM is not set +CONFIG_ARCH_CUSTOM_PMINIT=y +# CONFIG_ARCH_HAVE_RAMFUNCS is not set +# CONFIG_ARCH_HAVE_RAMVECTORS is not set + +# +# Board Settings +# +CONFIG_BOARD_LOOPSPERMSEC=29100 +# CONFIG_ARCH_CALIBRATION is not set + +# +# Interrupt options +# +CONFIG_ARCH_HAVE_INTERRUPTSTACK=y +CONFIG_ARCH_INTERRUPTSTACK=0 +# CONFIG_ARCH_HAVE_HIPRI_INTERRUPT is not set + +# +# Boot options +# +# CONFIG_BOOT_RUNFROMEXTSRAM is not set +CONFIG_BOOT_RUNFROMFLASH=y +# CONFIG_BOOT_RUNFROMISRAM is not set +# CONFIG_BOOT_RUNFROMSDRAM is not set +# CONFIG_BOOT_COPYTORAM is not set + +# +# Boot Memory Configuration +# +CONFIG_RAM_START=0x02023800 +CONFIG_RAM_SIZE=804864 +# CONFIG_ARCH_HAVE_SDRAM is not set + +# +# Board Selection +# +CONFIG_ARCH_BOARD_ARTIK053=y +# CONFIG_ARCH_BOARD_SIDK_S5JT200 is not set +CONFIG_ARCH_BOARD="artik053" + +# +# Common Board Options +# +# CONFIG_BOARD_CRASHDUMP is not set +CONFIG_LIB_BOARDCTL=y +CONFIG_BOARDCTL_RESET=y +# CONFIG_BOARDCTL_UNIQUEID is not set +# CONFIG_BOARD_COREDUMP_FLASH is not set +# CONFIG_BOARD_FOTA_SUPPORT is not set +# CONFIG_BOARD_RAMDUMP_FLASH is not set +# CONFIG_BOARD_RAMDUMP_UART is not set + +# +# Board-Specific Options +# +CONFIG_ARTIK053_BOOT_FAILURE_DETECTION=y +CONFIG_ARTIK053_BOOT_COUNTS_ADDR=0x80090810 +CONFIG_ARTIK053_FLASH_CAPACITY=8388608 +CONFIG_ARTIK053_FLASH_PAGE_SIZE=4096 +CONFIG_ARTIK053_FLASH_PART=y +CONFIG_ARTIK053_FLASH_MINOR=0 +CONFIG_ARTIK053_FLASH_PART_LIST="16,48,192,32,512,2400,1536,1536,1400,8,512," +CONFIG_ARTIK053_FLASH_PART_TYPE="none,ftl,none,none,none,none,none,ftl,smartfs,config,none," +CONFIG_ARTIK053_FLASH_PART_NAME="bl1,sssro,bl2,sssfw,wlanfw,os,factory,ota,user,nvram,sssrw," +CONFIG_ARTIK053_AUTOMOUNT=y +CONFIG_ARTIK053_AUTOMOUNT_USERFS=y +CONFIG_ARTIK053_AUTOMOUNT_USERFS_DEVNAME="/dev/smart0p8" +CONFIG_ARTIK053_AUTOMOUNT_USERFS_MOUNTPOINT="/mnt" + +# +# RTOS Features +# +CONFIG_DISABLE_OS_API=y +# CONFIG_DISABLE_POSIX_TIMERS is not set +# CONFIG_DISABLE_PTHREAD is not set +# CONFIG_DISABLE_SIGNALS is not set +# CONFIG_DISABLE_MQUEUE is not set +# CONFIG_DISABLE_ENVIRON is not set + +# +# Clocks and Timers +# +CONFIG_ARCH_HAVE_TICKLESS=y +# CONFIG_SCHED_TICKLESS is not set +CONFIG_USEC_PER_TICK=9979 +CONFIG_SYSTEM_TIME64=y +CONFIG_CLOCK_MONOTONIC=y +# CONFIG_JULIAN_TIME is not set +CONFIG_MAX_WDOGPARMS=4 +CONFIG_PREALLOC_WDOGS=32 +CONFIG_WDOG_INTRESERVE=4 +CONFIG_PREALLOC_TIMERS=8 + +# +# Tasks and Scheduling +# +CONFIG_INIT_ENTRYPOINT=y +CONFIG_RR_INTERVAL=100 +CONFIG_TASK_NAME_SIZE=31 +CONFIG_MAX_TASKS=32 +CONFIG_SCHED_HAVE_PARENT=y +# CONFIG_SCHED_CHILD_STATUS is not set +CONFIG_SCHED_WAITPID=y + +# +# Pthread Options +# +CONFIG_PTHREAD_MUTEX_TYPES=y +# CONFIG_PTHREAD_MUTEX_ROBUST is not set +CONFIG_PTHREAD_MUTEX_UNSAFE=y +# CONFIG_PTHREAD_MUTEX_BOTH is not set +CONFIG_NPTHREAD_KEYS=4 +# CONFIG_PTHREAD_CLEANUP is not set +# CONFIG_CANCELLATION_POINTS is not set + +# +# Performance Monitoring +# +# CONFIG_SCHED_CPULOAD is not set +# CONFIG_SCHED_INSTRUMENTATION is not set + +# +# Latency optimization +# +# CONFIG_SCHED_YIELD_OPTIMIZATION is not set + +# +# Files and I/O +# +CONFIG_DEV_CONSOLE=y +# CONFIG_FDCLONE_DISABLE is not set +# CONFIG_FDCLONE_STDIO is not set +# CONFIG_SDCLONE_DISABLE is not set +CONFIG_NFILE_DESCRIPTORS=16 +CONFIG_NFILE_STREAMS=16 +CONFIG_NAME_MAX=32 +CONFIG_PRIORITY_INHERITANCE=y +CONFIG_SEM_PREALLOCHOLDERS=16 +CONFIG_SEM_NNESTPRIO=16 + +# +# RTOS hooks +# +CONFIG_BOARD_INITIALIZE=y +# CONFIG_BOARD_INITTHREAD is not set +# CONFIG_SCHED_STARTHOOK is not set +CONFIG_SCHED_ATEXIT=y +CONFIG_SCHED_ONEXIT=y +CONFIG_SCHED_ONEXIT_MAX=1 + +# +# Signal Numbers +# +CONFIG_SIG_SIGUSR1=1 +CONFIG_SIG_SIGUSR2=2 +CONFIG_SIG_SIGALARM=3 +CONFIG_SIG_SIGCHLD=4 +CONFIG_SIG_SIGCONDTIMEDOUT=16 +CONFIG_SIG_SIGWORK=17 + +# +# POSIX Message Queue Options +# +CONFIG_PREALLOC_MQ_MSGS=4 +CONFIG_MQ_MAXMSGSIZE=600 + +# +# Work Queue Support +# +CONFIG_SCHED_WORKQUEUE=y +CONFIG_SCHED_WORKQUEUE_SORTING=y +CONFIG_SCHED_HPWORK=y +CONFIG_SCHED_HPWORKPRIORITY=224 +CONFIG_SCHED_HPWORKPERIOD=50000 +CONFIG_SCHED_HPWORKSTACKSIZE=2048 +CONFIG_SCHED_LPWORK=y +CONFIG_SCHED_LPNTHREADS=1 +CONFIG_SCHED_LPWORKPRIORITY=176 +CONFIG_SCHED_LPWORKPRIOMAX=176 +CONFIG_SCHED_LPWORKPERIOD=50000 +CONFIG_SCHED_LPWORKSTACKSIZE=2048 + +# +# Stack size information +# +CONFIG_IDLETHREAD_STACKSIZE=1024 +CONFIG_USERMAIN_STACKSIZE=2048 +# CONFIG_MPU_STACKGAURD is not set +CONFIG_PTHREAD_STACK_MIN=256 +CONFIG_PTHREAD_STACK_DEFAULT=2048 + +# +# System Call +# +# CONFIG_LIB_SYSCALL is not set + +# +# Device Drivers +# +# CONFIG_DISABLE_POLL is not set +CONFIG_DEV_NULL=y +CONFIG_DEV_ZERO=y + +# +# Buffering +# +# CONFIG_DRVR_WRITEBUFFER is not set +# CONFIG_DRVR_READAHEAD is not set +# CONFIG_CAN is not set +# CONFIG_ARCH_HAVE_PWM_PULSECOUNT is not set +# CONFIG_ARCH_HAVE_PWM_MULTICHAN is not set +CONFIG_PWM=y +# CONFIG_ARCH_HAVE_I2CRESET is not set +CONFIG_I2C=y +CONFIG_I2C_SLAVE=y +CONFIG_I2C_USERIO=y +CONFIG_I2C_TRANSFER=y +CONFIG_I2C_POLLED=y +# CONFIG_I2C_TRACE is not set +# CONFIG_I2C_WRITEREAD is not set +CONFIG_SPI=y +# CONFIG_SPI_OWNBUS is not set +# CONFIG_SPI_EXCHANGE is not set +# CONFIG_SPI_CMDDATA is not set +# CONFIG_SPI_BITBANG is not set +CONFIG_GPIO=y +CONFIG_I2S=y +CONFIG_AUDIO_DEVICES=y +CONFIG_AUDIO_I2SCHAR=y +CONFIG_AUDIO_I2SCHAR_RXTIMEOUT=0 +CONFIG_AUDIO_I2SCHAR_TXTIMEOUT=0 +# CONFIG_AUDIO_NULL is not set +# CONFIG_AUDIO_ALC5658 is not set +# CONFIG_BCH is not set +CONFIG_RTC=y +CONFIG_RTC_DATETIME=y +# CONFIG_RTC_ALARM is not set +CONFIG_RTC_DRIVER=y +# CONFIG_RTC_IOCTL is not set +CONFIG_WATCHDOG=y +CONFIG_WATCHDOG_DEVPATH="/dev/watchdog0" +# CONFIG_TIMER is not set +CONFIG_ANALOG=y +CONFIG_ADC=y +CONFIG_ADC_FIFOSIZE=8 +# CONFIG_DAC is not set +# CONFIG_LCD is not set +CONFIG_NETDEVICES=y + +# +# General Ethernet MAC Driver Options +# +CONFIG_NETDEV_TELNET=y +CONFIG_NETDEV_MULTINIC=y +# CONFIG_NET_DUMPPACKET is not set + +# +# External Ethernet MAC Device Support +# +# CONFIG_NET_DM90x0 is not set +# CONFIG_ENC28J60 is not set +# CONFIG_ENCX24J600 is not set +# CONFIG_NET_E1000 is not set +# CONFIG_NET_SLIP is not set +# CONFIG_NET_VNET is not set +# CONFIG_PIPES is not set +CONFIG_POWER=y +# CONFIG_BATTERY_CHARGER is not set +# CONFIG_BATTERY_GAUGE is not set +# CONFIG_SERCOMM_CONSOLE is not set +CONFIG_SERIAL=y +# CONFIG_DEV_LOWCONSOLE is not set +# CONFIG_16550_UART is not set +# CONFIG_ARCH_HAVE_UART is not set +CONFIG_ARCH_HAVE_UART0=y +CONFIG_ARCH_HAVE_UART1=y +CONFIG_ARCH_HAVE_UART2=y +CONFIG_ARCH_HAVE_UART3=y +CONFIG_ARCH_HAVE_UART4=y +# CONFIG_ARCH_HAVE_UART5 is not set +# CONFIG_ARCH_HAVE_UART6 is not set +# CONFIG_ARCH_HAVE_UART7 is not set +# CONFIG_ARCH_HAVE_UART8 is not set +# CONFIG_ARCH_HAVE_SCI0 is not set +# CONFIG_ARCH_HAVE_SCI1 is not set +# CONFIG_ARCH_HAVE_USART0 is not set +# CONFIG_ARCH_HAVE_USART1 is not set +# CONFIG_ARCH_HAVE_USART2 is not set +# CONFIG_ARCH_HAVE_USART3 is not set +# CONFIG_ARCH_HAVE_USART4 is not set +# CONFIG_ARCH_HAVE_USART5 is not set +# CONFIG_ARCH_HAVE_USART6 is not set +# CONFIG_ARCH_HAVE_USART7 is not set +# CONFIG_ARCH_HAVE_USART8 is not set +# CONFIG_ARCH_HAVE_OTHER_UART is not set + +# +# USART Configuration +# +CONFIG_MCU_SERIAL=y +CONFIG_STANDARD_SERIAL=y +CONFIG_SERIAL_NPOLLWAITERS=2 +# CONFIG_SERIAL_IFLOWCONTROL is not set +# CONFIG_SERIAL_OFLOWCONTROL is not set +# CONFIG_SERIAL_TIOCSERGSTRUCT is not set +CONFIG_ARCH_HAVE_SERIAL_TERMIOS=y +CONFIG_SERIAL_TERMIOS=y +# CONFIG_UART0_SERIAL_CONSOLE is not set +# CONFIG_UART1_SERIAL_CONSOLE is not set +# CONFIG_UART2_SERIAL_CONSOLE is not set +# CONFIG_UART3_SERIAL_CONSOLE is not set +CONFIG_UART4_SERIAL_CONSOLE=y +# CONFIG_OTHER_SERIAL_CONSOLE is not set +# CONFIG_NO_SERIAL_CONSOLE is not set + +# +# UART0 Configuration +# +CONFIG_UART0_RXBUFSIZE=256 +CONFIG_UART0_TXBUFSIZE=256 +CONFIG_UART0_BAUD=115200 +CONFIG_UART0_BITS=8 +CONFIG_UART0_PARITY=0 +CONFIG_UART0_2STOP=0 +# CONFIG_UART0_IFLOWCONTROL is not set +# CONFIG_UART0_OFLOWCONTROL is not set + +# +# UART1 Configuration +# +CONFIG_UART1_RXBUFSIZE=256 +CONFIG_UART1_TXBUFSIZE=256 +CONFIG_UART1_BAUD=115200 +CONFIG_UART1_BITS=8 +CONFIG_UART1_PARITY=0 +CONFIG_UART1_2STOP=0 +# CONFIG_UART1_IFLOWCONTROL is not set +# CONFIG_UART1_OFLOWCONTROL is not set + +# +# UART2 Configuration +# +CONFIG_UART2_RXBUFSIZE=256 +CONFIG_UART2_TXBUFSIZE=256 +CONFIG_UART2_BAUD=115200 +CONFIG_UART2_BITS=8 +CONFIG_UART2_PARITY=0 +CONFIG_UART2_2STOP=0 +# CONFIG_UART2_IFLOWCONTROL is not set +# CONFIG_UART2_OFLOWCONTROL is not set + +# +# UART3 Configuration +# +CONFIG_UART3_RXBUFSIZE=256 +CONFIG_UART3_TXBUFSIZE=256 +CONFIG_UART3_BAUD=115200 +CONFIG_UART3_BITS=8 +CONFIG_UART3_PARITY=0 +CONFIG_UART3_2STOP=0 +# CONFIG_UART3_IFLOWCONTROL is not set +# CONFIG_UART3_OFLOWCONTROL is not set + +# +# UART4 Configuration +# +CONFIG_UART4_RXBUFSIZE=256 +CONFIG_UART4_TXBUFSIZE=256 +CONFIG_UART4_BAUD=115200 +CONFIG_UART4_BITS=8 +CONFIG_UART4_PARITY=0 +CONFIG_UART4_2STOP=0 +# CONFIG_UART4_IFLOWCONTROL is not set +# CONFIG_UART4_OFLOWCONTROL is not set +# CONFIG_USBDEV is not set +# CONFIG_FOTA_DRIVER is not set + +# +# System Logging +# +# CONFIG_RAMLOG is not set +# CONFIG_SYSLOG_CONSOLE is not set + +# +# T-trace +# +# CONFIG_TTRACE is not set + +# +# Wireless Device Options +# +CONFIG_DRIVERS_WIRELESS=y +CONFIG_SCSC_WLAN=y +# CONFIG_SLSI_RX_PERFORMANCE_TEST is not set +CONFIG_SCSC_TX_FLOW_CONTROL=y +CONFIG_SCSC_ENABLE_PORT_CONTROL=y +# CONFIG_SCSC_WLAN_STA_ONLY is not set +# CONFIG_SCSC_WLAN_BLOCK_IPV6 is not set +# CONFIG_SCSC_WLAN_UDP_FLOWCONTROL is not set +# CONFIG_SCSC_WLAN_AUTO_RECOVERY is not set +CONFIG_SCSC_WLAN_POWER_SAVE=y +CONFIG_SCSC_WLAN_MAX_INTERFACES=1 +CONFIG_SCSC_CORE=y +CONFIG_SCSC_PLATFORM=y +# CONFIG_SCSC_WLANLITE is not set +# CONFIG_SCSC_DISABLE_WLAN_RESET is not set + +# +# Networking Support +# +CONFIG_ARCH_HAVE_NET=y +# CONFIG_ARCH_HAVE_PHY is not set +CONFIG_NET=y +CONFIG_NET_LWIP=y + +# +# LwIP options +# +CONFIG_NET_IPv4=y +CONFIG_NET_IP_DEFAULT_TTL=255 +# CONFIG_NET_IP_FORWARD is not set +CONFIG_NET_IP_OPTIONS_ALLOWED=y +CONFIG_NET_IP_FRAG=y +CONFIG_NET_IP_REASSEMBLY=y +CONFIG_NET_IPV4_REASS_MAX_PBUFS=20 +CONFIG_NET_IPV4_REASS_MAXAGE=5 + +# +# Socket support +# +CONFIG_NET_SOCKET=y +CONFIG_NSOCKET_DESCRIPTORS=8 +CONFIG_NET_TCP_KEEPALIVE=y +CONFIG_NET_RAW=y +# CONFIG_NET_SOCKET_OPTION_BROADCAST is not set +# CONFIG_NET_RANDOMIZE_INITIAL_LOCAL_PORTS is not set +# CONFIG_NET_SO_SNDTIMEO is not set +CONFIG_NET_SO_RCVTIMEO=y +# CONFIG_NET_SO_RCVBUF is not set +CONFIG_NET_SO_REUSE=y +# CONFIG_NET_SO_REUSE_RXTOALL is not set +CONFIG_NET_ARP=y +CONFIG_NET_ARP_TABLESIZE=10 +CONFIG_NET_ARP_QUEUEING=y +CONFIG_NET_ETHARP_TRUST_IP_MAC=y +CONFIG_NET_ETH_PAD_SIZE=0 +# CONFIG_NET_ARP_STATIC_ENTRIES is not set +CONFIG_NET_UDP=y +# CONFIG_NET_NETBUF_RECVINFO is not set +CONFIG_NET_UDP_TTL=255 +# CONFIG_NET_UDPLITE is not set +CONFIG_NET_TCP=y +CONFIG_NET_TCP_TTL=255 +CONFIG_NET_TCP_WND=58400 +CONFIG_NET_TCP_MAXRTX=12 +CONFIG_NET_TCP_SYNMAXRTX=6 +CONFIG_NET_TCP_QUEUE_OOSEQ=y +CONFIG_NET_TCP_MSS=1460 +CONFIG_NET_TCP_CALCULATE_EFF_SEND_MSS=y +CONFIG_NET_TCP_SND_BUF=29200 +CONFIG_NET_TCP_SND_QUEUELEN=80 +# CONFIG_NET_TCP_LISTEN_BACKLOG is not set +CONFIG_NET_TCP_OVERSIZE=536 +# CONFIG_NET_TCP_TIMESTAMPS is not set +CONFIG_NET_TCP_WND_UPDATE_THREASHOLD=536 +CONFIG_NET_ICMP=y +CONFIG_NET_ICMP_TTL=255 +# CONFIG_NET_BROADCAST_PING is not set +# CONFIG_NET_MULTICAST_PING is not set +CONFIG_NET_LWIP_IGMP=y +CONFIG_NET_LWIP_MEMP_NUM_IGMP_GROUP=8 + +# +# LWIP Mailbox Configurations +# +CONFIG_NET_TCPIP_MBOX_SIZE=64 +CONFIG_NET_DEFAULT_ACCEPTMBOX_SIZE=64 +CONFIG_NET_DEFAULT_RAW_RECVMBOX_SIZE=64 +CONFIG_NET_DEFAULT_TCP_RECVMBOX_SIZE=54 +CONFIG_NET_DEFAULT_UDP_RECVMBOX_SIZE=64 + +# +# Memory Configurations +# +CONFIG_NET_MEM_ALIGNMENT=4 +# CONFIG_NET_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT is not set +# CONFIG_NET_MEM_LIBC_MALLOC is not set +CONFIG_NET_MEMP_MEM_MALLOC=y +# CONFIG_NET_MEM_USE_POOLS is not set +CONFIG_NET_MEM_SIZE=153600 + +# +# LWIP Task Configurations +# +# CONFIG_NET_TCPIP_CORE_LOCKING is not set +# CONFIG_NET_TCPIP_CORE_LOCKING_INPUT is not set +CONFIG_NET_TCPIP_THREAD_NAME="LWIP_TCP/IP" +CONFIG_NET_TCPIP_THREAD_PRIO=110 +CONFIG_NET_TCPIP_THREAD_STACKSIZE=4096 +CONFIG_NET_COMPAT_MUTEX=y +CONFIG_NET_SYS_LIGHTWEIGHT_PROT=y +CONFIG_NET_DEFAULT_THREAD_NAME="lwIP" +CONFIG_NET_DEFAULT_THREAD_PRIO=1 +CONFIG_NET_DEFAULT_THREAD_STACKSIZE=0 + +# +# Debug Options for Network +# +# CONFIG_NET_LWIP_DEBUG is not set + +# +# Enable Statistics +# +CONFIG_NET_STATS=y +CONFIG_NET_STATS_DISPLAY=y +CONFIG_NET_LINK_STATS=y +CONFIG_NET_ETHARP_STATS=y +CONFIG_NET_IP_STATS=y +# CONFIG_NET_IPFRAG_STATS is not set +# CONFIG_NET_ICMP_STATS is not set +CONFIG_NET_UDP_STATS=y +CONFIG_NET_TCP_STATS=y +CONFIG_NET_MEM_STATS=y +CONFIG_NET_SYS_STATS=y +# CONFIG_NET_LWIP_VLAN is not set +CONFIG_NET_LWIP_LOOPBACK_INTERFACE=y +# CONFIG_NET_LWIP_SLIP_INTERFACE is not set +# CONFIG_NET_LWIP_PPP_SUPPORT is not set +# CONFIG_NET_LWIP_SNMP is not set +CONFIG_NET_SECURITY_TLS=y +# CONFIG_TLS_WITH_SSS is not set + +# +# Driver buffer configuration +# +CONFIG_NET_MULTIBUFFER=y +CONFIG_NET_ETH_MTU=1500 +CONFIG_NET_GUARDSIZE=2 + +# +# Data link support +# +# CONFIG_NET_MULTILINK is not set +CONFIG_NET_ETHERNET=y + +# +# Network Device Operations +# +# CONFIG_NETDEV_PHY_IOCTL is not set + +# +# Routing Table Configuration +# +# CONFIG_NET_ROUTE is not set + +# +# Audio Support +# +CONFIG_AUDIO=y +# CONFIG_AUDIO_MULTI_SESSION is not set + +# +# Audio Buffer Configuration +# +# CONFIG_AUDIO_LARGE_BUFFERS is not set +CONFIG_AUDIO_NUM_BUFFERS=2 +CONFIG_AUDIO_BUFFER_NUMBYTES=8192 +# CONFIG_AUDIO_DRIVER_SPECIFIC_BUFFERS is not set +CONFIG_DEBUG_AUDIO_ERROR=y +# CONFIG_DEBUG_AUDIO_WARN is not set +# CONFIG_DEBUG_AUDIO_INFO is not set + +# +# Supported Audio Formats +# +# CONFIG_AUDIO_FORMAT_AC3 is not set +# CONFIG_AUDIO_FORMAT_DTS is not set +CONFIG_AUDIO_FORMAT_PCM=y +# CONFIG_AUDIO_FORMAT_MP3 is not set +# CONFIG_AUDIO_FORMAT_MIDI is not set +# CONFIG_AUDIO_FORMAT_WMA is not set +# CONFIG_AUDIO_FORMAT_OGG_VORBIS is not set + +# +# Exclude Specific Audio Features +# +# CONFIG_AUDIO_EXCLUDE_VOLUME is not set +# CONFIG_AUDIO_EXCLUDE_BALANCE is not set +CONFIG_AUDIO_EXCLUDE_EQUALIZER=y +# CONFIG_AUDIO_EXCLUDE_TONE is not set +# CONFIG_AUDIO_EXCLUDE_PAUSE_RESUME is not set +# CONFIG_AUDIO_EXCLUDE_STOP is not set +# CONFIG_AUDIO_EXCLUDE_FFORWARD is not set +CONFIG_AUDIO_EXCLUDE_REWIND=y +# CONFIG_AUDIO_CUSTOM_DEV_PATH is not set + +# +# File Systems +# + +# +# File system configuration +# +# CONFIG_DISABLE_MOUNTPOINT is not set +# CONFIG_DISABLE_PSEUDOFS_OPERATIONS is not set +CONFIG_FS_READABLE=y +CONFIG_FS_WRITABLE=y +# CONFIG_FS_AIO is not set +# CONFIG_FS_NAMED_SEMAPHORES is not set +CONFIG_FS_MQUEUE_MPATH="/var/mqueue" +CONFIG_FS_SMARTFS=y + +# +# SMARTFS options +# +CONFIG_SMARTFS_ERASEDSTATE=0xff +CONFIG_SMARTFS_MAXNAMLEN=32 +# CONFIG_SMARTFS_MULTI_ROOT_DIRS is not set +CONFIG_SMARTFS_ALIGNED_ACCESS=y +# CONFIG_SMARTFS_BAD_SECTOR is not set +# CONFIG_SMARTFS_DYNAMIC_HEADER is not set +# CONFIG_SMARTFS_JOURNALING is not set +# CONFIG_SMARTFS_SECTOR_RECOVERY is not set +CONFIG_FS_PROCFS=y + +# +# Exclude individual procfs entries +# +# CONFIG_FS_PROCFS_EXCLUDE_PROCESS is not set +# CONFIG_FS_PROCFS_EXCLUDE_UPTIME is not set +# CONFIG_FS_PROCFS_EXCLUDE_VERSION is not set +# CONFIG_FS_PROCFS_EXCLUDE_MTD is not set +# CONFIG_FS_PROCFS_EXCLUDE_PARTITIONS is not set +# CONFIG_FS_PROCFS_EXCLUDE_SMARTFS is not set +# CONFIG_FS_PROCFS_EXCLUDE_POWER is not set +# CONFIG_FS_ROMFS is not set + +# +# Block Driver Configurations +# +CONFIG_RAMDISK=y + +# +# MTD Configuration +# +CONFIG_MTD=y +CONFIG_MTD_PARTITION=y +CONFIG_MTD_PARTITION_NAMES=y +CONFIG_MTD_PROGMEM=y +CONFIG_MTD_FTL=y + +# +# MTD_FTL Configurations +# +CONFIG_MTD_CONFIG=y + +# +# MTD Configurations +# +# CONFIG_MTD_CONFIG_RAM_CONSOLIDATE is not set +CONFIG_MTD_CONFIG_ERASEDVALUE=0xff +# CONFIG_MTD_BYTE_WRITE is not set + +# +# MTD Device Drivers +# +# CONFIG_MTD_M25P is not set +# CONFIG_RAMMTD is not set +CONFIG_MTD_SMART=y + +# +# SMART Device options +# +CONFIG_MTD_SMART_SECTOR_SIZE=4096 +# CONFIG_MTD_SMART_WEAR_LEVEL is not set +# CONFIG_MTD_SMART_ENABLE_CRC is not set +# CONFIG_MTD_SMART_SECTOR_ERASE_DEBUG is not set +# CONFIG_MTD_SMART_ALLOC_DEBUG is not set + +# +# System Logging +# +# CONFIG_SYSLOG is not set +# CONFIG_SYSLOG_TIMESTAMP is not set + +# +# Arastorage +# + +# +# AraStorage database configuration +# +# CONFIG_ARASTORAGE is not set + +# +# Memory Management +# +# CONFIG_DISABLE_REALLOC_NEIGHBOR_EXTENTION is not set +# CONFIG_MM_SMALL is not set +CONFIG_MM_REGIONS=1 +# CONFIG_ARCH_HAVE_HEAP2 is not set +# CONFIG_GRAN is not set + +# +# Power Management +# +CONFIG_PM=y +# CONFIG_DEBUG_PM is not set +# CONFIG_PM_TEST is not set +CONFIG_PM_DEVNAME_LEN=32 +# CONFIG_PM_METRICS is not set +CONFIG_PM_SLICEMS=100 +CONFIG_PM_NDOMAINS=1 +CONFIG_PM_MEMORY=2 +CONFIG_PM_COEFN=1 +CONFIG_PM_COEF1=1 +CONFIG_PM_COEF2=1 +CONFIG_PM_COEF3=1 +CONFIG_PM_COEF4=1 +CONFIG_PM_COEF5=1 +CONFIG_PM_IDLEENTER_THRESH=1 +CONFIG_PM_IDLEEXIT_THRESH=2 +CONFIG_PM_IDLEENTER_COUNT=30 +CONFIG_PM_STANDBYENTER_THRESH=1 +CONFIG_PM_STANDBYEXIT_THRESH=2 +CONFIG_PM_STANDBYENTER_COUNT=50 +CONFIG_PM_SLEEPENTER_THRESH=1 +CONFIG_PM_SLEEPEXIT_THRESH=2 +CONFIG_PM_SLEEPENTER_COUNT=70 + +# +# Logger Module +# +CONFIG_LOGM=y +# CONFIG_PRINTF2LOGM is not set +CONFIG_SYSLOG2LOGM=y +# CONFIG_LOGM_TIMESTAMP is not set +CONFIG_LOGM_BUFFER_SIZE=10240 +CONFIG_LOGM_PRINT_INTERVAL=1000 +CONFIG_LOGM_TASK_PRIORITY=110 +CONFIG_LOGM_TASK_STACKSIZE=2048 +# CONFIG_LOGM_TEST is not set + +# +# Library Routines +# + +# +# Standard C Library Options +# +CONFIG_STDIO_BUFFER_SIZE=64 +CONFIG_STDIO_LINEBUFFER=y +CONFIG_NUNGET_CHARS=2 +CONFIG_LIB_HOMEDIR="/" +CONFIG_LIBM=y +# CONFIG_NOPRINTF_FIELDWIDTH is not set +CONFIG_LIBC_FLOATINGPOINT=y +CONFIG_LIBC_IOCTL_VARIADIC=y +CONFIG_LIB_RAND_ORDER=1 +# CONFIG_EOL_IS_CR is not set +# CONFIG_EOL_IS_LF is not set +# CONFIG_EOL_IS_BOTH_CRLF is not set +CONFIG_EOL_IS_EITHER_CRLF=y +CONFIG_POSIX_SPAWN_PROXY_STACKSIZE=1024 +CONFIG_TASK_SPAWN_DEFAULT_STACKSIZE=2048 +CONFIG_LIBC_STRERROR=y +# CONFIG_LIBC_STRERROR_SHORT is not set +# CONFIG_LIBC_PERROR_STDOUT is not set +CONFIG_LIBC_TMPDIR="/tmp" +CONFIG_LIBC_MAX_TMPFILE=32 +CONFIG_ARCH_LOWPUTC=y +CONFIG_LIBC_LOCALTIME=y +CONFIG_LIBC_TZ_MAX_TIMES=8 +CONFIG_LIBC_TZ_MAX_TYPES=8 +CONFIG_LIBC_TZDIR="/etc/zoneinfo" +CONFIG_LIB_SENDFILE_BUFSIZE=512 +CONFIG_ARCH_OPTIMIZED_FUNCTIONS=y +# CONFIG_ARCH_MEMCPY is not set +CONFIG_MEMCPY_VIK=y +# CONFIG_MEMCPY_PRE_INC_PTRS is not set +CONFIG_MEMCPY_INDEXED_COPY=y +# CONFIG_MEMCPY_64BIT is not set +# CONFIG_ARCH_MEMCMP is not set +# CONFIG_ARCH_MEMMOVE is not set +# CONFIG_ARCH_MEMSET is not set +# CONFIG_MEMSET_OPTSPEED is not set +# CONFIG_ARCH_STRCHR is not set +# CONFIG_ARCH_STRCMP is not set +# CONFIG_ARCH_STRCPY is not set +# CONFIG_ARCH_STRNCPY is not set +# CONFIG_ARCH_STRLEN is not set +# CONFIG_ARCH_STRNLEN is not set +# CONFIG_ARCH_BZERO is not set +CONFIG_LIBC_NETDB=y +# CONFIG_NETDB_HOSTFILE is not set +CONFIG_NETDB_DNSCLIENT=y +CONFIG_NETDB_DNSCLIENT_ENTRIES=8 +CONFIG_NETDB_DNSCLIENT_NAMESIZE=32 +CONFIG_NETDB_DNSCLIENT_LIFESEC=3600 +CONFIG_NETDB_DNSCLIENT_MAXRESPONSE=512 +# CONFIG_NETDB_RESOLVCONF is not set +CONFIG_NETDB_DNSSERVER_BY_DHCP=y +# CONFIG_NETDB_DNSSERVER_IPv4 is not set + +# +# Non-standard Library Support +# + +# +# Basic CXX Support +# +# CONFIG_C99_BOOL8 is not set +# CONFIG_HAVE_CXX is not set + +# +# External Functions +# +# CONFIG_LWM2M_WAKAAMA is not set +# CONFIG_DM is not set + +# +# IOTIVITY Config Parameters +# +# CONFIG_ENABLE_IOTIVITY is not set +# CONFIG_LIBTUV is not set +# CONFIG_AWS_SDK is not set + +# +# Application Configuration +# +CONFIG_ENTRY_MANUAL=y + +# +# Application entry point list +# +# CONFIG_ENTRY_HELLO is not set +CONFIG_USER_ENTRYPOINT="hello_main" +CONFIG_BUILTIN_APPS=y + +# +# Examples +# +# CONFIG_EXAMPLES_ARTIK_DEMO is not set +# CONFIG_EXAMPLES_AWS is not set +# CONFIG_EXAMPLES_DNSCLIENT_TEST is not set +# CONFIG_EXAMPLES_DTLS_CLIENT is not set +# CONFIG_EXAMPLES_DTLS_SERVER is not set +# CONFIG_EXAMPLES_EASYSETUP is not set +# CONFIG_EXAMPLES_EEPROM_TEST is not set +# CONFIG_EXAMPLES_FOTA_SAMPLE is not set +# CONFIG_EXAMPLES_FTPC is not set +CONFIG_EXAMPLES_HELLO=y +# CONFIG_EXAMPLES_HELLO_TASH is not set +# CONFIG_EXAMPLES_HELLOXX is not set +CONFIG_EXAMPLES_I2SCHAR=y +CONFIG_EXAMPLES_I2SCHAR_DEVPATH="/dev/i2schar0" +CONFIG_EXAMPLES_I2SCHAR_TX=y +CONFIG_EXAMPLES_I2SCHAR_TXBUFFERS=4 +CONFIG_EXAMPLES_I2SCHAR_TXSTACKSIZE=1536 +CONFIG_EXAMPLES_I2SCHAR_RX=y +CONFIG_EXAMPLES_I2SCHAR_RXBUFFERS=4 +CONFIG_EXAMPLES_I2SCHAR_RXSTACKSIZE=1536 +CONFIG_EXAMPLES_I2SCHAR_BUFSIZE=8192 +CONFIG_EXAMPLES_I2SCHAR_DEVINIT=y +# CONFIG_EXAMPLES_IOTBUS_TEST is not set +# CONFIG_EXAMPLES_IPERF is not set +# CONFIG_EXAMPLES_KERNEL_SAMPLE is not set +# CONFIG_EXAMPLES_LIBTUV is not set +# CONFIG_EXAMPLES_MDNS_TEST is not set +# CONFIG_EXAMPLES_MQTT_TEST is not set +# CONFIG_EXAMPLES_MTDPART is not set +# CONFIG_EXAMPLES_NETTEST is not set +# CONFIG_EXAMPLES_NTPCLIENT_TEST is not set +# CONFIG_EXAMPLES_NXPLAYER is not set +# CONFIG_EXAMPLES_PROC_TEST is not set +# CONFIG_EXAMPLES_SELECT_TEST is not set +# CONFIG_EXAMPLES_SENSORBOARD is not set +CONFIG_EXAMPLES_SLSIWIFI=y +CONFIG_EXAMPLES_SLSIWIFI_PRIORITY=50 +CONFIG_EXAMPLES_SLSIWIFI_STACKSIZE=2048 +# CONFIG_EXAMPLES_SMART is not set +# CONFIG_EXAMPLES_SMART_TEST is not set +# CONFIG_EXAMPLES_SMTPCLIENT is not set +# CONFIG_EXAMPLES_SYSIO_TEST is not set +# CONFIG_EXAMPLES_TESTCASE is not set +# CONFIG_EXAMPLES_TLS_CLIENT is not set +# CONFIG_EXAMPLES_TLS_SELFTEST is not set +# CONFIG_EXAMPLES_TLS_SERVER is not set +# CONFIG_EXAMPLES_WAVE_GEN is not set +# CONFIG_EXAMPLES_WEBCLIENT is not set +# CONFIG_EXAMPLES_WEBSERVER is not set +# CONFIG_EXAMPLES_WEBSOCKET is not set +# CONFIG_EXAMPLES_WIFI_TEST is not set +# CONFIG_EXAMPLES_WORKQUEUE is not set + +# +# Network Utilities +# +# CONFIG_NETUTILS_CODECS is not set +CONFIG_NETUTILS_DHCPC=y +CONFIG_NETUTILS_DHCPD=y +CONFIG_NETUTILS_DHCPD_IGNOREBROADCAST=y +CONFIG_NETUTILS_DHCPD_INTERFACE="wl1" +CONFIG_NETUTILS_DHCPD_LEASETIME=864000 +CONFIG_NETUTILS_DHCPD_MINLEASETIME=86400 +CONFIG_NETUTILS_DHCPD_MAXLEASETIME=2592000 +CONFIG_NETUTILS_DHCPD_MAXLEASES=6 +CONFIG_NETUTILS_DHCPD_STARTIP=0xc0a82f02 +CONFIG_NETUTILS_DHCPD_ROUTERIP=0xc0a82f01 +CONFIG_NETUTILS_DHCPD_NETMASK=0xffffff00 +CONFIG_NETUTILS_DHCPD_DNSIP=0x08080808 +CONFIG_NETUTILS_DHCPD_OFFERTIME=3600 +CONFIG_NETUTILS_DHCPD_DECLINETIME=3600 +CONFIG_NETUTILS_FTPC=y +# CONFIG_DEBUG_FTPC is not set +# CONFIG_NETUTILS_FTPD is not set +CONFIG_NETUTILS_JSON=y +# CONFIG_NETUTILS_LIBCOAP is not set +CONFIG_NETUTILS_MDNS=y +# CONFIG_NETUTILS_MDNS_RESPONDER_SUPPORT is not set +# CONFIG_NETUTILS_MDNS_XMDNS is not set +CONFIG_NETUTILS_MQTT=y +CONFIG_NETUTILS_MQTT_SECURITY=y +CONFIG_NETUTILS_NETLIB=y +CONFIG_NETUTILS_NTPCLIENT=y +CONFIG_NETUTILS_NTPCLIENT_STACKSIZE=2048 +CONFIG_NETUTILS_NTPCLIENT_SERVERPRIO=100 +CONFIG_NETUTILS_NTPCLIENT_SIGWAKEUP=18 +CONFIG_NETUTILS_SMTP=y +# CONFIG_NETUTILS_TELNETD is not set +# CONFIG_NETUTILS_TFTPC is not set +CONFIG_NETUTILS_WEBCLIENT=y +CONFIG_WGET_USERAGENT="TinyARA" +CONFIG_NETUTILS_WEBSERVER=y +# CONFIG_NETUTILS_WEBSERVER_LOGD is not set +# CONFIG_NETUTILS_WEBSERVER_LOGE is not set +CONFIG_NETUTILS_WEBSOCKET=y +CONFIG_NETUTILS_WIFI=y +CONFIG_SLSI_WIFI_DEFAULT_WLAN_COUNTRY_CODE="00" +CONFIG_SLSI_WIFI_DEFAULT_WLAN_TX_POWER=30 +# CONFIG_SLSI_WIFI_FILESYSTEM_SUPPORT is not set +# CONFIG_NETUTILS_XMLRPC is not set + +# +# Platform-specific Support +# +# CONFIG_PLATFORM_CONFIGDATA is not set + +# +# Shell +# +CONFIG_TASH=y +CONFIG_TASH_MAX_COMMANDS=128 +# CONFIG_DEBUG_TASH is not set +# CONFIG_TASH_COMMAND_INTERFACE is not set +CONFIG_TASH_CMDTASK_STACKSIZE=4096 +CONFIG_TASH_CMDTASK_PRIORITY=100 + +# +# System Libraries and Add-Ons +# +# CONFIG_SYSTEM_CLE is not set +# CONFIG_SYSTEM_CUTERM is not set +# CONFIG_SYSTEM_FOTA_HAL is not set +# CONFIG_SYSTEM_I2CTOOL is not set +# CONFIG_SYSTEM_INIFILE is not set +CONFIG_SYSTEM_PREAPP_INIT=y +CONFIG_SYSTEM_PREAPP_STACKSIZE=2048 +# CONFIG_SYSTEM_INSTALL is not set +# CONFIG_SYSTEM_NETDB is not set +# CONFIG_SYSTEM_POWEROFF is not set +CONFIG_SYSTEM_RAMTEST=y +CONFIG_SYSTEM_READLINE=y +CONFIG_READLINE_ECHO=y +CONFIG_SYSTEM_INFORMATION=y +CONFIG_KERNEL_CMDS=y +CONFIG_FS_CMDS=y +CONFIG_FSCMD_BUFFER_LEN=32 +CONFIG_NET_CMDS=y +CONFIG_ENABLE_DATE=y +CONFIG_ENABLE_ENV_GET=y +CONFIG_ENABLE_ENV_SET=y +CONFIG_ENABLE_ENV_UNSET=y +CONFIG_ENABLE_FREE=y +CONFIG_ENABLE_HEAPINFO=y +# CONFIG_ENABLE_IRQINFO is not set +CONFIG_ENABLE_KILL=y +CONFIG_ENABLE_KILLALL=y +CONFIG_ENABLE_PS=y +CONFIG_ENABLE_STACKMONITOR=y +CONFIG_STACKMONITOR_PRIORITY=100 +CONFIG_STACKMONITOR_INTERVAL=5 +CONFIG_ENABLE_UPTIME=y +# CONFIG_SYSTEM_VI is not set + +# +# wpa_supplicant +# +CONFIG_WPA_SUPPLICANT=y +CONFIG_WPA_SUPPLICANT_PRIORITY=100 +CONFIG_WPA_SUPPLICANT_STACKSIZE=16384 +CONFIG_WPA_SUPPLICANT_ENTRYPOINT="wpa_supplicant_main" +CONFIG_CTRL_IFACE=y +CONFIG_CTRL_IFACE_FIFO=y +CONFIG_WPA_CTRL_FIFO_DEV_REQ="/dev/wpa_ctrl_req" +CONFIG_WPA_CTRL_FIFO_DEV_CFM="/dev/wpa_ctrl_cfm" +CONFIG_WPA_CTRL_FIFO_DEV_GLOBAL_REQ="/dev/wpa_ctrl_global_req" +CONFIG_WPA_CTRL_FIFO_DEV_GLOBAL_CFM="/dev/wpa_ctrl_global_cfm" +CONFIG_WPA_MONITOR_FIFO_DEV="/dev/wpa_monitor" +CONFIG_WPA_CTRL_FIFO_MK_MODE=666 +CONFIG_ELOOP_POLL=y +# CONFIG_WPA_SUPPLICANT_CMD is not set diff --git a/os/arch/arm/src/artik053/include/artik053_alc5658_i2c.h b/os/arch/arm/src/artik053/include/artik053_alc5658_i2c.h new file mode 100644 index 0000000..ae2d70a --- /dev/null +++ b/os/arch/arm/src/artik053/include/artik053_alc5658_i2c.h @@ -0,0 +1,29 @@ +/**************************************************************************** + * + * Copyright 2016 Samsung Electronics All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific + * language governing permissions and limitations under the License. + * + ****************************************************************************/ + +typedef int (*alc_write)(uint16_t addr, uint16_t data); +typedef int (*alc_read)(uint16_t addr, uint16_t *data); +typedef int (*alc_modify)(uint16_t addr, uint16_t set, uint16_t clear); + +typedef struct { + alc_write write; + alc_read read; + alc_modify modify; +} i2c_alc; + +i2c_alc *alc5658_i2c_initialize(void); diff --git a/os/arch/arm/src/artik053/src/Makefile b/os/arch/arm/src/artik053/src/Makefile index eb1af26..4670ef0 100644 --- a/os/arch/arm/src/artik053/src/Makefile +++ b/os/arch/arm/src/artik053/src/Makefile @@ -62,6 +62,7 @@ CSRCS = artik053_boot.c \ ifeq ($(CONFIG_AUDIO_I2SCHAR),y) ifeq ($(CONFIG_S5J_I2S),y) CSRCS += artik053_i2schar.c +CSRCS += artik053_alc5658_i2c.c endif endif diff --git a/os/arch/arm/src/artik053/src/artik053_alc5658_i2c.c b/os/arch/arm/src/artik053/src/artik053_alc5658_i2c.c new file mode 100644 index 0000000..4ef7e96 --- /dev/null +++ b/os/arch/arm/src/artik053/src/artik053_alc5658_i2c.c @@ -0,0 +1,240 @@ +/**************************************************************************** + * + * Copyright 2016 Samsung Electronics All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific + * language governing permissions and limitations under the License. + * + ****************************************************************************/ + +/**************************************************************************** + * Included Files + ****************************************************************************/ +#include +#include +#include +#include +#include + +#include +#include +#include +#include + +/**************************************************************************** + * Pre-processor Definitions + ****************************************************************************/ +#define ALC5658_ADDR 0x1A +#define CONFIG_ALC5658_I2C_PORT 1 +#define CONFIG_ALC5658_I2C_FREQ 100000 +#define CONFIG_ALC5658_I2C_ADDRLEN 7 +/**************************************************************************** + * Private Functions prototypes + ****************************************************************************/ +static int alc5658_write(uint16_t addr, uint16_t data); +static int alc5658_read(uint16_t addr, uint16_t *data); +static int alc5658_modify(uint16_t addr, uint16_t set, uint16_t clear); + +/************************************************************************************ + * Private Types + ************************************************************************************/ +typedef struct { + uint16_t addr; + uint16_t val; + unsigned int delay; +} t_codec_init_script_entry; + +/**************************************************************************** + * Private Data + ****************************************************************************/ +static struct i2c_dev_s *i2c_dev; +static struct i2c_config_s configs; + +static i2c_alc i2c_alc5658 = { + .write = alc5658_write, + .read = alc5658_read, + .modify = alc5658_modify, +}; + +/*This init script enables codec audio output */ +/* Uncomment when it is needed +static t_codec_init_script_entry codec_reset_script[] = { + {0x0000, 0x0000, 0}, +}; +*/ + +/*This init script enables codec audio output */ +static t_codec_init_script_entry codec_init_script[] = { + {0x0000, 0x0000, 0}, + {0x006E, 0xFFFF, 0}, + {0x006F, 0xFFFF, 0}, + {0x0080, 0x8000, 0}, + {0x0094, 0x0280, 0}, + {0x0111, 0xA502, 0}, + {0x0125, 0x0430, 0}, + {0x013A, 0x3020, 0}, + {0x0073, 0x1770, 0}, + + //{0x0070, 0x8020, 0}, + {0x0070, 0x0000, 0}, + {0x007B, 0x0003, 0}, + + {0x00FA, 0x0001, 0}, + {0x0091, 0x0C16, 0}, + {0x0063, 0xA23E, 60}, + {0x0063, 0xF23E, 50}, + {0x0062, 0x0400, 50}, + {0x0061, 0x8080, 10}, + {0x0029, 0x8080, 0}, + {0x002A, 0xAAAA, 0}, + {0x002D, 0x0000, 0}, + {0x008E, 0x0009, 50}, + {0x0061, 0x8C80, 50}, + {0x0091, 0x0E16, 50}, + {0x0040, 0x0505, 0}, + {0x0065, 0x0180, 0}, + {0x013C, 0x3C05, 0}, + {0x01DF, 0x02C1, 0}, + {0x01DF, 0x2CC1, 0}, + {0x01DE, 0x5100, 0}, + {0x01E4, 0x0014, 0}, + {0x01DE, 0xD100, 30}, + {0x01DF, 0x2CC1, 0}, + {0x01DE, 0x4900, 0}, + {0x01E4, 0x0016, 0}, + {0x01DE, 0xC900, 250}, + {0x01DF, 0x2CC1, 0}, + {0x0002, 0x0000, 0}, + {0x01DE, 0x4500, 0}, + {0x01E4, 0x001F, 0}, + {0x01DE, 0xC500, 800}, + {0x0040, 0x0808, 0}, + {0x0065, 0x0000, 0}, + {0x013C, 0x2005, 0}, + {0x01E4, 0x0000, 0}, + {0x01DF, 0x20C0, 0}, + {0x0073, 0x0770, 0}, + {0x0080, 0x0000, 0}, + {0x0160, 0x8EC0, 0}, + {0x008E, 0x0019, 0}, + {0x0015, 0xC0F0, 0}, + {0x0015, 0x87F9, 0}, + {0x0094, 0x0180, 0}, + {0x00FB, 0x3000, 0}, +}; + +/**************************************************************************** + * Private Functions + ****************************************************************************/ + +static int alc5658_write(uint16_t addr, uint16_t data) +{ + int32_t ret; + uint8_t reg[4]; + + reg[0] = ((char *)&addr)[1]; + reg[1] = ((char *)&addr)[0]; + + reg[2] = ((char *)&data)[1]; + reg[3] = ((char *)&data)[0]; + + ret = i2c_write(i2c_dev, &configs, (uint8_t *) reg, 4); + + return ret; +} + +static int alc5658_read(uint16_t addr, uint16_t *data) +{ + int32_t ret; + uint8_t reg[2]; + reg[0] = ((char *)&addr)[1]; + reg[1] = ((char *)&addr)[0]; + + ret = i2c_write(i2c_dev, &configs, reg, 2); + ret = i2c_read(i2c_dev, &configs, reg, 2); + + ((char *)data)[0] = reg[1]; + ((char *)data)[1] = reg[0]; + + return *data; +} + +static int alc5658_modify(uint16_t addr, uint16_t set, uint16_t clear) +{ + uint16_t data; + + alc5658_read(addr, &data); + data &= ~clear; + data |= set; + + alc5658_write(addr, data); + alc5658_read(addr, &data); + return data; +} + +static void delay(unsigned int mS) +{ + volatile systime_t start = clock_systimer(); + + mS = mS / MSEC_PER_TICK + 1; + + while (1) + if ((start + mS) < clock_systimer()) { + return; + } +} + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: alc5658_i2c_initialize + * + * Description: + * Initialize i2c interface to access ALC5658 codec. + * Returns methods to communicate with codec + * + * Input Parameters: + * None + * + * Returned Value: + * pointer to i2c_alc operations structure, or NULL in case of errors + * + ****************************************************************************/ + +i2c_alc *alc5658_i2c_initialize(void) +{ + i2c_alc *i2c; + int i; + int ret; + + i2c_dev = up_i2cinitialize(CONFIG_ALC5658_I2C_PORT); + if (i2c_dev == NULL) { + i2cerr("ALC5658 up_i2cinitialize(port: %d) failed\n", CONFIG_ALC5658_I2C_PORT); + return NULL; + } + + configs.frequency = CONFIG_ALC5658_I2C_FREQ; + configs.address = ALC5658_ADDR; + configs.addrlen = CONFIG_ALC5658_I2C_ADDRLEN; + + i2c = &i2c_alc5658; + + for (i = 0; i < sizeof(codec_init_script) / sizeof(t_codec_init_script_entry); i++) { + ret = i2c->modify(codec_init_script[i].addr, codec_init_script[i].val, 0xFFFF); + audvdbg("ALC %x <- %x\n", codec_init_script[i].addr, ret); + delay(codec_init_script[i].delay); + } + + return i2c; +} diff --git a/os/arch/arm/src/artik053/src/artik053_boot.c b/os/arch/arm/src/artik053/src/artik053_boot.c index 2a6b2db..4f5901d 100644 --- a/os/arch/arm/src/artik053/src/artik053_boot.c +++ b/os/arch/arm/src/artik053/src/artik053_boot.c @@ -61,6 +61,7 @@ #include +#include #include "up_arch.h" #include "s5j_gpio.h" @@ -214,10 +215,14 @@ void board_initialize(void) board_gpio_initialize(); board_i2c_initialize(); + #if defined(CONFIG_AUDIO_ALC5658) s5j_alc5658_initialize(0); #elif defined(CONFIG_AUDIO_ALC5658CHAR) s5j_alc5658char_initialize(0); +#elif defined(CONFIG_AUDIO_I2SCHAR) + alc5658_i2c_initialize(); + i2schar_devinit(); #endif } #endif /* CONFIG_BOARD_INITIALIZE */ -- 2.7.4