diff --git a/bsp/ti/c28x/libraries/HAL_Drivers/SConscript b/bsp/ti/c28x/libraries/HAL_Drivers/SConscript new file mode 100644 index 0000000000..1ee7dd9885 --- /dev/null +++ b/bsp/ti/c28x/libraries/HAL_Drivers/SConscript @@ -0,0 +1,32 @@ +Import('RTT_ROOT') +Import('rtconfig') +from building import * + +cwd = GetCurrentDir() + +# add the general drivers. +src = [] + +if GetDepend(['BSP_USING_GPIO']): + src += ['drv_gpio.c'] + +if GetDepend(['BSP_USING_UART']): + src += ['drv_sci.c'] + +if GetDepend(['BSP_USING_PWM']): + src += ['drv_pwm.c'] + +if GetDepend(['BSP_USING_SPI']): + src += ['drv_spi.c'] + +if GetDepend(['BSP_USING_ADC']): + src += Glob('drv_adc.c') + +# src += ['drv_common.c'] + +path = [cwd] +path += [cwd + '/config'] + +group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path) + +Return('group') diff --git a/bsp/ti/c28x/libraries/tms320f28379d/SConscript b/bsp/ti/c28x/libraries/tms320f28379d/SConscript new file mode 100644 index 0000000000..3f15071389 --- /dev/null +++ b/bsp/ti/c28x/libraries/tms320f28379d/SConscript @@ -0,0 +1,57 @@ +import rtconfig +Import('RTT_ROOT') +from building import * + +# get current directory +cwd = GetCurrentDir() + +# The set of source files associated with this SConscript file. +src = Split(""" +common/source/F2837xD_PieCtrl.c +common/source/F2837xD_PieVect.c +common/source/F2837xD_SysCtrl.c +common/source/F2837xD_CpuTimers.c +headers/source/F2837xD_GlobalVariableDefs.c +common/source/F2837xD_DefaultISR.c +common/source/F2837xD_Gpio.c +common/source/F2837xD_usDelay.asm +headers/cmd/F2837xD_Headers_BIOS_cpu1.cmd +""") + +if GetDepend(['BSP_USING_ADC']): + src += ['common/source/F2837xD_Adc.c'] + +if GetDepend(['BSP_USING_CAN']): + src += ['common/source/F2837xD_can.c'] + + src += ['common/source/F2837xD_CpuTimers.c'] + +if GetDepend(['BSP_USING_DMA']): + src += ['common/source/F2837xD_Dma.c'] + +if GetDepend(['BSP_USING_ECAP']): + src += ['common/source/F2837xD_ECap.c'] + +if GetDepend(['BSP_USING_PWM']): + src += ['common/source/F2837xD_Epwm.c'] + +if GetDepend(['BSP_USING_QEP']): + src += ['common/source/F2837xD_EQep.c'] + +if GetDepend(['BSP_USING_I2C']): + src += ['common/source/F2837xD_I2C.c'] + +if GetDepend(['BSP_USING_SPI']): + src += ['common/source/F2837xD_Spi.c'] + +if GetDepend(['BSP_USING_UART']): + src += ['common/source/F2837xD_Sci.c'] + src += ['common/source/F2837xD_sci_io.c'] + +path = [cwd + '/headers/include', + cwd + '/headers/include'] + +CPPDEFINES = ['USE_HAL_DRIVER'] +group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) + +Return('group') diff --git a/bsp/ti/c28x/tms320f28379d/.config b/bsp/ti/c28x/tms320f28379d/.config index 47742f867e..78f42a0fc4 100644 --- a/bsp/ti/c28x/tms320f28379d/.config +++ b/bsp/ti/c28x/tms320f28379d/.config @@ -118,7 +118,7 @@ CONFIG_RT_USING_DEVICE_IPC=y CONFIG_RT_USING_SERIAL=y CONFIG_RT_USING_SERIAL_V1=y # CONFIG_RT_USING_SERIAL_V2 is not set -# CONFIG_RT_SERIAL_USING_DMA is not set +CONFIG_RT_SERIAL_USING_DMA=y CONFIG_RT_SERIAL_RB_BUFSZ=64 # CONFIG_RT_USING_CAN is not set # CONFIG_RT_USING_HWTIMER is not set @@ -208,19 +208,19 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # # IoT - internet of things # +# CONFIG_PKG_USING_LWIP is not set +# CONFIG_PKG_USING_LORAWAN_DRIVER is not set # CONFIG_PKG_USING_PAHOMQTT is not set +# CONFIG_PKG_USING_UMQTT is not set # CONFIG_PKG_USING_WEBCLIENT is not set # CONFIG_PKG_USING_WEBNET is not set # CONFIG_PKG_USING_MONGOOSE is not set # CONFIG_PKG_USING_MYMQTT is not set -# CONFIG_PKG_USING_MQTTCLIENT is not set +# CONFIG_PKG_USING_KAWAII_MQTT is not set +# CONFIG_PKG_USING_BC28_MQTT is not set # CONFIG_PKG_USING_WEBTERMINAL is not set -# CONFIG_PKG_USING_CJSON is not set -# CONFIG_PKG_USING_JSMN is not set # CONFIG_PKG_USING_LIBMODBUS is not set # CONFIG_PKG_USING_FREEMODBUS is not set -# CONFIG_PKG_USING_LJSON is not set -# CONFIG_PKG_USING_EZXML is not set # CONFIG_PKG_USING_NANOPB is not set # @@ -240,10 +240,12 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_COAP is not set # CONFIG_PKG_USING_NOPOLL is not set # CONFIG_PKG_USING_NETUTILS is not set +# CONFIG_PKG_USING_CMUX is not set # CONFIG_PKG_USING_PPP_DEVICE is not set # CONFIG_PKG_USING_AT_DEVICE is not set # CONFIG_PKG_USING_ATSRV_SOCKET is not set # CONFIG_PKG_USING_WIZNET is not set +# CONFIG_PKG_USING_ZB_COORDINATOR is not set # # IoT Cloud @@ -252,10 +254,14 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_GAGENT_CLOUD is not set # CONFIG_PKG_USING_ALI_IOTKIT is not set # CONFIG_PKG_USING_AZURE is not set -# CONFIG_PKG_USING_TENCENT_IOTHUB is not set +# CONFIG_PKG_USING_TENCENT_IOT_EXPLORER is not set # CONFIG_PKG_USING_JIOT-C-SDK is not set # CONFIG_PKG_USING_UCLOUD_IOT_SDK is not set +# CONFIG_PKG_USING_JOYLINK is not set +# CONFIG_PKG_USING_EZ_IOT_OS is not set +# CONFIG_PKG_USING_IOTSHARP_SDK is not set # CONFIG_PKG_USING_NIMBLE is not set +# CONFIG_PKG_USING_LLSYNC_SDK_ADAPTER is not set # CONFIG_PKG_USING_OTA_DOWNLOADER is not set # CONFIG_PKG_USING_IPMSG is not set # CONFIG_PKG_USING_LSSDP is not set @@ -263,40 +269,110 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_LIBRWS is not set # CONFIG_PKG_USING_TCPSERVER is not set # CONFIG_PKG_USING_PROTOBUF_C is not set -# CONFIG_PKG_USING_ONNX_PARSER is not set -# CONFIG_PKG_USING_ONNX_BACKEND is not set # CONFIG_PKG_USING_DLT645 is not set # CONFIG_PKG_USING_QXWZ is not set # CONFIG_PKG_USING_SMTP_CLIENT is not set # CONFIG_PKG_USING_ABUP_FOTA is not set # CONFIG_PKG_USING_LIBCURL2RTT is not set # CONFIG_PKG_USING_CAPNP is not set -# CONFIG_PKG_USING_RT_CJSON_TOOLS is not set # CONFIG_PKG_USING_AGILE_TELNET is not set +# CONFIG_PKG_USING_NMEALIB is not set +# CONFIG_PKG_USING_PDULIB is not set +# CONFIG_PKG_USING_BTSTACK is not set +# CONFIG_PKG_USING_LORAWAN_ED_STACK is not set +# CONFIG_PKG_USING_WAYZ_IOTKIT is not set +# CONFIG_PKG_USING_MAVLINK is not set +# CONFIG_PKG_USING_BSAL is not set +# CONFIG_PKG_USING_AGILE_MODBUS is not set +# CONFIG_PKG_USING_AGILE_FTP is not set +# CONFIG_PKG_USING_EMBEDDEDPROTO is not set +# CONFIG_PKG_USING_RT_LINK_HW is not set +# CONFIG_PKG_USING_LORA_PKT_FWD is not set +# CONFIG_PKG_USING_LORA_GW_DRIVER_LIB is not set +# CONFIG_PKG_USING_LORA_PKT_SNIFFER is not set +# CONFIG_PKG_USING_HM is not set +# CONFIG_PKG_USING_SMALL_MODBUS is not set +# CONFIG_PKG_USING_NET_SERVER is not set +# CONFIG_PKG_USING_ZFTP is not set # # security packages # # CONFIG_PKG_USING_MBEDTLS is not set -# CONFIG_PKG_USING_libsodium is not set +# CONFIG_PKG_USING_LIBSODIUM is not set +# CONFIG_PKG_USING_LIBHYDROGEN is not set # CONFIG_PKG_USING_TINYCRYPT is not set # CONFIG_PKG_USING_TFM is not set +# CONFIG_PKG_USING_YD_CRYPTO is not set # # language packages # + +# +# JSON: JavaScript Object Notation, a lightweight data-interchange format +# +# CONFIG_PKG_USING_CJSON is not set +# CONFIG_PKG_USING_LJSON is not set +# CONFIG_PKG_USING_RT_CJSON_TOOLS is not set +# CONFIG_PKG_USING_RAPIDJSON is not set +# CONFIG_PKG_USING_JSMN is not set +# CONFIG_PKG_USING_AGILE_JSMN is not set +# CONFIG_PKG_USING_PARSON is not set + +# +# XML: Extensible Markup Language +# +# CONFIG_PKG_USING_SIMPLE_XML is not set +# CONFIG_PKG_USING_EZXML is not set +# CONFIG_PKG_USING_LUATOS_SOC is not set # CONFIG_PKG_USING_LUA is not set # CONFIG_PKG_USING_JERRYSCRIPT is not set # CONFIG_PKG_USING_MICROPYTHON is not set +# CONFIG_PKG_USING_PIKASCRIPT is not set +# CONFIG_PKG_USING_RTT_RUST is not set # # multimedia packages # + +# +# LVGL: powerful and easy-to-use embedded GUI library +# +# CONFIG_PKG_USING_LVGL is not set +# CONFIG_PKG_USING_LITTLEVGL2RTT is not set +# CONFIG_PKG_USING_LV_MUSIC_DEMO is not set +# CONFIG_PKG_USING_GUI_GUIDER_DEMO is not set + +# +# u8g2: a monochrome graphic library +# +# CONFIG_PKG_USING_U8G2_OFFICIAL is not set +# CONFIG_PKG_USING_U8G2 is not set # CONFIG_PKG_USING_OPENMV is not set # CONFIG_PKG_USING_MUPDF is not set # CONFIG_PKG_USING_STEMWIN is not set # CONFIG_PKG_USING_WAVPLAYER is not set # CONFIG_PKG_USING_TJPGD is not set +# CONFIG_PKG_USING_PDFGEN is not set +# CONFIG_PKG_USING_HELIX is not set +# CONFIG_PKG_USING_AZUREGUIX is not set +# CONFIG_PKG_USING_TOUCHGFX2RTT is not set +# CONFIG_PKG_USING_NUEMWIN is not set +# CONFIG_PKG_USING_MP3PLAYER is not set +# CONFIG_PKG_USING_TINYJPEG is not set +# CONFIG_PKG_USING_UGUI is not set + +# +# PainterEngine: A cross-platform graphics application framework written in C language +# +# CONFIG_PKG_USING_PAINTERENGINE is not set +# CONFIG_PKG_USING_PAINTERENGINE_AUX is not set +# CONFIG_PKG_USING_MCURSES is not set +# CONFIG_PKG_USING_TERMBOX is not set +# CONFIG_PKG_USING_VT100 is not set +# CONFIG_PKG_USING_QRCODE is not set +# CONFIG_PKG_USING_GUIENGINE is not set # # tools packages @@ -305,36 +381,115 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_EASYFLASH is not set # CONFIG_PKG_USING_EASYLOGGER is not set # CONFIG_PKG_USING_SYSTEMVIEW is not set +# CONFIG_PKG_USING_SEGGER_RTT is not set # CONFIG_PKG_USING_RDB is not set -# CONFIG_PKG_USING_QRCODE is not set # CONFIG_PKG_USING_ULOG_EASYFLASH is not set +# CONFIG_PKG_USING_ULOG_FILE is not set +# CONFIG_PKG_USING_LOGMGR is not set # CONFIG_PKG_USING_ADBD is not set # CONFIG_PKG_USING_COREMARK is not set # CONFIG_PKG_USING_DHRYSTONE is not set +# CONFIG_PKG_USING_MEMORYPERF is not set # CONFIG_PKG_USING_NR_MICRO_SHELL is not set # CONFIG_PKG_USING_CHINESE_FONT_LIBRARY is not set # CONFIG_PKG_USING_LUNAR_CALENDAR is not set # CONFIG_PKG_USING_BS8116A is not set +# CONFIG_PKG_USING_GPS_RMC is not set +# CONFIG_PKG_USING_URLENCODE is not set +# CONFIG_PKG_USING_UMCN is not set +# CONFIG_PKG_USING_LWRB2RTT is not set +# CONFIG_PKG_USING_CPU_USAGE is not set +# CONFIG_PKG_USING_GBK2UTF8 is not set +# CONFIG_PKG_USING_VCONSOLE is not set +# CONFIG_PKG_USING_KDB is not set +# CONFIG_PKG_USING_WAMR is not set +# CONFIG_PKG_USING_MICRO_XRCE_DDS_CLIENT is not set +# CONFIG_PKG_USING_LWLOG is not set +# CONFIG_PKG_USING_ANV_TRACE is not set +# CONFIG_PKG_USING_ANV_MEMLEAK is not set +# CONFIG_PKG_USING_ANV_TESTSUIT is not set +# CONFIG_PKG_USING_ANV_BENCH is not set +# CONFIG_PKG_USING_DEVMEM is not set +# CONFIG_PKG_USING_REGEX is not set +# CONFIG_PKG_USING_MEM_SANDBOX is not set +# CONFIG_PKG_USING_SOLAR_TERMS is not set +# CONFIG_PKG_USING_GAN_ZHI is not set +# CONFIG_PKG_USING_FDT is not set +# CONFIG_PKG_USING_CBOX is not set +# CONFIG_PKG_USING_SNOWFLAKE is not set +# CONFIG_PKG_USING_HASH_MATCH is not set +# CONFIG_PKG_USING_FIRE_PID_CURVE is not set +# CONFIG_PKG_USING_ARMV7M_DWT_TOOL is not set # # system packages # -# CONFIG_PKG_USING_GUIENGINE is not set + +# +# enhanced kernel services +# +# CONFIG_PKG_USING_RT_MEMCPY_CM is not set +# CONFIG_PKG_USING_RT_KPRINTF_THREADSAFE is not set +# CONFIG_PKG_USING_RT_VSNPRINTF_FULL is not set + +# +# acceleration: Assembly language or algorithmic acceleration packages +# +# CONFIG_PKG_USING_QFPLIB_M0_FULL is not set +# CONFIG_PKG_USING_QFPLIB_M0_TINY is not set +# CONFIG_PKG_USING_QFPLIB_M3 is not set + +# +# CMSIS: ARM Cortex-M Microcontroller Software Interface Standard +# +# CONFIG_PKG_USING_CMSIS_5 is not set +# CONFIG_PKG_USING_CMSIS_RTOS1 is not set +# CONFIG_PKG_USING_CMSIS_RTOS2 is not set + +# +# Micrium: Micrium software products porting for RT-Thread +# +# CONFIG_PKG_USING_UCOSIII_WRAPPER is not set +# CONFIG_PKG_USING_UCOSII_WRAPPER is not set +# CONFIG_PKG_USING_UC_CRC is not set +# CONFIG_PKG_USING_UC_CLK is not set +# CONFIG_PKG_USING_UC_COMMON is not set +# CONFIG_PKG_USING_UC_MODBUS is not set +# CONFIG_PKG_USING_RTDUINO is not set +# CONFIG_PKG_USING_FREERTOS_WRAPPER is not set # CONFIG_PKG_USING_CAIRO is not set # CONFIG_PKG_USING_PIXMAN is not set -# CONFIG_PKG_USING_LWEXT4 is not set # CONFIG_PKG_USING_PARTITION is not set -# CONFIG_PKG_USING_FAL is not set +# CONFIG_PKG_USING_PERF_COUNTER is not set +# CONFIG_PKG_USING_FLASHDB is not set # CONFIG_PKG_USING_SQLITE is not set # CONFIG_PKG_USING_RTI is not set -# CONFIG_PKG_USING_LITTLEVGL2RTT is not set -# CONFIG_PKG_USING_CMSIS is not set # CONFIG_PKG_USING_DFS_YAFFS is not set # CONFIG_PKG_USING_LITTLEFS is not set +# CONFIG_PKG_USING_DFS_JFFS2 is not set +# CONFIG_PKG_USING_DFS_UFFS is not set +# CONFIG_PKG_USING_LWEXT4 is not set # CONFIG_PKG_USING_THREAD_POOL is not set # CONFIG_PKG_USING_ROBOTS is not set # CONFIG_PKG_USING_EV is not set # CONFIG_PKG_USING_SYSWATCH is not set +# CONFIG_PKG_USING_SYS_LOAD_MONITOR is not set +# CONFIG_PKG_USING_PLCCORE is not set +# CONFIG_PKG_USING_RAMDISK is not set +# CONFIG_PKG_USING_MININI is not set +# CONFIG_PKG_USING_QBOOT is not set +# CONFIG_PKG_USING_PPOOL is not set +# CONFIG_PKG_USING_OPENAMP is not set +# CONFIG_PKG_USING_LPM is not set +# CONFIG_PKG_USING_TLSF is not set +# CONFIG_PKG_USING_EVENT_RECORDER is not set +# CONFIG_PKG_USING_ARM_2D is not set +# CONFIG_PKG_USING_MCUBOOT is not set +# CONFIG_PKG_USING_TINYUSB is not set +# CONFIG_PKG_USING_CHERRYUSB is not set +# CONFIG_PKG_USING_KMULTI_RTIMER is not set +# CONFIG_PKG_USING_TFDB is not set +# CONFIG_PKG_USING_QPC is not set # # peripheral libraries and drivers @@ -343,19 +498,29 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_REALTEK_AMEBA is not set # CONFIG_PKG_USING_SHT2X is not set # CONFIG_PKG_USING_SHT3X is not set +# CONFIG_PKG_USING_ADT74XX is not set +# CONFIG_PKG_USING_AS7341 is not set # CONFIG_PKG_USING_STM32_SDIO is not set +# CONFIG_PKG_USING_RTT_ESP_IDF is not set # CONFIG_PKG_USING_ICM20608 is not set -# CONFIG_PKG_USING_U8G2 is not set # CONFIG_PKG_USING_BUTTON is not set # CONFIG_PKG_USING_PCF8574 is not set # CONFIG_PKG_USING_SX12XX is not set # CONFIG_PKG_USING_SIGNAL_LED is not set # CONFIG_PKG_USING_LEDBLINK is not set # CONFIG_PKG_USING_LITTLED is not set +# CONFIG_PKG_USING_LKDGUI is not set +# CONFIG_PKG_USING_NRF5X_SDK is not set +# CONFIG_PKG_USING_NRFX is not set # CONFIG_PKG_USING_WM_LIBRARIES is not set + +# +# Kendryte SDK +# +# CONFIG_PKG_USING_K210_SDK is not set # CONFIG_PKG_USING_KENDRYTE_SDK is not set # CONFIG_PKG_USING_INFRARED is not set -# CONFIG_PKG_USING_ROSSERIAL is not set +# CONFIG_PKG_USING_MULTI_INFRARED is not set # CONFIG_PKG_USING_AGILE_BUTTON is not set # CONFIG_PKG_USING_AGILE_LED is not set # CONFIG_PKG_USING_AT24CXX is not set @@ -369,26 +534,72 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_RPLIDAR is not set # CONFIG_PKG_USING_AS608 is not set # CONFIG_PKG_USING_RC522 is not set +# CONFIG_PKG_USING_WS2812B is not set # CONFIG_PKG_USING_EMBARC_BSP is not set +# CONFIG_PKG_USING_EXTERN_RTC_DRIVERS is not set +# CONFIG_PKG_USING_MULTI_RTIMER is not set +# CONFIG_PKG_USING_MAX7219 is not set +# CONFIG_PKG_USING_BEEP is not set +# CONFIG_PKG_USING_EASYBLINK is not set +# CONFIG_PKG_USING_PMS_SERIES is not set +# CONFIG_PKG_USING_CAN_YMODEM is not set +# CONFIG_PKG_USING_LORA_RADIO_DRIVER is not set +# CONFIG_PKG_USING_QLED is not set +# CONFIG_PKG_USING_PAJ7620 is not set +# CONFIG_PKG_USING_AGILE_CONSOLE is not set +# CONFIG_PKG_USING_LD3320 is not set +# CONFIG_PKG_USING_WK2124 is not set +# CONFIG_PKG_USING_LY68L6400 is not set +# CONFIG_PKG_USING_DM9051 is not set +# CONFIG_PKG_USING_SSD1306 is not set +# CONFIG_PKG_USING_QKEY is not set +# CONFIG_PKG_USING_RS485 is not set +# CONFIG_PKG_USING_RS232 is not set +# CONFIG_PKG_USING_NES is not set +# CONFIG_PKG_USING_VIRTUAL_SENSOR is not set +# CONFIG_PKG_USING_VDEVICE is not set +# CONFIG_PKG_USING_SGM706 is not set +# CONFIG_PKG_USING_STM32WB55_SDK is not set +# CONFIG_PKG_USING_RDA58XX is not set +# CONFIG_PKG_USING_LIBNFC is not set +# CONFIG_PKG_USING_MFOC is not set +# CONFIG_PKG_USING_TMC51XX is not set +# CONFIG_PKG_USING_TCA9534 is not set +# CONFIG_PKG_USING_KOBUKI is not set +# CONFIG_PKG_USING_ROSSERIAL is not set +# CONFIG_PKG_USING_MICRO_ROS is not set +# CONFIG_PKG_USING_MCP23008 is not set +# CONFIG_PKG_USING_BLUETRUM_SDK is not set +# CONFIG_PKG_USING_MISAKA_AT24CXX is not set +# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set +# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set +# CONFIG_PKG_USING_BL_MCU_SDK is not set +# CONFIG_PKG_USING_SOFT_SERIAL is not set +# CONFIG_PKG_USING_MB85RS16 is not set +# CONFIG_PKG_USING_CW2015 is not set +# CONFIG_PKG_USING_RFM300 is not set +# CONFIG_PKG_USING_IO_INPUT_FILTER is not set + +# +# AI packages +# +# CONFIG_PKG_USING_LIBANN is not set +# CONFIG_PKG_USING_NNOM is not set +# CONFIG_PKG_USING_ONNX_BACKEND is not set +# CONFIG_PKG_USING_ONNX_PARSER is not set +# CONFIG_PKG_USING_TENSORFLOWLITEMICRO is not set +# CONFIG_PKG_USING_ELAPACK is not set +# CONFIG_PKG_USING_ULAPACK is not set +# CONFIG_PKG_USING_QUEST is not set +# CONFIG_PKG_USING_NAXOS is not set # # miscellaneous packages # -# CONFIG_PKG_USING_LIBCSV is not set -# CONFIG_PKG_USING_OPTPARSE is not set -# CONFIG_PKG_USING_FASTLZ is not set -# CONFIG_PKG_USING_MINILZO is not set -# CONFIG_PKG_USING_QUICKLZ is not set -# CONFIG_PKG_USING_MULTIBUTTON is not set -# CONFIG_PKG_USING_FLEXIBLE_BUTTON is not set -# CONFIG_PKG_USING_CANFESTIVAL is not set -# CONFIG_PKG_USING_ZLIB is not set -# CONFIG_PKG_USING_DSTR is not set -# CONFIG_PKG_USING_TINYFRAME is not set -# CONFIG_PKG_USING_KENDRYTE_DEMO is not set -# CONFIG_PKG_USING_DIGITALCTRL is not set -# CONFIG_PKG_USING_UPACKER is not set -# CONFIG_PKG_USING_UPARAM is not set + +# +# project laboratory +# # # samples: kernel and components samples @@ -397,15 +608,52 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_FILESYSTEM_SAMPLES is not set # CONFIG_PKG_USING_NETWORK_SAMPLES is not set # CONFIG_PKG_USING_PERIPHERAL_SAMPLES is not set + +# +# entertainment: terminal games and other interesting software packages +# +# CONFIG_PKG_USING_CMATRIX is not set +# CONFIG_PKG_USING_SL is not set +# CONFIG_PKG_USING_CAL is not set +# CONFIG_PKG_USING_ACLOCK is not set +# CONFIG_PKG_USING_THREES is not set +# CONFIG_PKG_USING_2048 is not set +# CONFIG_PKG_USING_SNAKE is not set +# CONFIG_PKG_USING_TETRIS is not set +# CONFIG_PKG_USING_DONUT is not set +# CONFIG_PKG_USING_COWSAY is not set +# CONFIG_PKG_USING_LIBCSV is not set +# CONFIG_PKG_USING_OPTPARSE is not set +# CONFIG_PKG_USING_FASTLZ is not set +# CONFIG_PKG_USING_MINILZO is not set +# CONFIG_PKG_USING_QUICKLZ is not set +# CONFIG_PKG_USING_LZMA is not set +# CONFIG_PKG_USING_MULTIBUTTON is not set +# CONFIG_PKG_USING_FLEXIBLE_BUTTON is not set +# CONFIG_PKG_USING_CANFESTIVAL is not set +# CONFIG_PKG_USING_ZLIB is not set +# CONFIG_PKG_USING_MINIZIP is not set +# CONFIG_PKG_USING_HEATSHRINK is not set +# CONFIG_PKG_USING_DSTR is not set +# CONFIG_PKG_USING_TINYFRAME is not set +# CONFIG_PKG_USING_KENDRYTE_DEMO is not set +# CONFIG_PKG_USING_DIGITALCTRL is not set +# CONFIG_PKG_USING_UPACKER is not set +# CONFIG_PKG_USING_UPARAM is not set # CONFIG_PKG_USING_HELLO is not set # CONFIG_PKG_USING_VI is not set -# CONFIG_PKG_USING_NNOM is not set -# CONFIG_PKG_USING_LIBANN is not set -# CONFIG_PKG_USING_ELAPACK is not set +# CONFIG_PKG_USING_KI is not set # CONFIG_PKG_USING_ARMv7M_DWT is not set -# CONFIG_PKG_USING_VT100 is not set -# CONFIG_PKG_USING_ULAPACK is not set # CONFIG_PKG_USING_UKAL is not set +# CONFIG_PKG_USING_CRCLIB is not set +# CONFIG_PKG_USING_LWGPS is not set +# CONFIG_PKG_USING_STATE_MACHINE is not set +# CONFIG_PKG_USING_DESIGN_PATTERN is not set +# CONFIG_PKG_USING_CONTROLLER is not set +# CONFIG_PKG_USING_PHASE_LOCKED_LOOP is not set +# CONFIG_PKG_USING_MFBD is not set +# CONFIG_PKG_USING_SLCAN2RTT is not set +# CONFIG_PKG_USING_SOEM is not set # # Hardware Drivers Config @@ -418,17 +666,49 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # # On-chip Peripheral Drivers # +# CONFIG_BSP_USING_FLASH is not set CONFIG_BSP_USING_GPIO=y # CONFIG_BSP_USING_XINT is not set CONFIG_BSP_USING_UART=y CONFIG_BSP_USING_UART1=y -# CONFIG_BSP_USING_PWM is not set -CONFIG_BSP_USING_ADC=y -CONFIG_BSP_USING_ADC1=y -CONFIG_BSP_ADC_USING_12BIT=y -# CONFIG_BSP_ADC_USING_16BIT is not set -CONFIG_BSP_USING_ADC2=y -CONFIG_BSP_USING_ADC3=y +CONFIG_BSP_USING_PWM=y +CONFIG_BSP_USING_PWM1=y + +# +# Basic settings for PWM1 +# +CONFIG_BSP_PWM1_INIT_PERIOD=10000 +CONFIG_BSP_PWM1_INIT_PULSE=1000 + +# +# Advanced Settings for PWM1 +# +# CONFIG_BSP_PWM1_PHASE_ENABLE is not set +# CONFIG_BSP_PWM1_IT_ENABLE is not set +CONFIG_BSP_PWM1_HSPCLKDIV1=y +# CONFIG_BSP_PWM1_HSPCLKDIV2 is not set +# CONFIG_BSP_PWM1_HSPCLKDIV4 is not set +CONFIG_BSP_PWM1_HSPCLKDIV=0 +CONFIG_BSP_PWM1_CLKDIV1=y +# CONFIG_BSP_PWM1_CLKDIV2 is not set +# CONFIG_BSP_PWM1_CLKDIV4 is not set +CONFIG_BSP_PWM1_CLKDIV=0 +CONFIG_BSP_PWM1_CTR_MODE_UPDOWN=y +# CONFIG_BSP_PWM1_CTR_MODE_UP is not set +# CONFIG_BSP_PWM1_CTR_MODE_DOWN is not set +# CONFIG_BSP_PWM1_CTR_FREEZE is not set +CONFIG_BSP_PWM1_CTRMODE=2 +CONFIG_BSP_PWM1_CC_CTR_ZERO=y +# CONFIG_BSP_PWM1_CC_CTR_PRD is not set +# CONFIG_BSP_PWM1_CC_CTR_ZERO_PRD is not set +# CONFIG_BSP_PWM1_CC_LD_DISABLE is not set +CONFIG_BSP_PWM1_LOADAMODE=0 +CONFIG_BSP_PWM1_DB=100 +# CONFIG_BSP_PWM1_ADC_TRIGGER is not set +# CONFIG_BSP_USING_PWM2 is not set +# CONFIG_BSP_USING_PWM3 is not set +# CONFIG_BSP_USING_PWM4 is not set +# CONFIG_BSP_USING_ADC is not set # CONFIG_BSP_USING_ONCHIP_RTC is not set # CONFIG_BSP_USING_WDT is not set # CONFIG_BSP_USING_SDIO is not set diff --git a/bsp/ti/c28x/tms320f28379d/.cproject b/bsp/ti/c28x/tms320f28379d/.cproject index 10ca7c720c..2f63002497 100644 --- a/bsp/ti/c28x/tms320f28379d/.cproject +++ b/bsp/ti/c28x/tms320f28379d/.cproject @@ -1,225 +1,307 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bsp/ti/c28x/tms320f28379d/.gitignore b/bsp/ti/c28x/tms320f28379d/.gitignore index 025af2b856..5ec7ad77b4 100644 --- a/bsp/ti/c28x/tms320f28379d/.gitignore +++ b/bsp/ti/c28x/tms320f28379d/.gitignore @@ -1,3 +1,5 @@ .launches/ +.settings/ FLASH RAM +makefile.targets \ No newline at end of file diff --git a/bsp/ti/c28x/tms320f28379d/.project b/bsp/ti/c28x/tms320f28379d/.project index e8a85337b5..000e38c49c 100644 --- a/bsp/ti/c28x/tms320f28379d/.project +++ b/bsp/ti/c28x/tms320f28379d/.project @@ -1,849 +1,177 @@ - rt-thread - - + rt-thread + + - - - org.eclipse.cdt.managedbuilder.core.genmakebuilder - + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + - - - org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder - full,incremental, - + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + - - - - com.ti.ccstudio.core.ccsNature - org.eclipse.cdt.core.cnature - org.eclipse.cdt.managedbuilder.core.managedBuildNature - org.eclipse.cdt.core.ccnature - org.eclipse.cdt.managedbuilder.core.ScannerConfigNature - - - - DeviceDrivers - 2 - virtual:/virtual - - - Kernel - 2 - PARENT-2-PROJECT_LOC/src - - - c28x - 2 - virtual:/virtual - - - finsh - 2 - virtual:/virtual - - - libraries - 2 - virtual:/virtual - - - DeviceDrivers/adc.c - 1 - PARENT-4-PROJECT_LOC/components/drivers/misc/adc.c - - - DeviceDrivers/ipc - 2 - PARENT-4-PROJECT_LOC/components/drivers/ipc - - - DeviceDrivers/pin.c - 1 - PARENT-4-PROJECT_LOC/components/drivers/misc/pin.c - - - DeviceDrivers/rt_drv_pwm.c - 1 - PARENT-4-PROJECT_LOC/components/drivers/misc/rt_drv_pwm.c - - - DeviceDrivers/serial.c - 1 - PARENT-4-PROJECT_LOC/components/drivers/serial/serial.c - - - Kernel/Kconfig - 1 - PARENT-4-PROJECT_LOC/src/Kconfig - - - Kernel/SConscript - 1 - PARENT-4-PROJECT_LOC/src/SConscript - - - Kernel/clock.c - 1 - PARENT-4-PROJECT_LOC/src/clock.c - - - Kernel/components.c - 1 - PARENT-4-PROJECT_LOC/src/components.c - - - Kernel/cpu.c - 1 - PARENT-4-PROJECT_LOC/src/cpu.c - - - Kernel/device.c - 1 - PARENT-4-PROJECT_LOC/src/device.c - - - Kernel/idle.c - 1 - PARENT-4-PROJECT_LOC/src/idle.c - - - Kernel/ipc.c - 1 - PARENT-4-PROJECT_LOC/src/ipc.c - - - Kernel/irq.c - 1 - PARENT-4-PROJECT_LOC/src/irq.c - - - Kernel/kservice.c - 1 - PARENT-4-PROJECT_LOC/src/kservice.c - - - Kernel/mem.c - 1 - PARENT-4-PROJECT_LOC/src/mem.c - - - Kernel/memheap.c - 1 - PARENT-4-PROJECT_LOC/src/memheap.c - - - Kernel/mempool.c - 1 - PARENT-4-PROJECT_LOC/src/mempool.c - - - Kernel/object.c - 1 - PARENT-4-PROJECT_LOC/src/object.c - - - Kernel/scheduler.c - 1 - PARENT-4-PROJECT_LOC/src/scheduler.c - - - Kernel/signal.c - 1 - PARENT-4-PROJECT_LOC/src/signal.c - - - Kernel/slab.c - 1 - PARENT-4-PROJECT_LOC/src/slab.c - - - Kernel/thread.c - 1 - PARENT-4-PROJECT_LOC/src/thread.c - - - Kernel/timer.c - 1 - PARENT-4-PROJECT_LOC/src/timer.c - - - c28x/SConscript - 1 - PARENT-4-PROJECT_LOC/libcpu/ti-dsp/c28x/SConscript - - - c28x/context.s - 1 - PARENT-4-PROJECT_LOC/libcpu/ti-dsp/c28x/context.s - - - c28x/cpuport.c - 1 - PARENT-4-PROJECT_LOC/libcpu/ti-dsp/c28x/cpuport.c - - - finsh/Kconfig - 1 - PARENT-4-PROJECT_LOC/components/finsh/Kconfig - - - finsh/SConscript - 1 - PARENT-4-PROJECT_LOC/components/finsh/SConscript - - - finsh/cmd.c - 1 - PARENT-4-PROJECT_LOC/components/finsh/cmd.c - - - finsh/finsh.h - 1 - PARENT-4-PROJECT_LOC/components/finsh/finsh.h - - - finsh/msh.c - 1 - PARENT-4-PROJECT_LOC/components/finsh/msh.c - - - finsh/msh.h - 1 - PARENT-4-PROJECT_LOC/components/finsh/msh.h - - - finsh/msh_file.c - 1 - PARENT-4-PROJECT_LOC/components/finsh/msh_file.c - - - finsh/msh_parse.c - 1 - PARENT-4-PROJECT_LOC/components/finsh/msh_parse.c - - - finsh/msh_parse.h - 1 - PARENT-4-PROJECT_LOC/components/finsh/msh_parse.h - - - finsh/shell.c - 1 - PARENT-4-PROJECT_LOC/components/finsh/shell.c - - - finsh/shell.h - 1 - PARENT-4-PROJECT_LOC/components/finsh/shell.h - - - libraries/HAL_Drivers - 2 - virtual:/virtual - - - libraries/tms320f28379d - 2 - virtual:/virtual - - - libraries/HAL_Drivers/config - 2 - virtual:/virtual - - - libraries/HAL_Drivers/drv_adc.c - 1 - PARENT-1-PROJECT_LOC/libraries/HAL_Drivers/drv_adc.c - - - libraries/HAL_Drivers/drv_adc.h - 1 - PARENT-1-PROJECT_LOC/libraries/HAL_Drivers/drv_adc.h - - - libraries/HAL_Drivers/drv_config.h - 1 - PARENT-1-PROJECT_LOC/libraries/HAL_Drivers/drv_config.h - - - libraries/HAL_Drivers/drv_gpio.c - 1 - PARENT-1-PROJECT_LOC/libraries/HAL_Drivers/drv_gpio.c - - - libraries/HAL_Drivers/drv_gpio.h - 1 - PARENT-1-PROJECT_LOC/libraries/HAL_Drivers/drv_gpio.h - - - libraries/HAL_Drivers/drv_pwm.c - 1 - PARENT-1-PROJECT_LOC/libraries/HAL_Drivers/drv_pwm.c - - - libraries/HAL_Drivers/drv_pwm.h - 1 - PARENT-1-PROJECT_LOC/libraries/HAL_Drivers/drv_pwm.h - - - libraries/HAL_Drivers/drv_sci.c - 1 - PARENT-1-PROJECT_LOC/libraries/HAL_Drivers/drv_sci.c - - - libraries/HAL_Drivers/drv_sci.h - 1 - PARENT-1-PROJECT_LOC/libraries/HAL_Drivers/drv_sci.h - - - libraries/tms320f28379d/common - 2 - virtual:/virtual - - - libraries/tms320f28379d/headers - 2 - virtual:/virtual - - - libraries/HAL_Drivers/config/adc_config.h - 1 - PARENT-1-PROJECT_LOC/libraries/HAL_Drivers/config/adc_config.h - - - libraries/HAL_Drivers/config/pwm_config.h - 1 - PARENT-1-PROJECT_LOC/libraries/HAL_Drivers/config/pwm_config.h - - - libraries/tms320f28379d/common/include - 2 - virtual:/virtual - - - libraries/tms320f28379d/common/source - 2 - virtual:/virtual - - - libraries/tms320f28379d/headers/cmd - 2 - virtual:/virtual - - - libraries/tms320f28379d/headers/include - 2 - virtual:/virtual - - - libraries/tms320f28379d/headers/source - 2 - virtual:/virtual - - - libraries/tms320f28379d/common/include/F2837xD_Adc_defines.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/include/F2837xD_Adc_defines.h - - - libraries/tms320f28379d/common/include/F2837xD_Can_defines.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/include/F2837xD_Can_defines.h - - - libraries/tms320f28379d/common/include/F2837xD_Cla_defines.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/include/F2837xD_Cla_defines.h - - - libraries/tms320f28379d/common/include/F2837xD_Cla_typedefs.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/include/F2837xD_Cla_typedefs.h - - - libraries/tms320f28379d/common/include/F2837xD_Dma_defines.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/include/F2837xD_Dma_defines.h - - - libraries/tms320f28379d/common/include/F2837xD_EPwm_defines.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/include/F2837xD_EPwm_defines.h - - - libraries/tms320f28379d/common/include/F2837xD_Emif_defines.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/include/F2837xD_Emif_defines.h - - - libraries/tms320f28379d/common/include/F2837xD_Examples.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/include/F2837xD_Examples.h - - - libraries/tms320f28379d/common/include/F2837xD_GlobalPrototypes.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/include/F2837xD_GlobalPrototypes.h - - - libraries/tms320f28379d/common/include/F2837xD_Gpio_defines.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/include/F2837xD_Gpio_defines.h - - - libraries/tms320f28379d/common/include/F2837xD_I2c_defines.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/include/F2837xD_I2c_defines.h - - - libraries/tms320f28379d/common/include/F2837xD_Ipc_defines.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/include/F2837xD_Ipc_defines.h - - - libraries/tms320f28379d/common/include/F2837xD_Ipc_drivers.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/include/F2837xD_Ipc_drivers.h - - - libraries/tms320f28379d/common/include/F2837xD_Pie_defines.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/include/F2837xD_Pie_defines.h - - - libraries/tms320f28379d/common/include/F2837xD_SWPrioritizedIsrLevels.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/include/F2837xD_SWPrioritizedIsrLevels.h - - - libraries/tms320f28379d/common/include/F2837xD_SysCtrl_defines.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/include/F2837xD_SysCtrl_defines.h - - - libraries/tms320f28379d/common/include/F2837xD_Systick_defines.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/include/F2837xD_Systick_defines.h - - - libraries/tms320f28379d/common/include/F2837xD_Upp_defines.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/include/F2837xD_Upp_defines.h - - - libraries/tms320f28379d/common/include/F2837xD_cputimervars.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/include/F2837xD_cputimervars.h - - - libraries/tms320f28379d/common/include/F2837xD_defaultisr.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/include/F2837xD_defaultisr.h - - - libraries/tms320f28379d/common/include/F2837xD_sci_io.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/include/F2837xD_sci_io.h - - - libraries/tms320f28379d/common/include/F2837xD_sdfm_drivers.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/include/F2837xD_sdfm_drivers.h - - - libraries/tms320f28379d/common/include/F2837xD_struct.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/include/F2837xD_struct.h - - - libraries/tms320f28379d/common/include/F28x_Project.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/include/F28x_Project.h - - - libraries/tms320f28379d/common/include/device.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/include/device.h - - - libraries/tms320f28379d/common/include/driverlib.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/include/driverlib.h - - - libraries/tms320f28379d/common/include/stdint.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/include/stdint.h - - - libraries/tms320f28379d/common/include/usb.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/include/usb.h - - - libraries/tms320f28379d/common/include/usb_hal.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/include/usb_hal.h - - - libraries/tms320f28379d/common/source/F2837xD_Adc.c - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/source/F2837xD_Adc.c - - - libraries/tms320f28379d/common/source/F2837xD_CodeStartBranch.asm - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/source/F2837xD_CodeStartBranch.asm - - - libraries/tms320f28379d/common/source/F2837xD_CpuTimers.c - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/source/F2837xD_CpuTimers.c - - - libraries/tms320f28379d/common/source/F2837xD_DBGIER.asm - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/source/F2837xD_DBGIER.asm - - - libraries/tms320f28379d/common/source/F2837xD_DefaultISR.c - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/source/F2837xD_DefaultISR.c - - - libraries/tms320f28379d/common/source/F2837xD_Dma.c - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/source/F2837xD_Dma.c - - - libraries/tms320f28379d/common/source/F2837xD_ECap.c - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/source/F2837xD_ECap.c - - - libraries/tms320f28379d/common/source/F2837xD_EPwm.c - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/source/F2837xD_EPwm.c - - - libraries/tms320f28379d/common/source/F2837xD_EQep.c - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/source/F2837xD_EQep.c - - - libraries/tms320f28379d/common/source/F2837xD_Emif.c - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/source/F2837xD_Emif.c - - - libraries/tms320f28379d/common/source/F2837xD_Gpio.c - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/source/F2837xD_Gpio.c - - - libraries/tms320f28379d/common/source/F2837xD_I2C.c - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/source/F2837xD_I2C.c - - - libraries/tms320f28379d/common/source/F2837xD_Ipc.c - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/source/F2837xD_Ipc.c - - - libraries/tms320f28379d/common/source/F2837xD_Ipc_Driver.c - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/source/F2837xD_Ipc_Driver.c - - - libraries/tms320f28379d/common/source/F2837xD_Ipc_Driver_Lite.c - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/source/F2837xD_Ipc_Driver_Lite.c - - - libraries/tms320f28379d/common/source/F2837xD_Ipc_Driver_Util.c - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/source/F2837xD_Ipc_Driver_Util.c - - - libraries/tms320f28379d/common/source/F2837xD_Mcbsp.c - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/source/F2837xD_Mcbsp.c - - - libraries/tms320f28379d/common/source/F2837xD_PieCtrl.c - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/source/F2837xD_PieCtrl.c - - - libraries/tms320f28379d/common/source/F2837xD_PieVect.c - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/source/F2837xD_PieVect.c - - - libraries/tms320f28379d/common/source/F2837xD_SWPrioritizedPieVect.c - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/source/F2837xD_SWPrioritizedPieVect.c - - - libraries/tms320f28379d/common/source/F2837xD_Sci.c - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/source/F2837xD_Sci.c - - - libraries/tms320f28379d/common/source/F2837xD_Spi.c - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/source/F2837xD_Spi.c - - - libraries/tms320f28379d/common/source/F2837xD_SysCtrl.c - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/source/F2837xD_SysCtrl.c - - - libraries/tms320f28379d/common/source/F2837xD_TempSensorConv.c - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/source/F2837xD_TempSensorConv.c - - - libraries/tms320f28379d/common/source/F2837xD_Upp.c - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/source/F2837xD_Upp.c - - - libraries/tms320f28379d/common/source/F2837xD_can.c - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/source/F2837xD_can.c - - - libraries/tms320f28379d/common/source/F2837xD_sci_io.c - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/source/F2837xD_sci_io.c - - - libraries/tms320f28379d/common/source/F2837xD_sdfm_drivers.c - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/source/F2837xD_sdfm_drivers.c - - - libraries/tms320f28379d/common/source/F2837xD_struct.c - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/source/F2837xD_struct.c - - - libraries/tms320f28379d/common/source/F2837xD_usDelay.asm - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/source/F2837xD_usDelay.asm - - - libraries/tms320f28379d/common/source/device.c - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/source/device.c - - - libraries/tms320f28379d/common/source/usb.c - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/source/usb.c - - - libraries/tms320f28379d/common/source/usb_hal.c - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/common/source/usb_hal.c - - - libraries/tms320f28379d/headers/cmd/F2837xD_Headers_BIOS_cpu1.cmd - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/headers/cmd/F2837xD_Headers_BIOS_cpu1.cmd - - - libraries/tms320f28379d/headers/cmd/F2837xD_Headers_BIOS_cpu2.cmd - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/headers/cmd/F2837xD_Headers_BIOS_cpu2.cmd - - - libraries/tms320f28379d/headers/cmd/F2837xD_Headers_nonBIOS_cpu1.cmd - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/headers/cmd/F2837xD_Headers_nonBIOS_cpu1.cmd - - - libraries/tms320f28379d/headers/cmd/F2837xD_Headers_nonBIOS_cpu2.cmd - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/headers/cmd/F2837xD_Headers_nonBIOS_cpu2.cmd - - - libraries/tms320f28379d/headers/include/F2837xD_adc.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/headers/include/F2837xD_adc.h - - - libraries/tms320f28379d/headers/include/F2837xD_analogsubsys.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/headers/include/F2837xD_analogsubsys.h - - - libraries/tms320f28379d/headers/include/F2837xD_can.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/headers/include/F2837xD_can.h - - - libraries/tms320f28379d/headers/include/F2837xD_cla.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/headers/include/F2837xD_cla.h - - - libraries/tms320f28379d/headers/include/F2837xD_cmpss.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/headers/include/F2837xD_cmpss.h - - - libraries/tms320f28379d/headers/include/F2837xD_cputimer.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/headers/include/F2837xD_cputimer.h - - - libraries/tms320f28379d/headers/include/F2837xD_dac.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/headers/include/F2837xD_dac.h - - - libraries/tms320f28379d/headers/include/F2837xD_dcsm.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/headers/include/F2837xD_dcsm.h - - - libraries/tms320f28379d/headers/include/F2837xD_device.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/headers/include/F2837xD_device.h - - - libraries/tms320f28379d/headers/include/F2837xD_dma.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/headers/include/F2837xD_dma.h - - - libraries/tms320f28379d/headers/include/F2837xD_ecap.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/headers/include/F2837xD_ecap.h - - - libraries/tms320f28379d/headers/include/F2837xD_emif.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/headers/include/F2837xD_emif.h - - - libraries/tms320f28379d/headers/include/F2837xD_epwm.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/headers/include/F2837xD_epwm.h - - - libraries/tms320f28379d/headers/include/F2837xD_epwm_xbar.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/headers/include/F2837xD_epwm_xbar.h - - - libraries/tms320f28379d/headers/include/F2837xD_eqep.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/headers/include/F2837xD_eqep.h - - - libraries/tms320f28379d/headers/include/F2837xD_flash.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/headers/include/F2837xD_flash.h - - - libraries/tms320f28379d/headers/include/F2837xD_gpio.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/headers/include/F2837xD_gpio.h - - - libraries/tms320f28379d/headers/include/F2837xD_i2c.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/headers/include/F2837xD_i2c.h - - - libraries/tms320f28379d/headers/include/F2837xD_input_xbar.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/headers/include/F2837xD_input_xbar.h - - - libraries/tms320f28379d/headers/include/F2837xD_ipc.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/headers/include/F2837xD_ipc.h - - - libraries/tms320f28379d/headers/include/F2837xD_mcbsp.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/headers/include/F2837xD_mcbsp.h - - - libraries/tms320f28379d/headers/include/F2837xD_memconfig.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/headers/include/F2837xD_memconfig.h - - - libraries/tms320f28379d/headers/include/F2837xD_nmiintrupt.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/headers/include/F2837xD_nmiintrupt.h - - - libraries/tms320f28379d/headers/include/F2837xD_output_xbar.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/headers/include/F2837xD_output_xbar.h - - - libraries/tms320f28379d/headers/include/F2837xD_piectrl.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/headers/include/F2837xD_piectrl.h - - - libraries/tms320f28379d/headers/include/F2837xD_pievect.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/headers/include/F2837xD_pievect.h - - - libraries/tms320f28379d/headers/include/F2837xD_sci.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/headers/include/F2837xD_sci.h - - - libraries/tms320f28379d/headers/include/F2837xD_sdfm.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/headers/include/F2837xD_sdfm.h - - - libraries/tms320f28379d/headers/include/F2837xD_spi.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/headers/include/F2837xD_spi.h - - - libraries/tms320f28379d/headers/include/F2837xD_sysctrl.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/headers/include/F2837xD_sysctrl.h - - - libraries/tms320f28379d/headers/include/F2837xD_upp.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/headers/include/F2837xD_upp.h - - - libraries/tms320f28379d/headers/include/F2837xD_xbar.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/headers/include/F2837xD_xbar.h - - - libraries/tms320f28379d/headers/include/F2837xD_xint.h - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/headers/include/F2837xD_xint.h - - - libraries/tms320f28379d/headers/source/F2837xD_GlobalVariableDefs.c - 1 - PARENT-1-PROJECT_LOC/libraries/tms320f28379d/headers/source/F2837xD_GlobalVariableDefs.c - - + + + + com.ti.ccstudio.core.ccsNature + org.eclipse.cdt.core.cnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.core.ccnature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + + + rt-thread + 2 + virtual:/virtual + + + libcpu/SConscript + 1 + PARENT-4-PROJECT_LOC/libcpu/ti-dsp/c28x/SConscript + + + libcpu/context.s + 1 + PARENT-4-PROJECT_LOC/libcpu/ti-dsp/c28x/context.s + + + libcpu/cpuport.c + 1 + PARENT-4-PROJECT_LOC/libcpu/ti-dsp/c28x/cpuport.c + + + rt-thread/bsp + 2 + virtual:/virtual + + + rt-thread/components + 2 + virtual:/virtual + + + rt-thread/include + 2 + $%7BPARENT-4-PROJECT_LOC%7D/include + + + rt-thread/src + 2 + $%7BPARENT-4-PROJECT_LOC%7D/src + + + rt-thread/bsp/ti + 2 + virtual:/virtual + + + rt-thread/components/drivers + 2 + $%7BPARENT-4-PROJECT_LOC%7D/components/drivers + + + rt-thread/components/finsh + 2 + $%7BPARENT-4-PROJECT_LOC%7D/components/finsh + + + rt-thread/bsp/ti/c28x + 2 + virtual:/virtual + + + rt-thread/bsp/ti/c28x/libraries + 2 + $%7BPARENT-1-PROJECT_LOC%7D/libraries + + + + + 1667228328377 + + 22 + + org.eclipse.ui.ide.multiFilter + 1.0-name-matches-false-false-*.py + + + + 1667228328378 + + 6 + + org.eclipse.ui.ide.multiFilter + 1.0-name-matches-false-false-rtconfig_preinc.h + + + + 1667228328380 + + 6 + + org.eclipse.ui.ide.multiFilter + 1.0-name-matches-false-false-cconfig.h + + + + 1667228328381 + + 22 + + org.eclipse.ui.ide.multiFilter + 1.0-name-matches-false-false-Kconfig + + + + 1667228328383 + + 22 + + org.eclipse.ui.ide.multiFilter + 1.0-name-matches-false-false-makefile.targets + + + + 1667228328384 + + 22 + + org.eclipse.ui.ide.multiFilter + 1.0-name-matches-false-false-*.pyc + + + + 1667228328386 + + 22 + + org.eclipse.ui.ide.multiFilter + 1.0-name-matches-false-false-Sconscript + + + + 1667228328387 + + 22 + + org.eclipse.ui.ide.multiFilter + 1.0-name-matches-false-false-Sconstruct + + + + 1667228328389 + + 10 + + org.eclipse.ui.ide.multiFilter + 1.0-name-matches-false-false-figures + + + diff --git a/bsp/ti/c28x/tms320f28379d/.settings/org.eclipse.cdt.codan.core.prefs b/bsp/ti/c28x/tms320f28379d/.settings/org.eclipse.cdt.codan.core.prefs deleted file mode 100644 index f653028c53..0000000000 --- a/bsp/ti/c28x/tms320f28379d/.settings/org.eclipse.cdt.codan.core.prefs +++ /dev/null @@ -1,3 +0,0 @@ -eclipse.preferences.version=1 -inEditor=false -onBuild=false diff --git a/bsp/ti/c28x/tms320f28379d/.settings/org.eclipse.cdt.debug.core.prefs b/bsp/ti/c28x/tms320f28379d/.settings/org.eclipse.cdt.debug.core.prefs deleted file mode 100644 index 2adc7b1dde..0000000000 --- a/bsp/ti/c28x/tms320f28379d/.settings/org.eclipse.cdt.debug.core.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.cdt.debug.core.toggleBreakpointModel=com.ti.ccstudio.debug.CCSBreakpointMarker diff --git a/bsp/ti/c28x/tms320f28379d/.settings/org.eclipse.core.resources.prefs b/bsp/ti/c28x/tms320f28379d/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index 814522b6df..0000000000 --- a/bsp/ti/c28x/tms320f28379d/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,91 +0,0 @@ -eclipse.preferences.version=1 -encoding//Debug/drivers/subdir_rules.mk=UTF-8 -encoding//Debug/drivers/subdir_vars.mk=UTF-8 -encoding//Debug/libraries/common/source/subdir_rules.mk=UTF-8 -encoding//Debug/libraries/common/source/subdir_vars.mk=UTF-8 -encoding//Debug/libraries/headers/cmd/subdir_rules.mk=UTF-8 -encoding//Debug/libraries/headers/cmd/subdir_vars.mk=UTF-8 -encoding//Debug/libraries/headers/source/subdir_rules.mk=UTF-8 -encoding//Debug/libraries/headers/source/subdir_vars.mk=UTF-8 -encoding//FLASH/DeviceDrivers/ipc/subdir_rules.mk=UTF-8 -encoding//FLASH/DeviceDrivers/ipc/subdir_vars.mk=UTF-8 -encoding//FLASH/DeviceDrivers/subdir_rules.mk=UTF-8 -encoding//FLASH/DeviceDrivers/subdir_vars.mk=UTF-8 -encoding//FLASH/Kernel/subdir_rules.mk=UTF-8 -encoding//FLASH/Kernel/subdir_vars.mk=UTF-8 -encoding//FLASH/applications/subdir_rules.mk=UTF-8 -encoding//FLASH/applications/subdir_vars.mk=UTF-8 -encoding//FLASH/board/subdir_rules.mk=UTF-8 -encoding//FLASH/board/subdir_vars.mk=UTF-8 -encoding//FLASH/c28x/subdir_rules.mk=UTF-8 -encoding//FLASH/c28x/subdir_vars.mk=UTF-8 -encoding//FLASH/drivers/subdir_rules.mk=UTF-8 -encoding//FLASH/drivers/subdir_vars.mk=UTF-8 -encoding//FLASH/finsh/subdir_rules.mk=UTF-8 -encoding//FLASH/finsh/subdir_vars.mk=UTF-8 -encoding//FLASH/libraries/HAL_Drivers/subdir_rules.mk=UTF-8 -encoding//FLASH/libraries/HAL_Drivers/subdir_vars.mk=UTF-8 -encoding//FLASH/libraries/common/source/subdir_rules.mk=UTF-8 -encoding//FLASH/libraries/common/source/subdir_vars.mk=UTF-8 -encoding//FLASH/libraries/headers/cmd/subdir_rules.mk=UTF-8 -encoding//FLASH/libraries/headers/cmd/subdir_vars.mk=UTF-8 -encoding//FLASH/libraries/headers/source/subdir_rules.mk=UTF-8 -encoding//FLASH/libraries/headers/source/subdir_vars.mk=UTF-8 -encoding//FLASH/libraries/tms320f28379d/common/cmd/subdir_rules.mk=UTF-8 -encoding//FLASH/libraries/tms320f28379d/common/cmd/subdir_vars.mk=UTF-8 -encoding//FLASH/libraries/tms320f28379d/common/deprecated/driverlib/subdir_rules.mk=UTF-8 -encoding//FLASH/libraries/tms320f28379d/common/deprecated/driverlib/subdir_vars.mk=UTF-8 -encoding//FLASH/libraries/tms320f28379d/common/deprecated/utils/subdir_rules.mk=UTF-8 -encoding//FLASH/libraries/tms320f28379d/common/deprecated/utils/subdir_vars.mk=UTF-8 -encoding//FLASH/libraries/tms320f28379d/common/source/subdir_rules.mk=UTF-8 -encoding//FLASH/libraries/tms320f28379d/common/source/subdir_vars.mk=UTF-8 -encoding//FLASH/libraries/tms320f28379d/headers/cmd/subdir_rules.mk=UTF-8 -encoding//FLASH/libraries/tms320f28379d/headers/cmd/subdir_vars.mk=UTF-8 -encoding//FLASH/libraries/tms320f28379d/headers/source/subdir_rules.mk=UTF-8 -encoding//FLASH/libraries/tms320f28379d/headers/source/subdir_vars.mk=UTF-8 -encoding//FLASH/makefile=UTF-8 -encoding//FLASH/objects.mk=UTF-8 -encoding//FLASH/sources.mk=UTF-8 -encoding//FLASH/subdir_rules.mk=UTF-8 -encoding//FLASH/subdir_vars.mk=UTF-8 -encoding//RAM/DeviceDrivers/ipc/subdir_rules.mk=UTF-8 -encoding//RAM/DeviceDrivers/ipc/subdir_vars.mk=UTF-8 -encoding//RAM/DeviceDrivers/subdir_rules.mk=UTF-8 -encoding//RAM/DeviceDrivers/subdir_vars.mk=UTF-8 -encoding//RAM/Kernel/subdir_rules.mk=UTF-8 -encoding//RAM/Kernel/subdir_vars.mk=UTF-8 -encoding//RAM/applications/subdir_rules.mk=UTF-8 -encoding//RAM/applications/subdir_vars.mk=UTF-8 -encoding//RAM/board/subdir_rules.mk=UTF-8 -encoding//RAM/board/subdir_vars.mk=UTF-8 -encoding//RAM/c28x/subdir_rules.mk=UTF-8 -encoding//RAM/c28x/subdir_vars.mk=UTF-8 -encoding//RAM/drivers/subdir_rules.mk=UTF-8 -encoding//RAM/drivers/subdir_vars.mk=UTF-8 -encoding//RAM/finsh/subdir_rules.mk=UTF-8 -encoding//RAM/finsh/subdir_vars.mk=UTF-8 -encoding//RAM/libraries/HAL_Drivers/subdir_rules.mk=UTF-8 -encoding//RAM/libraries/HAL_Drivers/subdir_vars.mk=UTF-8 -encoding//RAM/libraries/common/source/subdir_rules.mk=UTF-8 -encoding//RAM/libraries/common/source/subdir_vars.mk=UTF-8 -encoding//RAM/libraries/headers/cmd/subdir_rules.mk=UTF-8 -encoding//RAM/libraries/headers/cmd/subdir_vars.mk=UTF-8 -encoding//RAM/libraries/headers/source/subdir_rules.mk=UTF-8 -encoding//RAM/libraries/headers/source/subdir_vars.mk=UTF-8 -encoding//RAM/libraries/tms320f28379d/common/cmd/subdir_rules.mk=UTF-8 -encoding//RAM/libraries/tms320f28379d/common/cmd/subdir_vars.mk=UTF-8 -encoding//RAM/libraries/tms320f28379d/common/deprecated/driverlib/subdir_rules.mk=UTF-8 -encoding//RAM/libraries/tms320f28379d/common/deprecated/driverlib/subdir_vars.mk=UTF-8 -encoding//RAM/libraries/tms320f28379d/common/deprecated/utils/subdir_rules.mk=UTF-8 -encoding//RAM/libraries/tms320f28379d/common/deprecated/utils/subdir_vars.mk=UTF-8 -encoding//RAM/libraries/tms320f28379d/common/source/subdir_rules.mk=UTF-8 -encoding//RAM/libraries/tms320f28379d/common/source/subdir_vars.mk=UTF-8 -encoding//RAM/libraries/tms320f28379d/headers/cmd/subdir_rules.mk=UTF-8 -encoding//RAM/libraries/tms320f28379d/headers/cmd/subdir_vars.mk=UTF-8 -encoding//RAM/libraries/tms320f28379d/headers/source/subdir_rules.mk=UTF-8 -encoding//RAM/libraries/tms320f28379d/headers/source/subdir_vars.mk=UTF-8 -encoding//RAM/makefile=UTF-8 -encoding//RAM/objects.mk=UTF-8 -encoding//RAM/sources.mk=UTF-8 -encoding//RAM/subdir_rules.mk=UTF-8 -encoding//RAM/subdir_vars.mk=UTF-8 diff --git a/bsp/ti/c28x/tms320f28379d/SConscript b/bsp/ti/c28x/tms320f28379d/SConscript new file mode 100644 index 0000000000..252357db88 --- /dev/null +++ b/bsp/ti/c28x/tms320f28379d/SConscript @@ -0,0 +1,17 @@ +# for module compiling +import os +Import('RTT_ROOT') +from building import * + +cwd = GetCurrentDir() +objs = [] +list1 = os.listdir(cwd) + + +for d in list1: + path = os.path.join(cwd, d) + if os.path.isfile(os.path.join(path, 'SConscript')): + objs = objs + SConscript(os.path.join(d, 'SConscript')) + +Return('objs') + diff --git a/bsp/ti/c28x/tms320f28379d/SConstruct b/bsp/ti/c28x/tms320f28379d/SConstruct new file mode 100644 index 0000000000..fa38cda3b3 --- /dev/null +++ b/bsp/ti/c28x/tms320f28379d/SConstruct @@ -0,0 +1,60 @@ +import os +import sys +import rtconfig + +if os.getenv('RTT_ROOT'): + RTT_ROOT = os.getenv('RTT_ROOT') +else: + RTT_ROOT = os.path.normpath(os.getcwd() + '/../../../..') + +sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')] +try: + from building import * +except: + print('Cannot found RT-Thread root directory, please check RTT_ROOT') + print(RTT_ROOT) + exit(-1) + +TARGET = 'rt-thread.' + rtconfig.TARGET_EXT + +DefaultEnvironment(tools=[]) +env = Environment(tools = ['mingw'], + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CXXFLAGS, + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) +env.PrependENVPath('PATH', rtconfig.EXEC_PATH) + +if rtconfig.PLATFORM in ['iccarm']: + env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES']) + env.Replace(ARFLAGS = ['']) + env.Replace(LINKCOM = env["LINKCOM"] + ' --map rt-thread.map') + +Export('RTT_ROOT') +Export('rtconfig') + +SDK_ROOT = os.path.abspath('./') +if os.path.exists(SDK_ROOT + '/libraries'): + libraries_path_prefix = SDK_ROOT + '/libraries' + print("exist") +else: + libraries_path_prefix = os.path.dirname(SDK_ROOT) + '/libraries' + print(os.path.dirname(SDK_ROOT)) + +SDK_LIB = libraries_path_prefix +Export('SDK_LIB') + +# prepare building environment +objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False) + +c28x_library = 'tms320f28379d' +rtconfig.BSP_LIBRARY_TYPE = c28x_library + +# include libraries +objs.extend(SConscript(os.path.join(libraries_path_prefix, c28x_library, 'SConscript'))) + +# include drivers +objs.extend(SConscript(os.path.join(libraries_path_prefix, 'HAL_Drivers', 'SConscript'))) +# make a building +DoBuilding(TARGET, objs) diff --git a/bsp/ti/c28x/tms320f28379d/applications/SConscript b/bsp/ti/c28x/tms320f28379d/applications/SConscript new file mode 100644 index 0000000000..3b119692a7 --- /dev/null +++ b/bsp/ti/c28x/tms320f28379d/applications/SConscript @@ -0,0 +1,15 @@ +# for module compiling +import os +Import('RTT_ROOT') +from building import * + +cwd = GetCurrentDir() + +# The set of source files associated with this SConscript file. +src = Split(""" + main.c +""") + +group = DefineGroup('Driver', src, depend = ['']) + +Return('group') diff --git a/bsp/ti/c28x/tms320f28379d/applications/startup.c b/bsp/ti/c28x/tms320f28379d/applications/main.c similarity index 100% rename from bsp/ti/c28x/tms320f28379d/applications/startup.c rename to bsp/ti/c28x/tms320f28379d/applications/main.c diff --git a/bsp/ti/c28x/tms320f28379d/board/Kconfig b/bsp/ti/c28x/tms320f28379d/board/Kconfig index 1510a81dfc..7c9e352d85 100644 --- a/bsp/ti/c28x/tms320f28379d/board/Kconfig +++ b/bsp/ti/c28x/tms320f28379d/board/Kconfig @@ -4,6 +4,9 @@ menu "Onboard Peripheral Drivers" endmenu menu "On-chip Peripheral Drivers" + config BSP_USING_FLASH + bool "Using FLASH as CMD, default RAM" + default n config BSP_USING_GPIO bool "Enable GPIO" select RT_USING_PIN @@ -95,7 +98,7 @@ menu "On-chip Peripheral Drivers" if BSP_USING_PWM menuconfig BSP_USING_PWM1 bool "Enable ePWM1" - default n + default y if BSP_USING_PWM1 menu "Basic settings for PWM1" config BSP_PWM1_INIT_PERIOD diff --git a/bsp/ti/c28x/tms320f28379d/board/SConscript b/bsp/ti/c28x/tms320f28379d/board/SConscript new file mode 100644 index 0000000000..ca2ddbd9cf --- /dev/null +++ b/bsp/ti/c28x/tms320f28379d/board/SConscript @@ -0,0 +1,22 @@ +import os +import rtconfig +from building import * + +Import('SDK_LIB') + +cwd = GetCurrentDir() + +# add general drivers +src = Split(''' +board.c +''') + + +path = [cwd] + +startup_path_prefix = SDK_LIB + +# src += [startup_path_prefix + '/HAL_Drivers/drv_sci.c'] + +group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path) +Return('group') \ No newline at end of file diff --git a/bsp/ti/c28x/tms320f28379d/2837x_FLASH_lnk_cpu1.cmd b/bsp/ti/c28x/tms320f28379d/cmd/2837x_FLASH_lnk_cpu1.cmd similarity index 100% rename from bsp/ti/c28x/tms320f28379d/2837x_FLASH_lnk_cpu1.cmd rename to bsp/ti/c28x/tms320f28379d/cmd/2837x_FLASH_lnk_cpu1.cmd diff --git a/bsp/ti/c28x/tms320f28379d/2837x_RAM_lnk_cpu1.cmd b/bsp/ti/c28x/tms320f28379d/cmd/2837x_RAM_lnk_cpu1.cmd similarity index 100% rename from bsp/ti/c28x/tms320f28379d/2837x_RAM_lnk_cpu1.cmd rename to bsp/ti/c28x/tms320f28379d/cmd/2837x_RAM_lnk_cpu1.cmd diff --git a/bsp/ti/c28x/tms320f28379d/cmd/Sconscript b/bsp/ti/c28x/tms320f28379d/cmd/Sconscript new file mode 100644 index 0000000000..3a7f889141 --- /dev/null +++ b/bsp/ti/c28x/tms320f28379d/cmd/Sconscript @@ -0,0 +1,20 @@ +Import('RTT_ROOT') +Import('rtconfig') +from building import * + +cwd = GetCurrentDir() + +# add the general drivers. +src = [] + +if GetDepend(['BSP_USING_FLASH']): + src += ['2837x_FLASH_lnk_cpu1.cmd'] +else: + src += ['2837x_RAM_lnk_cpu1.cmd'] + +path = [cwd] +path += [cwd] + +group = DefineGroup('Drivers', src, depend = ['']) + +Return('group') diff --git a/bsp/ti/c28x/tms320f28379d/rtconfig.h b/bsp/ti/c28x/tms320f28379d/rtconfig.h index 9b79b43fa4..fb84161bfa 100644 --- a/bsp/ti/c28x/tms320f28379d/rtconfig.h +++ b/bsp/ti/c28x/tms320f28379d/rtconfig.h @@ -73,6 +73,7 @@ #define RT_USING_DEVICE_IPC #define RT_USING_SERIAL #define RT_USING_SERIAL_V1 +#define RT_SERIAL_USING_DMA #define RT_SERIAL_RB_BUFSZ 64 #define RT_USING_PIN #define RT_USING_ADC @@ -124,25 +125,59 @@ /* language packages */ +/* JSON: JavaScript Object Notation, a lightweight data-interchange format */ + + +/* XML: Extensible Markup Language */ + /* multimedia packages */ +/* LVGL: powerful and easy-to-use embedded GUI library */ + + +/* u8g2: a monochrome graphic library */ + + +/* PainterEngine: A cross-platform graphics application framework written in C language */ + /* tools packages */ /* system packages */ +/* enhanced kernel services */ + + +/* acceleration: Assembly language or algorithmic acceleration packages */ + + +/* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */ + + +/* Micrium: Micrium software products porting for RT-Thread */ + /* peripheral libraries and drivers */ +/* Kendryte SDK */ + + +/* AI packages */ + + /* miscellaneous packages */ +/* project laboratory */ /* samples: kernel and components samples */ +/* entertainment: terminal games and other interesting software packages */ + + /* Hardware Drivers Config */ /* Onboard Peripheral Drivers */ @@ -152,11 +187,25 @@ #define BSP_USING_GPIO #define BSP_USING_UART #define BSP_USING_UART1 -#define BSP_USING_ADC -#define BSP_USING_ADC1 -#define BSP_ADC_USING_12BIT -#define BSP_USING_ADC2 -#define BSP_USING_ADC3 +#define BSP_USING_PWM +#define BSP_USING_PWM1 + +/* Basic settings for PWM1 */ + +#define BSP_PWM1_INIT_PERIOD 10000 +#define BSP_PWM1_INIT_PULSE 1000 + +/* Advanced Settings for PWM1 */ + +#define BSP_PWM1_HSPCLKDIV1 +#define BSP_PWM1_HSPCLKDIV 0 +#define BSP_PWM1_CLKDIV1 +#define BSP_PWM1_CLKDIV 0 +#define BSP_PWM1_CTR_MODE_UPDOWN +#define BSP_PWM1_CTRMODE 2 +#define BSP_PWM1_CC_CTR_ZERO +#define BSP_PWM1_LOADAMODE 0 +#define BSP_PWM1_DB 100 /* Board extended module Drivers */ diff --git a/bsp/ti/c28x/tms320f28379d/rtconfig.py b/bsp/ti/c28x/tms320f28379d/rtconfig.py new file mode 100644 index 0000000000..9f1d0e94cd --- /dev/null +++ b/bsp/ti/c28x/tms320f28379d/rtconfig.py @@ -0,0 +1,74 @@ +import os + +# toolchains options +ARCH='ti-dsp' +CPU='c28x' +CROSS_TOOL='ti' + +# bsp lib config +BSP_LIBRARY_TYPE = None + +if os.getenv('RTT_CC'): + CROSS_TOOL = os.getenv('RTT_CC') +if os.getenv('RTT_ROOT'): + RTT_ROOT = os.getenv('RTT_ROOT') + +# cross_tool provides the cross compiler +# EXEC_PATH is the compiler execute path, for example, CodeSourcery, Keil MDK, IAR +if CROSS_TOOL == 'gcc': + PLATFORM = 'gcc' + EXEC_PATH = r'C:\Users\XXYYZZ' +elif CROSS_TOOL == 'keil': + PLATFORM = 'armcc' + EXEC_PATH = r'C:/Keil_v5' +elif CROSS_TOOL == 'iar': + PLATFORM = 'iccarm' + EXEC_PATH = r'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.3' +else: + PLATFORM = 'ti' + EXEC_PATH = r'C:\Users\XXYYZZ' + +if os.getenv('RTT_EXEC_PATH'): + EXEC_PATH = os.getenv('RTT_EXEC_PATH') + +BUILD = 'debug' + +if PLATFORM == 'gcc': + # toolchains + PREFIX = 'arm-none-eabi-' + CC = PREFIX + 'gcc' + AS = PREFIX + 'gcc' + AR = PREFIX + 'ar' + CXX = PREFIX + 'g++' + LINK = PREFIX + 'gcc' + TARGET_EXT = 'elf' + SIZE = PREFIX + 'size' + OBJDUMP = PREFIX + 'objdump' + OBJCPY = PREFIX + 'objcopy' + + DEVICE = ' -mcpu=cortex-m0 -mthumb -ffunction-sections -fdata-sections' + CFLAGS = DEVICE + ' -Dgcc' + AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb ' + LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rt-thread.map,-cref,-u,Reset_Handler -T board/linker_scripts/link.lds' + + CPATH = '' + LPATH = '' + + if BUILD == 'debug': + CFLAGS += ' -O0 -gdwarf-2 -g' + AFLAGS += ' -gdwarf-2' + else: + CFLAGS += ' -O2' + + CXXFLAGS = CFLAGS + + POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n' + + +def dist_handle(BSP_ROOT, dist_dir): + import sys + cwd_path = os.getcwd() + sys.path.append(os.path.join(os.path.dirname(BSP_ROOT), 'tools')) + from sdk_dist import dist_do_building + dist_do_building(BSP_ROOT, dist_dir) + diff --git a/bsp/ti/c28x/tms320f28379d/rtconfig_preinc.h b/bsp/ti/c28x/tms320f28379d/rtconfig_preinc.h new file mode 100644 index 0000000000..acd8a04e0a --- /dev/null +++ b/bsp/ti/c28x/tms320f28379d/rtconfig_preinc.h @@ -0,0 +1,15 @@ + +#ifndef RTCONFIG_PREINC_H__ +#define RTCONFIG_PREINC_H__ + +/* Automatically generated file; DO NOT EDIT. */ +/* RT-Thread pre-include file */ + +#define HAVE_CCONFIG_H +#define RT_USING_LIBC +#define RT_USING_NEWLIB +#define USE_HAL_DRIVER +#define _POSIX_C_SOURCE 1 +#define __RTTHREAD__ + +#endif /*RTCONFIG_PREINC_H__*/ diff --git a/bsp/ti/c28x/tms320f28379d/template.cproject b/bsp/ti/c28x/tms320f28379d/template.cproject new file mode 100644 index 0000000000..28ccde2f07 --- /dev/null +++ b/bsp/ti/c28x/tms320f28379d/template.cproject @@ -0,0 +1,307 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tools/eclipse.py b/tools/eclipse.py index 766e91b017..f6109df5ed 100644 --- a/tools/eclipse.py +++ b/tools/eclipse.py @@ -21,7 +21,7 @@ from utils import xml_indent MODULE_VER_NUM = 6 -source_pattern = ['*.c', '*.cpp', '*.cxx', '*.s', '*.S', '*.asm'] +source_pattern = ['*.c', '*.cpp', '*.cxx', '*.s', '*.S', '*.asm','*.cmd'] def OSPath(path):