├── .cppcheckignore
├── .gitignore
├── LICENSE
├── README.md
├── azure-pipelines.yml
├── ci
├── lib.sh
└── run_build.sh
└── projects
├── ADICUP360_ADXL362_Project
├── .cproject
├── .gitignore
├── .project
├── .settings
│ ├── DefaultProjectAttribute.prefs
│ └── ToolChain.prefs
├── RTE
│ ├── Device
│ │ └── ADuCM360
│ │ │ ├── ADuCM360.ld
│ │ │ ├── AdcLib.h
│ │ │ ├── ClkLib.h
│ │ │ ├── DacLib.h
│ │ │ ├── DioLib.h
│ │ │ ├── DmaLib.h
│ │ │ ├── FeeLib.h
│ │ │ ├── GptLib.h
│ │ │ ├── I2cLib.h
│ │ │ ├── IexcLib.h
│ │ │ ├── IntLib.h
│ │ │ ├── PwmLib.h
│ │ │ ├── PwrLib.h
│ │ │ ├── RstLib.h
│ │ │ ├── SpiLib.h
│ │ │ ├── UrtLib.h
│ │ │ ├── WdtLib.h
│ │ │ ├── WutLib.h
│ │ │ ├── startup_ADuCM360.c
│ │ │ └── system_ADuCM360.c
│ └── RTE_Components.h
├── include
│ ├── ADXL362.h
│ ├── Communication.h
│ ├── HTTP_REST_API.h
│ ├── ISM43340.h
│ ├── Lcd.h
│ ├── Services.h
│ ├── Timer.h
│ └── User_Settings.h
├── src
│ ├── ADXL362.c
│ ├── Communication.c
│ ├── HTTP_REST_API.c
│ ├── ISM43340.c
│ ├── Lcd.c
│ ├── Services.c
│ ├── Timer.c
│ └── main.c
├── system.rteconfig
├── system.svc
└── system
│ ├── adi_initialize.c
│ └── adi_initialize.h
├── ADICUP360_CN0357_Project
├── .cproject
├── .gitignore
├── .project
├── .settings
│ ├── DefaultProjectAttribute.prefs
│ └── ToolChain.prefs
├── RTE
│ ├── Device
│ │ └── ADuCM360
│ │ │ ├── ADuCM360.ld
│ │ │ ├── ClkLib.h
│ │ │ ├── DioLib.h
│ │ │ ├── DmaLib.h
│ │ │ ├── SpiLib.h
│ │ │ ├── UrtLib.h
│ │ │ ├── startup_ADuCM360.c
│ │ │ └── system_ADuCM360.c
│ └── RTE_Components.h
├── include
│ ├── AD5270.h
│ ├── AD7790.h
│ ├── CN0357.h
│ ├── Communication.h
│ ├── HTTP_REST_API.h
│ ├── ISM43340.h
│ ├── Services.h
│ ├── Timer.h
│ └── User_Settings.h
├── src
│ ├── AD5270.c
│ ├── AD7790.c
│ ├── CN0357.c
│ ├── Communication.c
│ ├── HTTP_REST_API.c
│ ├── ISM43340.c
│ ├── Services.c
│ ├── Timer.c
│ └── main.c
├── system.rteconfig
├── system.svc
└── system
│ ├── adi_initialize.c
│ └── adi_initialize.h
├── ADICUP360_CN0397_Project
├── .cproject
├── .gitignore
├── .project
├── .settings
│ ├── DefaultProjectAttribute.prefs
│ └── ToolChain.prefs
├── RTE
│ ├── Device
│ │ └── ADuCM360
│ │ │ ├── ADuCM360.ld
│ │ │ ├── ClkLib.h
│ │ │ ├── DioLib.h
│ │ │ ├── DmaLib.h
│ │ │ ├── IntLib.h
│ │ │ ├── SpiLib.h
│ │ │ ├── UrtLib.h
│ │ │ ├── startup_ADuCM360.c
│ │ │ └── system_ADuCM360.c
│ └── RTE_Components.h
├── include
│ ├── AD7798.h
│ ├── CN0397.h
│ ├── Communication.h
│ ├── HTTP_REST_API.h
│ ├── ISM43340.h
│ ├── Services.h
│ ├── Timer.h
│ └── User_Settings.h
├── src
│ ├── AD7798.c
│ ├── CN0397.c
│ ├── Communication.c
│ ├── HTTP_REST_API.c
│ ├── ISM43340.c
│ ├── Services.c
│ ├── Timer.c
│ └── main.c
├── system.rteconfig
├── system.svc
└── system
│ ├── adi_initialize.c
│ └── adi_initialize.h
├── ADuCM360_demo_Smart_Greenhouse
├── .cproject
├── .gitignore
├── .project
├── .settings
│ ├── ToolChain.prefs
│ └── s
│ │ ├── DefaultProjectAttribute.prefs
│ │ └── ToolChain.prefs
├── RTE
│ ├── Device
│ │ └── ADuCM360
│ │ │ ├── ADuCM360.ld
│ │ │ ├── ClkLib.h
│ │ │ ├── DioLib.h
│ │ │ ├── DmaLib.h
│ │ │ ├── I2cLib.h
│ │ │ ├── IntLib.h
│ │ │ ├── SpiLib.h
│ │ │ ├── UrtLib.h
│ │ │ ├── startup_ADuCM360.c
│ │ │ └── system_ADuCM360.c
│ └── RTE_Components.h
├── include
│ ├── AD7124.h
│ ├── AD7798.h
│ ├── CN0370.h
│ ├── CN0397.h
│ ├── CN0398.h
│ ├── Command.h
│ ├── Communication.h
│ ├── Timer.h
│ └── lcd.h
├── src
│ ├── AD7124.c
│ ├── AD7798.c
│ ├── CN0370.c
│ ├── CN0397.c
│ ├── CN0398.c
│ ├── Command.c
│ ├── Communication.c
│ ├── Timer.c
│ ├── lcd.c
│ └── main.c
├── system.rteconfig
├── system.svc
└── system
│ ├── adi_initialize.c
│ └── adi_initialize.h
├── ADuCM360_demo_adt7420_pmdz
├── .cproject
├── .gitignore
├── .project
├── .settings
│ ├── ToolChain.prefs
│ └── settings
│ │ ├── DefaultProjectAttribute.prefs
│ │ └── ToolChain.prefs
├── RTE
│ ├── Device
│ │ └── ADuCM360
│ │ │ ├── ADuCM360.ld
│ │ │ ├── ClkLib.h
│ │ │ ├── DioLib.h
│ │ │ ├── DmaLib.h
│ │ │ ├── I2cLib.h
│ │ │ ├── UrtLib.h
│ │ │ ├── startup_ADuCM360.c
│ │ │ └── system_ADuCM360.c
│ └── RTE_Components.h
├── include
│ ├── ADT7420.h
│ ├── Communication.h
│ └── Timer.h
├── src
│ ├── ADT7420.c
│ ├── Communication.c
│ ├── Timer.c
│ └── main.c
├── system.rteconfig
├── system.svc
└── system
│ ├── adi_initialize.c
│ └── adi_initialize.h
├── ADuCM360_demo_adxl355_pmdz
├── .cproject
├── .gitignore
├── .project
├── .settings
│ ├── ToolChain.prefs
│ └── settings
│ │ ├── DefaultProjectAttribute.prefs
│ │ └── ToolChain.prefs
├── RTE
│ ├── Device
│ │ └── ADuCM360
│ │ │ ├── ADuCM360.ld
│ │ │ ├── ClkLib.h
│ │ │ ├── DioLib.h
│ │ │ ├── DmaLib.h
│ │ │ ├── SpiLib.h
│ │ │ ├── UrtLib.h
│ │ │ ├── startup_ADuCM360.c
│ │ │ └── system_ADuCM360.c
│ └── RTE_Components.h
├── include
│ ├── ADXL355.h
│ ├── Communication.h
│ └── Timer.h
├── src
│ ├── ADXL355.c
│ ├── Communication.c
│ ├── Timer.c
│ └── main.c
├── system.rteconfig
├── system.svc
└── system
│ ├── adi_initialize.c
│ └── adi_initialize.h
├── ADuCM360_demo_adxl362
├── .cproject
├── .gitignore
├── .project
├── .settings
│ ├── ToolChain.prefs
│ ├── org.eclipse.cdt.managedbuilder.core.prefs
│ └── settings
│ │ ├── DefaultProjectAttribute.prefs
│ │ └── ToolChain.prefs
├── RTE
│ ├── Device
│ │ └── ADuCM360
│ │ │ ├── ADuCM360.ld
│ │ │ ├── ClkLib.h
│ │ │ ├── DioLib.h
│ │ │ ├── DmaLib.h
│ │ │ ├── SpiLib.h
│ │ │ ├── UrtLib.h
│ │ │ ├── startup_ADuCM360.c
│ │ │ └── system_ADuCM360.c
│ └── RTE_Components.h
├── include
│ ├── ADXL362.h
│ ├── Communication.h
│ ├── Lcd.h
│ └── Timer.h
├── src
│ ├── ADXL362.c
│ ├── Communication.c
│ ├── Lcd.c
│ ├── Timer.c
│ └── main.c
├── system.rteconfig
├── system.svc
└── system
│ ├── adi_initialize.c
│ └── adi_initialize.h
├── ADuCM360_demo_blink
├── ARM
│ ├── .gitignore
│ ├── ADuCM360_demo_blink.uvoptx
│ ├── ADuCM360_demo_blink.uvprojx
│ ├── include
│ │ ├── Timer.h
│ │ └── blink.h
│ └── src
│ │ ├── Timer.c
│ │ ├── blink.c
│ │ └── main.c
├── GCC
│ ├── .cproject
│ ├── .gitignore
│ ├── .project
│ ├── .settings
│ │ ├── DefaultProjectAttribute.prefs
│ │ └── ToolChain.prefs
│ ├── RTE
│ │ ├── Device
│ │ │ └── ADuCM360
│ │ │ │ ├── ADuCM360.ld
│ │ │ │ ├── DioLib.h
│ │ │ │ ├── GptLib.h
│ │ │ │ ├── startup_ADuCM360.c
│ │ │ │ └── system_ADuCM360.c
│ │ └── RTE_Components.h
│ ├── include
│ │ ├── Timer.h
│ │ └── blink.h
│ ├── src
│ │ ├── Timer.c
│ │ ├── blink.c
│ │ └── main.c
│ ├── system.rteconfig
│ ├── system.svc
│ └── system
│ │ ├── adi_initialize.c
│ │ └── adi_initialize.h
└── IAR
│ ├── .gitignore
│ ├── ADuCM360_demo_blink.dep
│ ├── ADuCM360_demo_blink.ewd
│ ├── ADuCM360_demo_blink.ewp
│ ├── ADuCM360_demo_blink.ewt
│ ├── ADuCM360_demo_blink.eww
│ ├── include
│ ├── Timer.h
│ └── blink.h
│ ├── settings
│ ├── ADuCM360_demo_blink.Debug.cspy.bat
│ ├── ADuCM360_demo_blink.Debug.driver.xcl
│ ├── ADuCM360_demo_blink.Debug.general.xcl
│ ├── ADuCM360_demo_blink.Release.cspy.bat
│ ├── ADuCM360_demo_blink.Release.driver.xcl
│ ├── ADuCM360_demo_blink.Release.general.xcl
│ ├── ADuCM360_demo_blink.crun
│ ├── ADuCM360_demo_blink.dbgdt
│ ├── ADuCM360_demo_blink.dni
│ ├── ADuCM360_demo_blink.wsdt
│ └── ADuCM360_demo_blink.wspos
│ ├── src
│ ├── Timer.c
│ ├── blink.c
│ └── main.c
│ └── system
│ ├── include
│ ├── ADuCM360
│ │ ├── AdcLib.h
│ │ ├── ClkLib.h
│ │ ├── DacLib.h
│ │ ├── DasLib.h
│ │ ├── DioLib.h
│ │ ├── DmaLib.h
│ │ ├── FeeLib.h
│ │ ├── GptLib.h
│ │ ├── I2cLib.h
│ │ ├── IexcLib.h
│ │ ├── IntLib.h
│ │ ├── PwmLib.h
│ │ ├── PwrLib.h
│ │ ├── RstLib.h
│ │ ├── SpiLib.h
│ │ ├── UrtLib.h
│ │ ├── WdtLib.h
│ │ └── WutLib.h
│ ├── CMSIS
│ │ ├── ADuCM360.h
│ │ ├── README_CMSIS.txt
│ │ ├── arm_common_tables.h
│ │ ├── arm_const_structs.h
│ │ ├── arm_math.h
│ │ ├── cmsis_device.h
│ │ ├── core_cm0.h
│ │ ├── core_cm0plus.h
│ │ ├── core_cm3.h
│ │ ├── core_cm4.h
│ │ ├── core_cm4_simd.h
│ │ ├── core_cmFunc.h
│ │ ├── core_cmInstr.h
│ │ ├── core_sc000.h
│ │ ├── core_sc300.h
│ │ └── system_ADuCM360.h
│ ├── arm
│ │ └── semihosting.h
│ ├── cortexm
│ │ └── ExceptionHandlers.h
│ └── diag
│ │ └── Trace.h
│ └── src
│ ├── ADuCM360
│ ├── AdcLib.c
│ ├── ClkLib.c
│ ├── DacLib.c
│ ├── DioLib.c
│ ├── DmaLib.c
│ ├── FeeLib.c
│ ├── GptLib.c
│ ├── I2cLib.c
│ ├── IexcLib.c
│ ├── IntLib.c
│ ├── PwmLib.c
│ ├── PwrLib.c
│ ├── RstLib.c
│ ├── SpiLib.c
│ ├── UrtLib.c
│ ├── WdtLib.c
│ ├── WutLib.c
│ └── startup_ADuCM360.s
│ ├── CMSIS
│ └── system_ADuCM360.c
│ ├── cortexm
│ ├── _initialize_hardware.c
│ ├── _reset_hardware.c
│ └── exception_handlers.c
│ ├── diag
│ ├── Trace.c
│ └── trace_impl.c
│ └── newlib
│ ├── README.txt
│ ├── _cxx.cpp
│ ├── _exit.c
│ ├── _sbrk.c
│ ├── _startup.c
│ ├── _syscalls.c
│ └── assert.c
├── ADuCM360_demo_cli
├── .cproject
├── .gitignore
├── .project
├── .settings
│ └── ToolChain.prefs
├── RTE
│ ├── Device
│ │ └── ADuCM360
│ │ │ ├── ADuCM360.ld
│ │ │ ├── ClkLib.h
│ │ │ ├── DioLib.h
│ │ │ ├── DmaLib.h
│ │ │ ├── GptLib.h
│ │ │ ├── UrtLib.h
│ │ │ ├── startup_ADuCM360.c
│ │ │ └── system_ADuCM360.c
│ └── RTE_Components.h
├── include
│ ├── Cli.h
│ ├── Communication.h
│ └── Timer.h
├── src
│ ├── Cli.c
│ ├── Communication.c
│ ├── Timer.c
│ └── main.c
├── system.rteconfig
├── system.svc
└── system
│ ├── adi_initialize.c
│ └── adi_initialize.h
├── ADuCM360_demo_cn0216
├── .cproject
├── .gitignore
├── .project
├── .settings
│ ├── ToolChain.prefs
│ └── settings
│ │ ├── DefaultProjectAttribute.prefs
│ │ └── ToolChain.prefs
├── RTE
│ ├── Device
│ │ └── ADuCM360
│ │ │ ├── ADuCM360.ld
│ │ │ ├── ClkLib.h
│ │ │ ├── DioLib.h
│ │ │ ├── DmaLib.h
│ │ │ ├── SpiLib.h
│ │ │ ├── UrtLib.h
│ │ │ ├── startup_ADuCM360.c
│ │ │ └── system_ADuCM360.c
│ └── RTE_Components.h
├── include
│ ├── AD7791.h
│ ├── CN0216.h
│ ├── Communication.h
│ └── Timer.h
├── src
│ ├── AD7791.c
│ ├── CN0216.c
│ ├── Communication.c
│ ├── Timer.c
│ └── main.c
├── system.rteconfig
├── system.svc
└── system
│ ├── adi_initialize.c
│ └── adi_initialize.h
├── ADuCM360_demo_cn0326
├── .cproject
├── .gitignore
├── .project
├── .settings
│ ├── ToolChain.prefs
│ └── settings
│ │ ├── DefaultProjectAttribute.prefs
│ │ └── ToolChain.prefs
├── RTE
│ ├── Device
│ │ └── ADuCM360
│ │ │ ├── ADuCM360.ld
│ │ │ ├── ClkLib.h
│ │ │ ├── DioLib.h
│ │ │ ├── DmaLib.h
│ │ │ ├── SpiLib.h
│ │ │ ├── UrtLib.h
│ │ │ ├── startup_ADuCM360.c
│ │ │ └── system_ADuCM360.c
│ └── RTE_Components.h
├── include
│ ├── AD7793.h
│ ├── CN0326.h
│ ├── Communication.h
│ └── Timer.h
├── src
│ ├── AD7793.c
│ ├── CN0326.c
│ ├── Communication.c
│ ├── Timer.c
│ └── main.c
├── system.rteconfig
├── system.svc
└── system
│ ├── adi_initialize.c
│ └── adi_initialize.h
├── ADuCM360_demo_cn0336
├── .cproject
├── .gitignore
├── .project
├── .settings
│ ├── ToolChain.prefs
│ └── settings
│ │ ├── DefaultProjectAttribute.prefs
│ │ └── ToolChain.prefs
├── RTE
│ ├── Device
│ │ └── ADuCM360
│ │ │ ├── ADuCM360.ld
│ │ │ ├── ClkLib.h
│ │ │ ├── DioLib.h
│ │ │ ├── DmaLib.h
│ │ │ ├── SpiLib.h
│ │ │ ├── UrtLib.h
│ │ │ ├── startup_ADuCM360.c
│ │ │ └── system_ADuCM360.c
│ └── RTE_Components.h
├── include
│ ├── AD7091R.h
│ ├── CN0336.h
│ ├── Communication.h
│ └── Timer.h
├── src
│ ├── AD7091R.c
│ ├── CN0336.c
│ ├── Communication.c
│ ├── Timer.c
│ └── main.c
├── system.rteconfig
├── system.svc
└── system
│ ├── adi_initialize.c
│ └── adi_initialize.h
├── ADuCM360_demo_cn0337
├── .cproject
├── .gitignore
├── .project
├── .settings
│ ├── ToolChain.prefs
│ ├── org.eclipse.core.resources.prefs
│ └── settings
│ │ ├── DefaultProjectAttribute.prefs
│ │ └── ToolChain.prefs
├── RTE
│ ├── Device
│ │ └── ADuCM360
│ │ │ ├── ADuCM360.ld
│ │ │ ├── ClkLib.h
│ │ │ ├── DioLib.h
│ │ │ ├── DmaLib.h
│ │ │ ├── SpiLib.h
│ │ │ ├── UrtLib.h
│ │ │ ├── startup_ADuCM360.c
│ │ │ └── system_ADuCM360.c
│ └── RTE_Components.h
├── include
│ ├── AD7091R.h
│ ├── CN0337.h
│ ├── Communication.h
│ └── Timer.h
├── src
│ ├── AD7091R.c
│ ├── CN0337.c
│ ├── Communication.c
│ ├── Timer.c
│ └── main.c
├── system.rteconfig
├── system.svc
└── system
│ ├── adi_initialize.c
│ └── adi_initialize.h
├── ADuCM360_demo_cn0338
├── .cproject
├── .gitignore
├── .project
├── .settings
│ ├── DefaultProjectAttribute.prefs
│ ├── ToolChain.prefs
│ ├── org.eclipse.cdt.managedbuilder.core.prefs
│ └── settings
│ │ ├── DefaultProjectAttribute.prefs
│ │ └── ToolChain.prefs
├── RTE
│ ├── Device
│ │ └── ADuCM360
│ │ │ ├── ADuCM360.ld
│ │ │ ├── AdcLib.h
│ │ │ ├── ClkLib.h
│ │ │ ├── DioLib.h
│ │ │ ├── DmaLib.h
│ │ │ ├── FeeLib.h
│ │ │ ├── IexcLib.h
│ │ │ ├── IntLib.h
│ │ │ ├── SpiLib.h
│ │ │ ├── UrtLib.h
│ │ │ ├── startup_ADuCM360.c
│ │ │ └── system_ADuCM360.c
│ └── RTE_Components.h
├── include
│ ├── ADC.h
│ ├── CN0338.h
│ ├── Cmd.h
│ ├── Cmd_calibrate.h
│ ├── Cmd_settings.h
│ ├── Communication.h
│ ├── Flash.h
│ └── Timer.h
├── src
│ ├── ADC.cpp
│ ├── CN0338.cpp
│ ├── Cmd.cpp
│ ├── Cmd_calibrate.cpp
│ ├── Cmd_settings.cpp
│ ├── Communication.cpp
│ ├── Flash.cpp
│ ├── Timer.cpp
│ └── main.cpp
├── system.rteconfig
├── system.svc
└── system
│ ├── adi_initialize.c
│ └── adi_initialize.h
├── ADuCM360_demo_cn0357
├── .cproject
├── .gitignore
├── .project
├── .settings
│ ├── ToolChain.prefs
│ └── settings
│ │ ├── DefaultProjectAttribute.prefs
│ │ └── ToolChain.prefs
├── RTE
│ ├── Device
│ │ └── ADuCM360
│ │ │ ├── ADuCM360.ld
│ │ │ ├── ClkLib.h
│ │ │ ├── DioLib.h
│ │ │ ├── DmaLib.h
│ │ │ ├── SpiLib.h
│ │ │ ├── UrtLib.h
│ │ │ ├── startup_ADuCM360.c
│ │ │ └── system_ADuCM360.c
│ └── RTE_Components.h
├── include
│ ├── AD5270.h
│ ├── AD7790.h
│ ├── CN0357.h
│ ├── Communication.h
│ └── Timer.h
├── src
│ ├── AD5270.c
│ ├── AD7790.c
│ ├── ADuCM360_demo_cn0357.h
│ ├── CN0357.c
│ ├── Communication.c
│ ├── Timer.c
│ └── main.c
├── system.rteconfig
├── system.svc
└── system
│ ├── adi_initialize.c
│ └── adi_initialize.h
├── ADuCM360_demo_cn0359
├── .cproject
├── .project
├── .settings
│ ├── DefaultProjectAttribute.prefs
│ └── ToolChain.prefs
├── RTE
│ ├── Device
│ │ └── ADuCM360
│ │ │ ├── ADuCM360.ld
│ │ │ ├── startup_ADuCM360.c
│ │ │ └── system_ADuCM360.c
│ └── RTE_Components.h
├── include
│ ├── applications
│ │ ├── command
│ │ │ ├── cmd_cellconstant.h
│ │ │ ├── cmd_coefficient.h
│ │ │ ├── cmd_frequency.h
│ │ │ ├── cmd_holdtime.h
│ │ │ ├── cmd_poll.h
│ │ │ ├── cmd_setuptime.h
│ │ │ └── cmd_voltage.h
│ │ ├── dialog
│ │ │ ├── BaudRateDialog.h
│ │ │ ├── CellConstantDialog.h
│ │ │ ├── CoefficientDialog.h
│ │ │ ├── ContrastDialog.h
│ │ │ ├── Dialog.h
│ │ │ ├── FirmwareDialog.h
│ │ │ ├── FrequencyDialog.h
│ │ │ ├── HoldTimeDialog.h
│ │ │ ├── HomeDialog.h
│ │ │ ├── SettingDialog.h
│ │ │ ├── SetupTimeDialog.h
│ │ │ ├── SplashDialog.h
│ │ │ └── VoltageDialog.h
│ │ ├── message.h
│ │ └── uart_exec.h
│ └── hal
│ │ ├── Initial.h
│ │ ├── RTD.h
│ │ ├── devices.h
│ │ ├── drivers
│ │ ├── Sampling.h
│ │ ├── ad8253.h
│ │ ├── adc.h
│ │ ├── buzzer.h
│ │ ├── dac.h
│ │ ├── encoder.h
│ │ ├── flash.h
│ │ ├── lcd.h
│ │ ├── pwm.h
│ │ └── uart.h
│ │ └── timer.h
├── ld_script
│ └── gcc_arm.ld
├── src
│ ├── applications
│ │ ├── command
│ │ │ ├── cmd_cellconstant.cpp
│ │ │ ├── cmd_coefficient.cpp
│ │ │ ├── cmd_frequency.cpp
│ │ │ ├── cmd_holdtime.cpp
│ │ │ ├── cmd_poll.cpp
│ │ │ ├── cmd_setuptime.cpp
│ │ │ └── cmd_voltage.cpp
│ │ ├── dialog
│ │ │ ├── BaudRateDialog.cpp
│ │ │ ├── CellConstantDialog.cpp
│ │ │ ├── CoefficientDialog.cpp
│ │ │ ├── ContrastDialog.cpp
│ │ │ ├── Dialog.cpp
│ │ │ ├── FirmwareDialog.cpp
│ │ │ ├── FrequencyDialog.cpp
│ │ │ ├── HoldTimeDialog.cpp
│ │ │ ├── HomeDialog.cpp
│ │ │ ├── SettingDialog.cpp
│ │ │ ├── SetupTimeDialog.cpp
│ │ │ ├── SplashDialog.cpp
│ │ │ └── VoltageDialog.cpp
│ │ ├── main.cpp
│ │ ├── message.cpp
│ │ └── uart_exec.cpp
│ └── hal
│ │ ├── Exceptions.cpp
│ │ ├── RTD.cpp
│ │ ├── devices.cpp
│ │ ├── drivers
│ │ ├── ad8253.cpp
│ │ ├── adc.cpp
│ │ ├── buzzer.cpp
│ │ ├── dac.cpp
│ │ ├── encoder.cpp
│ │ ├── flash.cpp
│ │ ├── lcd.cpp
│ │ ├── pwm.cpp
│ │ └── uart.cpp
│ │ ├── syscalls.cpp
│ │ └── timer.cpp
├── system.rteconfig
└── system.svc
├── ADuCM360_demo_cn0359_reva
├── .cproject
├── .project
├── .settings
│ ├── DefaultProjectAttribute.prefs
│ ├── ToolChain.prefs
│ └── com.analog.crosscore.system.validator.prefs
├── .vscode
│ └── c_cpp_properties.json
├── RTE
│ ├── Device
│ │ └── ADuCM360
│ │ │ ├── ADuCM360.ld
│ │ │ ├── startup_ADuCM360.c
│ │ │ └── system_ADuCM360.c
│ └── RTE_Components.h
├── include
│ ├── applications
│ │ ├── command
│ │ │ ├── cmd_cellconstant.h
│ │ │ ├── cmd_coefficient.h
│ │ │ ├── cmd_frequency.h
│ │ │ ├── cmd_holdtime.h
│ │ │ ├── cmd_poll.h
│ │ │ ├── cmd_setuptime.h
│ │ │ └── cmd_voltage.h
│ │ ├── dialog
│ │ │ ├── AddressDialog.h
│ │ │ ├── BaudRateDialog.h
│ │ │ ├── CellConstantDialog.h
│ │ │ ├── CoefficientDialog.h
│ │ │ ├── ContrastDialog.h
│ │ │ ├── Dialog.h
│ │ │ ├── FirmwareDialog.h
│ │ │ ├── FrequencyDialog.h
│ │ │ ├── HoldTimeDialog.h
│ │ │ ├── HomeDialog.h
│ │ │ ├── SettingDialog.h
│ │ │ ├── SetupTimeDialog.h
│ │ │ ├── SplashDialog.h
│ │ │ └── VoltageDialog.h
│ │ ├── message.h
│ │ └── uart_exec.h
│ └── hal
│ │ ├── Initial.h
│ │ ├── RTD.h
│ │ ├── devices.h
│ │ ├── drivers
│ │ ├── Sampling.h
│ │ ├── ad8253.h
│ │ ├── adc.h
│ │ ├── buzzer.h
│ │ ├── dac.h
│ │ ├── dma.h
│ │ ├── encoder.h
│ │ ├── flash.h
│ │ ├── lcd.h
│ │ ├── pwm.h
│ │ └── uart.h
│ │ └── timer.h
├── ld_script
│ └── gcc_arm.ld
├── src
│ ├── applications
│ │ ├── command
│ │ │ ├── cmd_cellconstant.cpp
│ │ │ ├── cmd_coefficient.cpp
│ │ │ ├── cmd_frequency.cpp
│ │ │ ├── cmd_holdtime.cpp
│ │ │ ├── cmd_poll.cpp
│ │ │ ├── cmd_setuptime.cpp
│ │ │ └── cmd_voltage.cpp
│ │ ├── dialog
│ │ │ ├── AddressDialog.cpp
│ │ │ ├── BaudRateDialog.cpp
│ │ │ ├── CellConstantDialog.cpp
│ │ │ ├── CoefficientDialog.cpp
│ │ │ ├── ContrastDialog.cpp
│ │ │ ├── Dialog.cpp
│ │ │ ├── FirmwareDialog.cpp
│ │ │ ├── FrequencyDialog.cpp
│ │ │ ├── HoldTimeDialog.cpp
│ │ │ ├── HomeDialog.cpp
│ │ │ ├── SettingDialog.cpp
│ │ │ ├── SetupTimeDialog.cpp
│ │ │ ├── SplashDialog.cpp
│ │ │ └── VoltageDialog.cpp
│ │ ├── main.cpp
│ │ ├── message.cpp
│ │ └── uart_exec.cpp
│ ├── hal
│ │ ├── Exceptions.cpp
│ │ ├── RTD.cpp
│ │ ├── devices.cpp
│ │ ├── drivers
│ │ │ ├── ad8253.cpp
│ │ │ ├── adc.cpp
│ │ │ ├── buzzer.cpp
│ │ │ ├── dac.cpp
│ │ │ ├── dma.cpp
│ │ │ ├── encoder.cpp
│ │ │ ├── flash.cpp
│ │ │ ├── lcd.cpp
│ │ │ ├── pwm.cpp
│ │ │ └── uart.cpp
│ │ ├── syscalls.cpp
│ │ └── timer.cpp
│ └── system
│ │ ├── cmsis
│ │ ├── startup_ADuCM360.S
│ │ └── system_ADuCM360.c
│ │ └── include
│ │ └── cmsis
│ │ ├── ADuCM360.h
│ │ ├── arm_common_tables.h
│ │ ├── arm_const_structs.h
│ │ ├── arm_math.h
│ │ ├── cmsis_armcc.h
│ │ ├── cmsis_armcc_V6.h
│ │ ├── cmsis_device.h
│ │ ├── cmsis_gcc.h
│ │ ├── core_cm0.h
│ │ ├── core_cm0plus.h
│ │ ├── core_cm3.h
│ │ ├── core_cm4.h
│ │ ├── core_cm7.h
│ │ ├── core_cmFunc.h
│ │ ├── core_cmInstr.h
│ │ ├── core_cmSimd.h
│ │ ├── core_sc000.h
│ │ ├── core_sc300.h
│ │ └── system_ADuCM360.h
├── system.rteconfig
└── system.svc
├── ADuCM360_demo_cn0391
├── .cproject
├── .gitignore
├── .project
├── .settings
│ ├── ToolChain.prefs
│ └── settings
│ │ ├── DefaultProjectAttribute.prefs
│ │ └── ToolChain.prefs
├── RTE
│ ├── Device
│ │ └── ADuCM360
│ │ │ ├── ADuCM360.ld
│ │ │ ├── ClkLib.h
│ │ │ ├── DioLib.h
│ │ │ ├── DmaLib.h
│ │ │ ├── SpiLib.h
│ │ │ ├── UrtLib.h
│ │ │ ├── startup_ADuCM360.c
│ │ │ └── system_ADuCM360.c
│ └── RTE_Components.h
├── include
│ ├── AD7124.h
│ ├── CN0391.h
│ ├── Communication.h
│ ├── RTD.h
│ ├── Thermocouple.h
│ └── Timer.h
├── src
│ ├── AD7124.cpp
│ ├── CN0391.cpp
│ ├── Communication.cpp
│ ├── Timer.cpp
│ └── main.cpp
├── system.rteconfig
├── system.svc
└── system
│ ├── adi_initialize.c
│ └── adi_initialize.h
├── ADuCM360_demo_cn0394
├── .cproject
├── .gitignore
├── .project
├── .settings
│ ├── ToolChain.prefs
│ └── s
│ │ ├── DefaultProjectAttribute.prefs
│ │ └── ToolChain.prefs
├── RTE
│ ├── Device
│ │ └── ADuCM360
│ │ │ ├── ADuCM360.ld
│ │ │ ├── AdcLib.h
│ │ │ ├── ClkLib.h
│ │ │ ├── DioLib.h
│ │ │ ├── DmaLib.h
│ │ │ ├── IexcLib.h
│ │ │ ├── IntLib.h
│ │ │ ├── SpiLib.h
│ │ │ ├── UrtLib.h
│ │ │ ├── startup_ADuCM360.c
│ │ │ └── system_ADuCM360.c
│ └── RTE_Components.h
├── include
│ ├── ADC.h
│ ├── CN0394.h
│ ├── Communication.h
│ ├── RTD.h
│ ├── Thermocouple.h
│ └── Timer.h
├── src
│ ├── ADC.c
│ ├── CN0394.c
│ ├── Communication.c
│ ├── Timer.c
│ └── main.c
├── system.rteconfig
├── system.svc
└── system
│ ├── adi_initialize.c
│ └── adi_initialize.h
├── ADuCM360_demo_cn0395
├── .cproject
├── .gitignore
├── .project
├── .settings
│ ├── ToolChain.prefs
│ ├── org.eclipse.cdt.managedbuilder.core.prefs
│ └── s
│ │ ├── DefaultProjectAttribute.prefs
│ │ └── ToolChain.prefs
├── RTE
│ ├── Device
│ │ └── ADuCM360
│ │ │ ├── ADuCM360.ld
│ │ │ ├── AdcLib.h
│ │ │ ├── ClkLib.h
│ │ │ ├── DioLib.h
│ │ │ ├── DmaLib.h
│ │ │ ├── IntLib.h
│ │ │ ├── PwmLib.h
│ │ │ ├── SpiLib.h
│ │ │ ├── UrtLib.h
│ │ │ ├── startup_ADuCM360.c
│ │ │ └── system_ADuCM360.c
│ └── RTE_Components.h
├── include
│ ├── AD7988.h
│ ├── ADN8810.h
│ ├── CN0395.h
│ ├── Communication.h
│ ├── FeeLib.h
│ ├── Flash.h
│ ├── GptLib.h
│ ├── I2cLib.h
│ ├── SHT30.h
│ └── Timer.h
├── src
│ ├── AD7988.c
│ ├── ADN8810.c
│ ├── CN0395.c
│ ├── Communication.c
│ ├── FeeLib.c
│ ├── Flash.c
│ ├── GptLib.c
│ ├── I2cLib.c
│ ├── SHT30.c
│ ├── Timer.c
│ └── main.c
├── system.rteconfig
├── system.svc
└── system
│ ├── adi_initialize.c
│ └── adi_initialize.h
├── ADuCM360_demo_cn0396
├── .cproject
├── .gitignore
├── .project
├── .settings
│ ├── ToolChain.prefs
│ └── settings
│ │ ├── DefaultProjectAttribute.prefs
│ │ └── ToolChain.prefs
├── RTE
│ ├── Device
│ │ └── ADuCM360
│ │ │ ├── ADuCM360.ld
│ │ │ ├── ClkLib.h
│ │ │ ├── DioLib.h
│ │ │ ├── DmaLib.h
│ │ │ ├── IntLib.h
│ │ │ ├── SpiLib.h
│ │ │ ├── UrtLib.h
│ │ │ ├── startup_ADuCM360.c
│ │ │ └── system_ADuCM360.c
│ └── RTE_Components.h
├── include
│ ├── AD5270.h
│ ├── AD7798.h
│ ├── ADT7310.h
│ ├── CN0396.h
│ ├── Communication.h
│ └── Timer.h
├── src
│ ├── AD5270.c
│ ├── AD7798.c
│ ├── ADT7310.c
│ ├── CN0396.c
│ ├── Communication.c
│ ├── Timer.c
│ └── main.c
├── system.rteconfig
├── system.svc
└── system
│ ├── adi_initialize.c
│ └── adi_initialize.h
├── ADuCM360_demo_cn0397
├── .cproject
├── .gitignore
├── .project
├── .settings
│ ├── ToolChain.prefs
│ └── s
│ │ ├── DefaultProjectAttribute.prefs
│ │ └── ToolChain.prefs
├── RTE
│ ├── Device
│ │ └── ADuCM360
│ │ │ ├── ADuCM360.ld
│ │ │ ├── ClkLib.h
│ │ │ ├── DioLib.h
│ │ │ ├── DmaLib.h
│ │ │ ├── IntLib.h
│ │ │ ├── SpiLib.h
│ │ │ ├── UrtLib.h
│ │ │ ├── startup_ADuCM360.c
│ │ │ └── system_ADuCM360.c
│ └── RTE_Components.h
├── include
│ ├── AD7798.h
│ ├── CN0397.h
│ ├── Communication.h
│ └── Timer.h
├── src
│ ├── AD7798.c
│ ├── CN0397.c
│ ├── Communication.c
│ ├── Timer.c
│ └── main.c
├── system.rteconfig
├── system.svc
└── system
│ ├── adi_initialize.c
│ └── adi_initialize.h
├── ADuCM360_demo_cn0398
├── .cproject
├── .gitignore
├── .project
├── .settings
│ ├── ToolChain.prefs
│ └── s
│ │ ├── DefaultProjectAttribute.prefs
│ │ └── ToolChain.prefs
├── RTE
│ ├── Device
│ │ └── ADuCM360
│ │ │ ├── ADuCM360.ld
│ │ │ ├── ClkLib.h
│ │ │ ├── DioLib.h
│ │ │ ├── DmaLib.h
│ │ │ ├── SpiLib.h
│ │ │ ├── UrtLib.h
│ │ │ ├── startup_ADuCM360.c
│ │ │ └── system_ADuCM360.c
│ └── RTE_Components.h
├── include
│ ├── AD7124.h
│ ├── CN0398.h
│ ├── Communication.h
│ └── Timer.h
├── src
│ ├── AD7124.cpp
│ ├── CN0398.cpp
│ ├── Communication.cpp
│ ├── Timer.cpp
│ └── main.cpp
├── system.rteconfig
├── system.svc
└── system
│ ├── adi_initialize.c
│ └── adi_initialize.h
├── ADuCM360_demo_cn0409
├── .cproject
├── .project
├── .settings
│ ├── DefaultProjectAttribute.prefs
│ └── ToolChain.prefs
├── RTE
│ ├── Device
│ │ └── ADuCM360
│ │ │ ├── ADuCM360.ld
│ │ │ ├── ClkLib.h
│ │ │ ├── DioLib.h
│ │ │ ├── DmaLib.h
│ │ │ ├── FeeLib.h
│ │ │ ├── I2cLib.h
│ │ │ ├── UrtLib.h
│ │ │ ├── startup_ADuCM360.c
│ │ │ └── system_ADuCM360.c
│ └── RTE_Components.h
├── include
│ ├── ADPD105.h
│ ├── CN0409.h
│ ├── Communication.h
│ ├── Flash.h
│ └── Timer.h
├── src
│ ├── ADPD105.c
│ ├── CN0409.c
│ ├── Communication.c
│ ├── Flash.c
│ ├── Timer.c
│ └── main.c
├── system.rteconfig
├── system.svc
└── system
│ ├── adi_initialize.c
│ └── adi_initialize.h
├── ADuCM360_demo_cn0411
├── .cproject
├── .project
├── .settings
│ ├── DefaultProjectAttribute.prefs
│ ├── ToolChain.prefs
│ ├── com.analog.crosscore.system.validator.prefs
│ ├── org.eclipse.cdt.codan.core.prefs
│ └── org.eclipse.core.resources.prefs
├── RTE
│ ├── Device
│ │ └── ADuCM360
│ │ │ ├── ADuCM360.ld
│ │ │ ├── ClkLib.h
│ │ │ ├── DioLib.h
│ │ │ ├── DmaLib.h
│ │ │ ├── PwmLib.h
│ │ │ ├── SpiLib.h
│ │ │ ├── UrtLib.h
│ │ │ ├── startup_ADuCM360.c
│ │ │ └── system_ADuCM360.c
│ └── RTE_Components.h
├── include
│ ├── AD5683.h
│ ├── AD7124.h
│ ├── AD7124_regs.h
│ ├── CN0411.h
│ ├── Communication.h
│ ├── GptLib.h
│ └── Timer.h
├── src
│ ├── AD5683.c
│ ├── AD7124.c
│ ├── AD7124_regs.c
│ ├── CN0411.c
│ ├── Communication.c
│ ├── GptLib.c
│ ├── Timer.c
│ └── main.c
├── system.rteconfig
├── system.svc
└── system
│ ├── adi_initialize.c
│ └── adi_initialize.h
├── ADuCM360_demo_pmodacl2
├── .cproject
├── .gitignore
├── .project
├── .settings
│ ├── ToolChain.prefs
│ └── s
│ │ ├── DefaultProjectAttribute.prefs
│ │ └── ToolChain.prefs
├── RTE
│ ├── Device
│ │ └── ADuCM360
│ │ │ ├── ADuCM360.ld
│ │ │ ├── ClkLib.h
│ │ │ ├── DioLib.h
│ │ │ ├── DmaLib.h
│ │ │ ├── SpiLib.h
│ │ │ ├── UrtLib.h
│ │ │ ├── startup_ADuCM360.c
│ │ │ └── system_ADuCM360.c
│ └── RTE_Components.h
├── include
│ ├── ADXL362.h
│ ├── Communication.h
│ └── Timer.h
├── src
│ ├── ADXL362.c
│ ├── Communication.c
│ ├── Timer.c
│ └── main.c
├── system.rteconfig
├── system.svc
└── system
│ ├── adi_initialize.c
│ └── adi_initialize.h
└── ADuCM360_test_project
├── .cproject
├── .gitignore
├── .project
├── .settings
├── ToolChain.prefs
└── s
│ ├── DefaultProjectAttribute.prefs
│ └── ToolChain.prefs
├── RTE
├── Device
│ └── ADuCM360
│ │ ├── ADuCM360.ld
│ │ ├── ClkLib.h
│ │ ├── DioLib.h
│ │ ├── DmaLib.h
│ │ ├── I2cLib.h
│ │ ├── SpiLib.h
│ │ ├── UrtLib.h
│ │ ├── startup_ADuCM360.c
│ │ └── system_ADuCM360.c
└── RTE_Components.h
├── include
├── Communication.h
├── Test.h
├── Test_Config.h
└── Timer.h
├── src
├── Communication.c
├── Test.c
├── Timer.c
└── main.c
├── system.rteconfig
├── system.svc
└── system
├── adi_initialize.c
└── adi_initialize.h
/.cppcheckignore:
--------------------------------------------------------------------------------
1 | // This file contains the list of suppressions used by the cppcheck tool
2 | //
3 | // The surpression format:
4 | // [error id]:[filename]
5 | //
6 | // Example where all the warnings under the "drivers" folder are suppressed:
7 | // *:drivers/*
8 | //
9 | // Please use ".cppcheckignore" only for files/folders that are included
10 | // as libraries/modules and are outside of the scope of this repository.
11 | //
12 | // Another alternative is using inline suppressions. Please see Cppcheck manual
13 | // for further information: https://cppcheck.sourceforge.net/manual.pdf
14 |
15 | *:projects/ADuCM360_demo_blink/IAR/system/*
16 | *:projects/ADuCM360_demo_cn0359_reva/src/applications/*
17 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Object files
2 | *.o
3 | *.ko
4 | *.obj
5 | *.elf
6 |
7 | # Precompiled Headers
8 | *.gch
9 | *.pch
10 |
11 | # Libraries
12 | *.lib
13 | *.a
14 | *.la
15 | *.lo
16 |
17 | # Shared objects (inc. Windows DLLs)
18 | *.dll
19 | *.so
20 | *.so.*
21 | *.dylib
22 |
23 | # Executables
24 | *.exe
25 | *.out
26 | *.app
27 | *.i*86
28 | *.x86_64
29 | *.hex
30 |
31 | # Debug files
32 | *.dSYM/
33 | *.su
34 |
35 | # Debug and Release folder
36 | Debug/
37 | Release/
38 |
39 | # Build folder
40 | build/
41 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | BSD 3-Clause License
2 |
3 | Copyright (c) 2017, Analog Devices Inc.
4 | All rights reserved.
5 |
6 | Redistribution and use in source and binary forms, with or without
7 | modification, are permitted provided that the following conditions are met:
8 |
9 | * Redistributions of source code must retain the above copyright notice, this
10 | list of conditions and the following disclaimer.
11 |
12 | * Redistributions in binary form must reproduce the above copyright notice,
13 | this list of conditions and the following disclaimer in the documentation
14 | and/or other materials provided with the distribution.
15 |
16 | * Neither the name of the copyright holder nor the names of its
17 | contributors may be used to endorse or promote products derived from
18 | this software without specific prior written permission.
19 |
20 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # EVAL-ADICUP360 Read Me
2 |
3 | [](https://dev.azure.com/AnalogDevices/OpenSource/_build/latest?definitionId=19&branchName=master)
4 |
5 | ## Overview ##
6 | The EVAL-ADICUP360 is about an open source prototyping platform that can be used in combination with hardware and software to achieve application level goals. The platform is pin compatible with Arduino Uno shields and PMOD expansion modules. The EVAL-ADICUP360 has dual 24-bit sigma deltas analog to digital converters inside an ARM Cortex-M3, which has I2C, SPI, and UART peripherals available.
7 |
8 | ## User Guide & Downloads ##
9 | A Detailed User Guide for the EVAL-ADICUP360, showing how to set up the hardware and use the software in combination, can be found on the Analog Devices wiki site (https://wiki.analog.com/resources/eval/user-guides/eval-adicup360). Links on where to download the CrossCore Embedded Studio IDE and how to install the software can also be found using that link. A step by step understanding of the tool, from how to import projects, to creating debug sessions, and creating your own projects is outlined on the wiki.
10 |
11 | ## Purchase ##
12 | For details on where and how to purchase the EVAL-ADICUP360, please visit the Analog Devices website (http://www.analog.com/en/design-center/evaluation-hardware-and-software/evaluation-boards-kits/EVAL-ADICUP360.html ) or any of Analog Devices authorized distribution partners.
13 |
14 | ## 3rd Party Arduino Libraries ##
15 | We've also had a user create "Arduino-like libraries" for the EVAL-ADICUP360. So if you are more familiar with Arduino and would like to use those libraries, please check out Marcus's Git repository (https://github.com/MB3hel/ADuCM360-ArduinoLike ). **IMPORTANT NOTE:** Analog Devices has not tested these libraries and we don't support these libraries. These have been created by a third party, and are provided to users. Any feature or function issues with these libraries should be directed back to Marcus.
16 |
--------------------------------------------------------------------------------
/azure-pipelines.yml:
--------------------------------------------------------------------------------
1 | trigger:
2 | - main
3 | - master
4 | - staging/*
5 | - dev/*
6 |
7 | pr:
8 | - main
9 | - master
10 |
11 | variables:
12 | runCondition: true
13 | targetBranch: $[ variables['System.PullRequest.TargetBranchName'] ]
14 |
15 | jobs:
16 | - job: LinuxBuilds
17 | strategy:
18 | matrix:
19 | astyle:
20 | imageName: 'ubuntu-latest'
21 | BUILD_TYPE: astyle
22 | TARGET_BRANCH: '$(targetBranch)'
23 | cppcheck:
24 | imageName: 'ubuntu-latest'
25 | BUILD_TYPE: cppcheck
26 | TARGET_BRANCH: '$(targetBranch)'
27 |
28 | pool:
29 | vmImage: $(imageName)
30 | steps:
31 | - checkout: self
32 | condition: eq(variables.runCondition, true)
33 | fetchDepth: 50
34 | clean: true
35 | persistCredentials: false
36 | - script: ./ci/run_build.sh
37 | condition: eq(variables.runCondition, true)
38 | displayName: 'Run $(BUILD_TYPE)'
39 |
--------------------------------------------------------------------------------
/ci/lib.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | TOP_DIR=${TOP_DIR:-'./'}
4 |
5 | command_exists() {
6 | local cmd=$1
7 | [ -n "$cmd" ] || return 1
8 | type "$cmd" >/dev/null 2>&1
9 | }
10 |
11 | ensure_command_exists() {
12 | local cmd="$1"
13 | local package="$2"
14 | [ -n "$cmd" ] || return 1
15 | [ -n "$package" ] || package="$cmd"
16 | ! command_exists "$cmd" || return 0
17 | # go through known package managers
18 | for pacman in apt-get brew yum ; do
19 | command_exists $pacman || continue
20 | $pacman install -y $package || {
21 | # Try an update if install doesn't work the first time
22 | $pacman -y update && \
23 | $pacman install -y $package
24 | }
25 | return $?
26 | done
27 | return 1
28 | }
29 |
30 | ensure_command_exists wget
31 | ensure_command_exists sudo
32 |
33 | # Get the common stuff from no-OS
34 | [ -f ${TOP_DIR}/build/lib.sh ] || {
35 | mkdir -p ${TOP_DIR}/build
36 | wget https://raw.githubusercontent.com/analogdevicesinc/no-OS/main/ci/lib.sh \
37 | -O ${TOP_DIR}/build/lib.sh
38 | }
39 |
40 | . ${TOP_DIR}/build/lib.sh
41 |
42 | # Call function from ${TOP_DIR}/build/lib.sh to download common scripts
43 | download_common_scripts
44 |
--------------------------------------------------------------------------------
/ci/run_build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | set -e
3 |
4 | TOP_DIR="$(pwd)"
5 |
6 | sudo apt-get update
7 |
8 | . ./ci/lib.sh
9 |
10 | build_cppcheck() {
11 | . ./build/cppcheck.sh
12 | }
13 |
14 | build_astyle() {
15 | export ASTYLE_EXT_LIST=".cpp .hpp"
16 | . ./build/astyle.sh
17 | }
18 |
19 | build_${BUILD_TYPE}
20 |
--------------------------------------------------------------------------------
/projects/ADICUP360_ADXL362_Project/.gitignore:
--------------------------------------------------------------------------------
1 | /Debug/
2 | /Release/
3 |
--------------------------------------------------------------------------------
/projects/ADICUP360_ADXL362_Project/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | ADICUP360_ADXL362_Project
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.cdt.managedbuilder.core.genmakebuilder
10 | clean,full,incremental,
11 |
12 |
13 |
14 |
15 | org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder
16 | full,incremental,
17 |
18 |
19 |
20 |
21 | com.analog.crosscore.managedbuilder.core.cleanbuilder
22 | clean,
23 |
24 |
25 |
26 |
27 |
28 | org.eclipse.cdt.core.cnature
29 | org.eclipse.cdt.managedbuilder.core.managedBuildNature
30 | org.eclipse.cdt.managedbuilder.core.ScannerConfigNature
31 | com.analog.crosscore.managedbuilder.core.CCESProjectNature
32 | com.arm.cmsis.pack.project.RteNature
33 |
34 |
35 |
36 | RTE/Device/ADuCM360/DioLib.c
37 | 1
38 | $%7Bcmsis_pack_root%7D/AnalogDevices/ADuCM36x_DFP/1.0.2/Device/Source/drivers/DioLib.c
39 |
40 |
41 | RTE/Device/ADuCM360/DmaLib.c
42 | 1
43 | $%7Bcmsis_pack_root%7D/AnalogDevices/ADuCM36x_DFP/1.0.2/Device/Source/drivers/DmaLib.c
44 |
45 |
46 | RTE/Device/ADuCM360/SpiLib.c
47 | 1
48 | $%7Bcmsis_pack_root%7D/AnalogDevices/ADuCM36x_DFP/1.0.2/Device/Source/drivers/SpiLib.c
49 |
50 |
51 | RTE/Device/ADuCM360/UrtLib.c
52 | 1
53 | $%7Bcmsis_pack_root%7D/AnalogDevices/ADuCM36x_DFP/1.0.2/Device/Source/drivers/UrtLib.c
54 |
55 |
56 |
57 |
58 | CCES
59 | file:/Users/amclach/Applications/CrossCore%20Embedded%20Studio.app/Contents
60 |
61 |
62 |
63 |
--------------------------------------------------------------------------------
/projects/ADICUP360_ADXL362_Project/.settings/DefaultProjectAttribute.prefs:
--------------------------------------------------------------------------------
1 | ArtifactType=org.eclipse.cdt.build.core.buildArtefactType.exe
2 | CoreId=0
3 | Processor=ADuCM360
4 | Revision=none
5 | adi_initialize.c.lastgenerated=1505846471000
6 | adi_initialize.h.lastgenerated=1505846471000
7 | eclipse.preferences.version=1
8 |
--------------------------------------------------------------------------------
/projects/ADICUP360_ADXL362_Project/.settings/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.7.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADICUP360_ADXL362_Project/RTE/RTE_Components.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Auto generated Run-Time-Environment Component Configuration File
3 | * *** Do not modify ! ***
4 | *
5 | * Project: ADICUP360_ADXL362_Project
6 | * RTE configuration: system.rteconfig
7 | */
8 | #ifndef RTE_COMPONENTS_H
9 | #define RTE_COMPONENTS_H
10 |
11 | /*
12 | * Define the Device Header File:
13 | */
14 | #define CMSIS_device_header "ADuCM360.h"
15 |
16 |
17 | #endif /* RTE_COMPONENTS_H */
18 |
--------------------------------------------------------------------------------
/projects/ADICUP360_ADXL362_Project/include/Timer.h:
--------------------------------------------------------------------------------
1 | /*!
2 | *****************************************************************************
3 | * @file: Timer.h
4 | * @brief:
5 | * @version: $Revision$
6 | * @date: $Date$
7 | *-----------------------------------------------------------------------------
8 | *
9 | Copyright (c) 2014 Liviu Ionescu.
10 |
11 | Portions Copyright (c) 2017 Analog Devices, Inc.
12 |
13 | Permission is hereby granted, free of charge, to any person obtaining a
14 | copy of this software and associated documentation files (the "Software"),
15 | to deal in the Software without restriction, including without limitation
16 | the rights to use, copy, modify, merge, publish, distribute, sublicense,
17 | and/or sell copies of the Software, and to permit persons to whom the
18 | Software is furnished to do so, subject to the following conditions:
19 |
20 | The above copyright notice and this permission notice shall be included in
21 | all copies or substantial portions of the Software.
22 |
23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26 | THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
27 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
28 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
29 | OTHER DEALINGS IN THE SOFTWARE.
30 | */
31 |
32 | #ifndef TIMER_H_
33 | #define TIMER_H_
34 |
35 | #include
36 |
37 | // ----------------------------------------------------------------------------
38 |
39 | #define TIMER_FREQUENCY_HZ (1000u)
40 |
41 | typedef uint32_t timer_ticks_t;
42 |
43 | extern volatile timer_ticks_t timer_delayCount;
44 |
45 | extern void
46 | timer_start (void);
47 |
48 | extern void
49 | timer_sleep (timer_ticks_t ticks);
50 |
51 | // ----------------------------------------------------------------------------
52 |
53 | #endif // TIMER_H_
54 |
--------------------------------------------------------------------------------
/projects/ADICUP360_ADXL362_Project/system.svc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/projects/ADICUP360_ADXL362_Project/system/adi_initialize.c:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.c source file generated on September 19, 2017 at 19:41:11.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #include
11 |
12 | #include "adi_initialize.h"
13 |
14 |
15 | int32_t adi_initComponents(void)
16 | {
17 | int32_t result = 0;
18 |
19 |
20 | return result;
21 | }
22 |
23 |
--------------------------------------------------------------------------------
/projects/ADICUP360_ADXL362_Project/system/adi_initialize.h:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.h header file generated on September 19, 2017 at 19:41:11.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #ifndef __ADI_COMPONENT_INIT_H__
11 | #define __ADI_COMPONENT_INIT_H__
12 | #include
13 |
14 | #ifdef __cplusplus
15 | extern "C" {
16 | #endif
17 |
18 | /* Declare "adi_initComponents()" */
19 | int32_t adi_initComponents(void);
20 |
21 | #ifdef __cplusplus
22 | }
23 | #endif
24 |
25 | #endif /* __ADI_COMPONENT_INIT_H__ */
26 |
27 |
--------------------------------------------------------------------------------
/projects/ADICUP360_CN0357_Project/.gitignore:
--------------------------------------------------------------------------------
1 | /Debug/
2 | /Release/
3 |
--------------------------------------------------------------------------------
/projects/ADICUP360_CN0357_Project/.settings/DefaultProjectAttribute.prefs:
--------------------------------------------------------------------------------
1 | ArtifactType=org.eclipse.cdt.build.core.buildArtefactType.exe
2 | CoreId=0
3 | Processor=ADuCM360
4 | Revision=none
5 | adi_initialize.c.lastgenerated=1505849019000
6 | adi_initialize.h.lastgenerated=1505849019000
7 | eclipse.preferences.version=1
8 |
--------------------------------------------------------------------------------
/projects/ADICUP360_CN0357_Project/.settings/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.7.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADICUP360_CN0357_Project/RTE/RTE_Components.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Auto generated Run-Time-Environment Component Configuration File
3 | * *** Do not modify ! ***
4 | *
5 | * Project: ADICUP360_CN0357_Project
6 | * RTE configuration: system.rteconfig
7 | */
8 | #ifndef RTE_COMPONENTS_H
9 | #define RTE_COMPONENTS_H
10 |
11 | /*
12 | * Define the Device Header File:
13 | */
14 | #define CMSIS_device_header "ADuCM360.h"
15 |
16 |
17 | #endif /* RTE_COMPONENTS_H */
18 |
--------------------------------------------------------------------------------
/projects/ADICUP360_CN0357_Project/include/Timer.h:
--------------------------------------------------------------------------------
1 | /*!
2 | *****************************************************************************
3 | * @file: Timer.h
4 | * @brief:
5 | * @version: $Revision$
6 | * @date: $Date$
7 | *-----------------------------------------------------------------------------
8 | *
9 | Copyright (c) 2014 Liviu Ionescu.
10 |
11 | Portions Copyright (c) 2017 Analog Devices, Inc.
12 |
13 | Permission is hereby granted, free of charge, to any person obtaining a
14 | copy of this software and associated documentation files (the "Software"),
15 | to deal in the Software without restriction, including without limitation
16 | the rights to use, copy, modify, merge, publish, distribute, sublicense,
17 | and/or sell copies of the Software, and to permit persons to whom the
18 | Software is furnished to do so, subject to the following conditions:
19 |
20 | The above copyright notice and this permission notice shall be included in
21 | all copies or substantial portions of the Software.
22 |
23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26 | THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
27 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
28 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
29 | OTHER DEALINGS IN THE SOFTWARE.
30 | */
31 |
32 | #ifndef TIMER_H_
33 | #define TIMER_H_
34 |
35 | #include
36 |
37 | // ----------------------------------------------------------------------------
38 |
39 | #define TIMER_FREQUENCY_HZ (1000u)
40 |
41 | typedef uint32_t timer_ticks_t;
42 |
43 | extern volatile timer_ticks_t timer_delayCount;
44 |
45 | extern void
46 | timer_start (void);
47 |
48 | extern void
49 | timer_sleep (timer_ticks_t ticks);
50 |
51 | // ----------------------------------------------------------------------------
52 |
53 | #endif // TIMER_H_
54 |
--------------------------------------------------------------------------------
/projects/ADICUP360_CN0357_Project/system.svc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/projects/ADICUP360_CN0357_Project/system/adi_initialize.c:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.c source file generated on September 19, 2017 at 20:23:39.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #include
11 |
12 | #include "adi_initialize.h"
13 |
14 |
15 | int32_t adi_initComponents(void)
16 | {
17 | int32_t result = 0;
18 |
19 |
20 | return result;
21 | }
22 |
23 |
--------------------------------------------------------------------------------
/projects/ADICUP360_CN0357_Project/system/adi_initialize.h:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.h header file generated on September 19, 2017 at 20:23:39.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #ifndef __ADI_COMPONENT_INIT_H__
11 | #define __ADI_COMPONENT_INIT_H__
12 | #include
13 |
14 | #ifdef __cplusplus
15 | extern "C" {
16 | #endif
17 |
18 | /* Declare "adi_initComponents()" */
19 | int32_t adi_initComponents(void);
20 |
21 | #ifdef __cplusplus
22 | }
23 | #endif
24 |
25 | #endif /* __ADI_COMPONENT_INIT_H__ */
26 |
27 |
--------------------------------------------------------------------------------
/projects/ADICUP360_CN0397_Project/.gitignore:
--------------------------------------------------------------------------------
1 | /Debug/
2 | /Release/
3 |
--------------------------------------------------------------------------------
/projects/ADICUP360_CN0397_Project/.settings/DefaultProjectAttribute.prefs:
--------------------------------------------------------------------------------
1 | ArtifactType=org.eclipse.cdt.build.core.buildArtefactType.exe
2 | CoreId=0
3 | Processor=ADuCM360
4 | Revision=none
5 | adi_initialize.c.lastgenerated=1505849465000
6 | adi_initialize.h.lastgenerated=1505849465000
7 | eclipse.preferences.version=1
8 |
--------------------------------------------------------------------------------
/projects/ADICUP360_CN0397_Project/.settings/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.7.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADICUP360_CN0397_Project/RTE/RTE_Components.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Auto generated Run-Time-Environment Component Configuration File
3 | * *** Do not modify ! ***
4 | *
5 | * Project: ADICUP360_CN0397_Project
6 | * RTE configuration: system.rteconfig
7 | */
8 | #ifndef RTE_COMPONENTS_H
9 | #define RTE_COMPONENTS_H
10 |
11 | /*
12 | * Define the Device Header File:
13 | */
14 | #define CMSIS_device_header "ADuCM360.h"
15 |
16 |
17 | #endif /* RTE_COMPONENTS_H */
18 |
--------------------------------------------------------------------------------
/projects/ADICUP360_CN0397_Project/include/Timer.h:
--------------------------------------------------------------------------------
1 | /*!
2 | *****************************************************************************
3 | * @file: Timer.h
4 | * @brief:
5 | * @version: $Revision$
6 | * @date: $Date$
7 | *-----------------------------------------------------------------------------
8 | *
9 | Copyright (c) 2014 Liviu Ionescu.
10 |
11 | Portions Copyright (c) 2017 Analog Devices, Inc.
12 |
13 | Permission is hereby granted, free of charge, to any person obtaining a
14 | copy of this software and associated documentation files (the "Software"),
15 | to deal in the Software without restriction, including without limitation
16 | the rights to use, copy, modify, merge, publish, distribute, sublicense,
17 | and/or sell copies of the Software, and to permit persons to whom the
18 | Software is furnished to do so, subject to the following conditions:
19 |
20 | The above copyright notice and this permission notice shall be included in
21 | all copies or substantial portions of the Software.
22 |
23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26 | THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
27 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
28 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
29 | OTHER DEALINGS IN THE SOFTWARE.
30 | */
31 |
32 | #ifndef TIMER_H_
33 | #define TIMER_H_
34 |
35 | #include
36 |
37 | // ----------------------------------------------------------------------------
38 |
39 | #define TIMER_FREQUENCY_HZ (1000u)
40 |
41 | typedef uint32_t timer_ticks_t;
42 |
43 | extern volatile timer_ticks_t timer_delayCount;
44 |
45 | extern void
46 | timer_start (void);
47 |
48 | extern void
49 | timer_sleep (timer_ticks_t ticks);
50 |
51 | // ----------------------------------------------------------------------------
52 |
53 | #endif // TIMER_H_
54 |
--------------------------------------------------------------------------------
/projects/ADICUP360_CN0397_Project/system.svc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/projects/ADICUP360_CN0397_Project/system/adi_initialize.c:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.c source file generated on September 19, 2017 at 20:31:05.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #include
11 |
12 | #include "adi_initialize.h"
13 |
14 |
15 | int32_t adi_initComponents(void)
16 | {
17 | int32_t result = 0;
18 |
19 |
20 | return result;
21 | }
22 |
23 |
--------------------------------------------------------------------------------
/projects/ADICUP360_CN0397_Project/system/adi_initialize.h:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.h header file generated on September 19, 2017 at 20:31:05.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #ifndef __ADI_COMPONENT_INIT_H__
11 | #define __ADI_COMPONENT_INIT_H__
12 | #include
13 |
14 | #ifdef __cplusplus
15 | extern "C" {
16 | #endif
17 |
18 | /* Declare "adi_initComponents()" */
19 | int32_t adi_initComponents(void);
20 |
21 | #ifdef __cplusplus
22 | }
23 | #endif
24 |
25 | #endif /* __ADI_COMPONENT_INIT_H__ */
26 |
27 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_Smart_Greenhouse/.gitignore:
--------------------------------------------------------------------------------
1 | /Debug/
2 | /Release/
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_Smart_Greenhouse/.settings/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.7.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_Smart_Greenhouse/.settings/s/DefaultProjectAttribute.prefs:
--------------------------------------------------------------------------------
1 | ArtifactType=org.eclipse.cdt.build.core.buildArtefactType.exe
2 | CoreId=0
3 | Processor=ADuCM360
4 | Revision=none
5 | adi_initialize.c.lastgenerated=1503835558429
6 | adi_initialize.h.lastgenerated=1503835558474
7 | eclipse.preferences.version=1
8 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_Smart_Greenhouse/.settings/s/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.6.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_Smart_Greenhouse/RTE/RTE_Components.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Auto generated Run-Time-Environment Component Configuration File
3 | * *** Do not modify ! ***
4 | *
5 | * Project: ADuCM360_demo_Smart_Greenhouse
6 | * RTE configuration: system.rteconfig
7 | */
8 | #ifndef RTE_COMPONENTS_H
9 | #define RTE_COMPONENTS_H
10 |
11 | /*
12 | * Define the Device Header File:
13 | */
14 | #define CMSIS_device_header "ADuCM360.h"
15 |
16 |
17 | #endif /* RTE_COMPONENTS_H */
18 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_Smart_Greenhouse/include/Timer.h:
--------------------------------------------------------------------------------
1 | /*!
2 | *****************************************************************************
3 | * @file: Timer.h
4 | * @brief:
5 | * @version: $Revision$
6 | * @date: $Date$
7 | *-----------------------------------------------------------------------------
8 | *
9 | Copyright (c) 2014 Liviu Ionescu.
10 |
11 | Portions Copyright (c) 2017 Analog Devices, Inc.
12 |
13 | Permission is hereby granted, free of charge, to any person obtaining a
14 | copy of this software and associated documentation files (the "Software"),
15 | to deal in the Software without restriction, including without limitation
16 | the rights to use, copy, modify, merge, publish, distribute, sublicense,
17 | and/or sell copies of the Software, and to permit persons to whom the
18 | Software is furnished to do so, subject to the following conditions:
19 |
20 | The above copyright notice and this permission notice shall be included in
21 | all copies or substantial portions of the Software.
22 |
23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26 | THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
27 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
28 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
29 | OTHER DEALINGS IN THE SOFTWARE.
30 | */
31 |
32 | #ifndef TIMER_H_
33 | #define TIMER_H_
34 |
35 | #include
36 |
37 | #define TIMER_FREQUENCY_HZ (1000u)
38 |
39 | typedef uint32_t timer_ticks_t;
40 |
41 | extern volatile timer_ticks_t timer_delayCount;
42 |
43 | extern void timer_start (void);
44 |
45 | extern void timer_sleep (timer_ticks_t ticks);
46 |
47 | extern void timer_tick (void);
48 |
49 | #endif
50 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_Smart_Greenhouse/src/Timer.c:
--------------------------------------------------------------------------------
1 | /*!
2 | *****************************************************************************
3 | * @file: Timer.c
4 | * @brief:
5 | * @version: $Revision$
6 | * @date: $Date$
7 | *-----------------------------------------------------------------------------
8 | *
9 | Copyright (c) 2014 Liviu Ionescu.
10 |
11 | Portions Copyright (c) 2017 Analog Devices, Inc.
12 |
13 | Permission is hereby granted, free of charge, to any person obtaining a
14 | copy of this software and associated documentation files (the "Software"),
15 | to deal in the Software without restriction, including without limitation
16 | the rights to use, copy, modify, merge, publish, distribute, sublicense,
17 | and/or sell copies of the Software, and to permit persons to whom the
18 | Software is furnished to do so, subject to the following conditions:
19 |
20 | The above copyright notice and this permission notice shall be included in
21 | all copies or substantial portions of the Software.
22 |
23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26 | THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
27 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
28 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
29 | OTHER DEALINGS IN THE SOFTWARE.
30 | */
31 |
32 | #include "Timer.h"
33 |
34 | volatile timer_ticks_t timer_delayCount;
35 |
36 | void timer_start (void)
37 | {
38 | SystemCoreClockUpdate();
39 | SysTick_Config (SystemCoreClock / TIMER_FREQUENCY_HZ);
40 | }
41 |
42 | void timer_sleep (timer_ticks_t ticks)
43 | {
44 | timer_delayCount = ticks;
45 |
46 | while (timer_delayCount != 0u);
47 | }
48 |
49 | void timer_tick (void)
50 | {
51 | if (timer_delayCount != 0u) {
52 | --timer_delayCount;
53 | }
54 | }
55 |
56 | void SysTick_Handler (void)
57 | {
58 | #if defined(USE_HAL_DRIVER)
59 | HAL_IncTick();
60 | #endif
61 | timer_tick ();
62 | }
63 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_Smart_Greenhouse/system.svc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_Smart_Greenhouse/system/adi_initialize.c:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.c source file generated on August 27, 2017 at 20:05:58.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #include
11 |
12 | #include "adi_initialize.h"
13 |
14 |
15 | int32_t adi_initComponents(void)
16 | {
17 | int32_t result = 0;
18 |
19 |
20 | return result;
21 | }
22 |
23 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_Smart_Greenhouse/system/adi_initialize.h:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.h header file generated on August 27, 2017 at 20:05:58.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #ifndef __ADI_COMPONENT_INIT_H__
11 | #define __ADI_COMPONENT_INIT_H__
12 | #include
13 |
14 | #ifdef __cplusplus
15 | extern "C" {
16 | #endif
17 |
18 | /* Declare "adi_initComponents()" */
19 | int32_t adi_initComponents(void);
20 |
21 | #ifdef __cplusplus
22 | }
23 | #endif
24 |
25 | #endif /* __ADI_COMPONENT_INIT_H__ */
26 |
27 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_adt7420_pmdz/.gitignore:
--------------------------------------------------------------------------------
1 | /Debug/
2 | /Release/
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_adt7420_pmdz/.settings/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.7.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_adt7420_pmdz/.settings/settings/DefaultProjectAttribute.prefs:
--------------------------------------------------------------------------------
1 | ArtifactType=org.eclipse.cdt.build.core.buildArtefactType.exe
2 | CoreId=0
3 | Processor=ADuCM360
4 | Revision=none
5 | adi_initialize.c.lastgenerated=1503631658401
6 | adi_initialize.h.lastgenerated=1503631658441
7 | eclipse.preferences.version=1
8 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_adt7420_pmdz/.settings/settings/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.6.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_adt7420_pmdz/RTE/RTE_Components.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Auto generated Run-Time-Environment Component Configuration File
3 | * *** Do not modify ! ***
4 | *
5 | * Project: ADuCM360_demo_adt7420_pmdz
6 | * RTE configuration: system.rteconfig
7 | */
8 | #ifndef RTE_COMPONENTS_H
9 | #define RTE_COMPONENTS_H
10 |
11 | /*
12 | * Define the Device Header File:
13 | */
14 | #define CMSIS_device_header "ADuCM360.h"
15 |
16 |
17 | #endif /* RTE_COMPONENTS_H */
18 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_adt7420_pmdz/include/Timer.h:
--------------------------------------------------------------------------------
1 | /*!
2 | *****************************************************************************
3 | * @file: Timer.h
4 | * @brief:
5 | * @version: $Revision$
6 | * @date: $Date$
7 | *-----------------------------------------------------------------------------
8 | *
9 | Copyright (c) 2014 Liviu Ionescu.
10 |
11 | Portions Copyright (c) 2017 Analog Devices, Inc.
12 |
13 | Permission is hereby granted, free of charge, to any person obtaining a
14 | copy of this software and associated documentation files (the "Software"),
15 | to deal in the Software without restriction, including without limitation
16 | the rights to use, copy, modify, merge, publish, distribute, sublicense,
17 | and/or sell copies of the Software, and to permit persons to whom the
18 | Software is furnished to do so, subject to the following conditions:
19 |
20 | The above copyright notice and this permission notice shall be included in
21 | all copies or substantial portions of the Software.
22 |
23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26 | THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
27 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
28 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
29 | OTHER DEALINGS IN THE SOFTWARE.
30 | */
31 |
32 | #ifndef TIMER_H_
33 | #define TIMER_H_
34 |
35 | #include
36 |
37 | // ----------------------------------------------------------------------------
38 |
39 | #define TIMER_FREQUENCY_HZ (1000u)
40 |
41 | typedef uint32_t timer_ticks_t;
42 |
43 | extern volatile timer_ticks_t timer_delayCount;
44 |
45 | extern void
46 | timer_start (void);
47 |
48 | extern void
49 | timer_sleep (timer_ticks_t ticks);
50 |
51 | // ----------------------------------------------------------------------------
52 |
53 | #endif // TIMER_H_
54 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_adt7420_pmdz/system.svc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_adt7420_pmdz/system/adi_initialize.c:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.c source file generated on August 25, 2017 at 11:27:38.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #include
11 |
12 | #include "adi_initialize.h"
13 |
14 |
15 | int32_t adi_initComponents(void)
16 | {
17 | int32_t result = 0;
18 |
19 |
20 | return result;
21 | }
22 |
23 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_adt7420_pmdz/system/adi_initialize.h:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.h header file generated on August 25, 2017 at 11:27:38.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #ifndef __ADI_COMPONENT_INIT_H__
11 | #define __ADI_COMPONENT_INIT_H__
12 | #include
13 |
14 | #ifdef __cplusplus
15 | extern "C" {
16 | #endif
17 |
18 | /* Declare "adi_initComponents()" */
19 | int32_t adi_initComponents(void);
20 |
21 | #ifdef __cplusplus
22 | }
23 | #endif
24 |
25 | #endif /* __ADI_COMPONENT_INIT_H__ */
26 |
27 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_adxl355_pmdz/.gitignore:
--------------------------------------------------------------------------------
1 | /Debug/
2 | /Release/
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_adxl355_pmdz/.settings/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.7.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_adxl355_pmdz/.settings/settings/DefaultProjectAttribute.prefs:
--------------------------------------------------------------------------------
1 | ArtifactType=org.eclipse.cdt.build.core.buildArtefactType.exe
2 | CoreId=0
3 | Processor=ADuCM360
4 | Revision=none
5 | adi_initialize.c.lastgenerated=1503631943816
6 | adi_initialize.h.lastgenerated=1503631943857
7 | eclipse.preferences.version=1
8 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_adxl355_pmdz/.settings/settings/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.6.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_adxl355_pmdz/RTE/RTE_Components.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Auto generated Run-Time-Environment Component Configuration File
3 | * *** Do not modify ! ***
4 | *
5 | * Project: ADuCM360_demo_adxl355_pmdz
6 | * RTE configuration: system.rteconfig
7 | */
8 | #ifndef RTE_COMPONENTS_H
9 | #define RTE_COMPONENTS_H
10 |
11 | /*
12 | * Define the Device Header File:
13 | */
14 | #define CMSIS_device_header "ADuCM360.h"
15 |
16 |
17 | #endif /* RTE_COMPONENTS_H */
18 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_adxl355_pmdz/include/Timer.h:
--------------------------------------------------------------------------------
1 | /*!
2 | *****************************************************************************
3 | * @file: Timer.h
4 | * @brief:
5 | * @version: $Revision$
6 | * @date: $Date$
7 | *-----------------------------------------------------------------------------
8 | *
9 | Copyright (c) 2014 Liviu Ionescu.
10 |
11 | Portions Copyright (c) 2017 Analog Devices, Inc.
12 |
13 | Permission is hereby granted, free of charge, to any person obtaining a
14 | copy of this software and associated documentation files (the "Software"),
15 | to deal in the Software without restriction, including without limitation
16 | the rights to use, copy, modify, merge, publish, distribute, sublicense,
17 | and/or sell copies of the Software, and to permit persons to whom the
18 | Software is furnished to do so, subject to the following conditions:
19 |
20 | The above copyright notice and this permission notice shall be included in
21 | all copies or substantial portions of the Software.
22 |
23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26 | THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
27 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
28 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
29 | OTHER DEALINGS IN THE SOFTWARE.
30 | */
31 |
32 | #ifndef TIMER_H_
33 | #define TIMER_H_
34 |
35 | #include
36 |
37 | // ----------------------------------------------------------------------------
38 |
39 | #define TIMER_FREQUENCY_HZ (1000u)
40 |
41 | typedef uint32_t timer_ticks_t;
42 |
43 | extern volatile timer_ticks_t timer_delayCount;
44 |
45 | extern void
46 | timer_start (void);
47 |
48 | extern void
49 | timer_sleep (timer_ticks_t ticks);
50 |
51 | // ----------------------------------------------------------------------------
52 |
53 | #endif // TIMER_H_
54 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_adxl355_pmdz/system.svc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_adxl355_pmdz/system/adi_initialize.c:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.c source file generated on August 25, 2017 at 11:32:23.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #include
11 |
12 | #include "adi_initialize.h"
13 |
14 |
15 | int32_t adi_initComponents(void)
16 | {
17 | int32_t result = 0;
18 |
19 |
20 | return result;
21 | }
22 |
23 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_adxl355_pmdz/system/adi_initialize.h:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.h header file generated on August 25, 2017 at 11:32:23.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #ifndef __ADI_COMPONENT_INIT_H__
11 | #define __ADI_COMPONENT_INIT_H__
12 | #include
13 |
14 | #ifdef __cplusplus
15 | extern "C" {
16 | #endif
17 |
18 | /* Declare "adi_initComponents()" */
19 | int32_t adi_initComponents(void);
20 |
21 | #ifdef __cplusplus
22 | }
23 | #endif
24 |
25 | #endif /* __ADI_COMPONENT_INIT_H__ */
26 |
27 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_adxl362/.gitignore:
--------------------------------------------------------------------------------
1 | /Debug/
2 | /Release/
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_adxl362/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | ADuCM360_demo_adxl362
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.cdt.managedbuilder.core.genmakebuilder
10 | clean,full,incremental,
11 |
12 |
13 |
14 |
15 | org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder
16 | full,incremental,
17 |
18 |
19 |
20 |
21 | com.analog.crosscore.managedbuilder.core.cleanbuilder
22 | clean,
23 |
24 |
25 |
26 |
27 |
28 | org.eclipse.cdt.core.cnature
29 | org.eclipse.cdt.managedbuilder.core.managedBuildNature
30 | org.eclipse.cdt.managedbuilder.core.ScannerConfigNature
31 | com.analog.crosscore.managedbuilder.core.CCESProjectNature
32 | com.arm.cmsis.pack.project.RteNature
33 |
34 |
35 |
36 | RTE/Device/ADuCM360/ClkLib.c
37 | 1
38 | $%7Bcmsis_pack_root%7D/AnalogDevices/ADuCM36x_DFP/1.0.2/Device/Source/drivers/ClkLib.c
39 |
40 |
41 | RTE/Device/ADuCM360/DioLib.c
42 | 1
43 | $%7Bcmsis_pack_root%7D/AnalogDevices/ADuCM36x_DFP/1.0.2/Device/Source/drivers/DioLib.c
44 |
45 |
46 | RTE/Device/ADuCM360/DmaLib.c
47 | 1
48 | $%7Bcmsis_pack_root%7D/AnalogDevices/ADuCM36x_DFP/1.0.2/Device/Source/drivers/DmaLib.c
49 |
50 |
51 | RTE/Device/ADuCM360/SpiLib.c
52 | 1
53 | $%7Bcmsis_pack_root%7D/AnalogDevices/ADuCM36x_DFP/1.0.2/Device/Source/drivers/SpiLib.c
54 |
55 |
56 | RTE/Device/ADuCM360/UrtLib.c
57 | 1
58 | $%7Bcmsis_pack_root%7D/AnalogDevices/ADuCM36x_DFP/1.0.2/Device/Source/drivers/UrtLib.c
59 |
60 |
61 |
62 |
63 | CCES
64 | file:/Users/amclach/Applications/CrossCore%20Embedded%20Studio.app/Contents
65 |
66 |
67 |
68 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_adxl362/.settings/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.7.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_adxl362/.settings/org.eclipse.cdt.managedbuilder.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | environment/buildEnvironmentInclude/ilg.gnuarmeclipse.managedbuild.cross.config.elf.debug.1197066738/CPATH/delimiter=;
3 | environment/buildEnvironmentInclude/ilg.gnuarmeclipse.managedbuild.cross.config.elf.debug.1197066738/CPATH/operation=remove
4 | environment/buildEnvironmentInclude/ilg.gnuarmeclipse.managedbuild.cross.config.elf.debug.1197066738/CPLUS_INCLUDE_PATH/delimiter=;
5 | environment/buildEnvironmentInclude/ilg.gnuarmeclipse.managedbuild.cross.config.elf.debug.1197066738/CPLUS_INCLUDE_PATH/operation=remove
6 | environment/buildEnvironmentInclude/ilg.gnuarmeclipse.managedbuild.cross.config.elf.debug.1197066738/C_INCLUDE_PATH/delimiter=;
7 | environment/buildEnvironmentInclude/ilg.gnuarmeclipse.managedbuild.cross.config.elf.debug.1197066738/C_INCLUDE_PATH/operation=remove
8 | environment/buildEnvironmentInclude/ilg.gnuarmeclipse.managedbuild.cross.config.elf.debug.1197066738/append=true
9 | environment/buildEnvironmentInclude/ilg.gnuarmeclipse.managedbuild.cross.config.elf.debug.1197066738/appendContributed=true
10 | environment/buildEnvironmentLibrary/ilg.gnuarmeclipse.managedbuild.cross.config.elf.debug.1197066738/LIBRARY_PATH/delimiter=;
11 | environment/buildEnvironmentLibrary/ilg.gnuarmeclipse.managedbuild.cross.config.elf.debug.1197066738/LIBRARY_PATH/operation=remove
12 | environment/buildEnvironmentLibrary/ilg.gnuarmeclipse.managedbuild.cross.config.elf.debug.1197066738/append=true
13 | environment/buildEnvironmentLibrary/ilg.gnuarmeclipse.managedbuild.cross.config.elf.debug.1197066738/appendContributed=true
14 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_adxl362/.settings/settings/DefaultProjectAttribute.prefs:
--------------------------------------------------------------------------------
1 | ArtifactType=org.eclipse.cdt.build.core.buildArtefactType.exe
2 | CoreId=0
3 | Processor=ADuCM360
4 | Revision=none
5 | adi_initialize.c.lastgenerated=1503632265181
6 | adi_initialize.h.lastgenerated=1503632265224
7 | eclipse.preferences.version=1
8 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_adxl362/.settings/settings/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.6.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_adxl362/RTE/RTE_Components.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Auto generated Run-Time-Environment Component Configuration File
3 | * *** Do not modify ! ***
4 | *
5 | * Project: ADuCM360_demo_adxl362
6 | * RTE configuration: system.rteconfig
7 | */
8 | #ifndef RTE_COMPONENTS_H
9 | #define RTE_COMPONENTS_H
10 |
11 | /*
12 | * Define the Device Header File:
13 | */
14 | #define CMSIS_device_header "ADuCM360.h"
15 |
16 |
17 | #endif /* RTE_COMPONENTS_H */
18 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_adxl362/include/Timer.h:
--------------------------------------------------------------------------------
1 | /*!
2 | *****************************************************************************
3 | * @file: Timer.h
4 | * @brief:
5 | * @version: $Revision$
6 | * @date: $Date$
7 | *-----------------------------------------------------------------------------
8 | *
9 | Copyright (c) 2014 Liviu Ionescu.
10 |
11 | Portions Copyright (c) 2017 Analog Devices, Inc.
12 |
13 | Permission is hereby granted, free of charge, to any person obtaining a
14 | copy of this software and associated documentation files (the "Software"),
15 | to deal in the Software without restriction, including without limitation
16 | the rights to use, copy, modify, merge, publish, distribute, sublicense,
17 | and/or sell copies of the Software, and to permit persons to whom the
18 | Software is furnished to do so, subject to the following conditions:
19 |
20 | The above copyright notice and this permission notice shall be included in
21 | all copies or substantial portions of the Software.
22 |
23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26 | THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
27 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
28 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
29 | OTHER DEALINGS IN THE SOFTWARE.
30 | */
31 |
32 | #ifndef TIMER_H_
33 | #define TIMER_H_
34 |
35 | #include
36 |
37 | // ----------------------------------------------------------------------------
38 |
39 | #define TIMER_FREQUENCY_HZ (1000u)
40 |
41 | typedef uint32_t timer_ticks_t;
42 |
43 | extern volatile timer_ticks_t timer_delayCount;
44 |
45 | extern void
46 | timer_start (void);
47 |
48 | extern void
49 | timer_sleep (timer_ticks_t ticks);
50 |
51 | // ----------------------------------------------------------------------------
52 |
53 | #endif // TIMER_H_
54 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_adxl362/system.svc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_adxl362/system/adi_initialize.c:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.c source file generated on August 25, 2017 at 11:37:45.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #include
11 |
12 | #include "adi_initialize.h"
13 |
14 |
15 | int32_t adi_initComponents(void)
16 | {
17 | int32_t result = 0;
18 |
19 |
20 | return result;
21 | }
22 |
23 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_adxl362/system/adi_initialize.h:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.h header file generated on August 25, 2017 at 11:37:45.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #ifndef __ADI_COMPONENT_INIT_H__
11 | #define __ADI_COMPONENT_INIT_H__
12 | #include
13 |
14 | #ifdef __cplusplus
15 | extern "C" {
16 | #endif
17 |
18 | /* Declare "adi_initComponents()" */
19 | int32_t adi_initComponents(void);
20 |
21 | #ifdef __cplusplus
22 | }
23 | #endif
24 |
25 | #endif /* __ADI_COMPONENT_INIT_H__ */
26 |
27 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_blink/ARM/.gitignore:
--------------------------------------------------------------------------------
1 | /Debug/
2 | /Release/
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_blink/ARM/include/Timer.h:
--------------------------------------------------------------------------------
1 | /*!
2 | *****************************************************************************
3 | * @file: Timer.h
4 | * @brief:
5 | * @version: $Revision$
6 | * @date: $Date$
7 | *-----------------------------------------------------------------------------
8 | *
9 | Copyright (c) 2014 Liviu Ionescu.
10 |
11 | Portions Copyright (c) 2017 Analog Devices, Inc.
12 |
13 | Permission is hereby granted, free of charge, to any person obtaining a
14 | copy of this software and associated documentation files (the "Software"),
15 | to deal in the Software without restriction, including without limitation
16 | the rights to use, copy, modify, merge, publish, distribute, sublicense,
17 | and/or sell copies of the Software, and to permit persons to whom the
18 | Software is furnished to do so, subject to the following conditions:
19 |
20 | The above copyright notice and this permission notice shall be included in
21 | all copies or substantial portions of the Software.
22 |
23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26 | THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
27 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
28 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
29 | OTHER DEALINGS IN THE SOFTWARE.
30 | */
31 |
32 | #ifndef TIMER_H_
33 | #define TIMER_H_
34 |
35 | #include
36 | #include "GptLib.h"
37 |
38 | // ----------------------------------------------------------------------------
39 |
40 | #define TIMER_FREQUENCY_HZ (1000u)
41 |
42 | typedef uint32_t timer_ticks_t;
43 |
44 | extern volatile timer_ticks_t timer_delayCount;
45 |
46 | extern void timer_start (void);
47 |
48 | extern void timer_sleep (timer_ticks_t ticks);
49 |
50 | // ----------------------------------------------------------------------------
51 |
52 | #endif // TIMER_H_
53 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_blink/GCC/.gitignore:
--------------------------------------------------------------------------------
1 | /Debug/
2 | /Release/
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_blink/GCC/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | ADuCM360_demo_blink
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.cdt.managedbuilder.core.genmakebuilder
10 | clean,full,incremental,
11 |
12 |
13 |
14 |
15 | org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder
16 | full,incremental,
17 |
18 |
19 |
20 |
21 | com.analog.crosscore.managedbuilder.core.cleanbuilder
22 | clean,
23 |
24 |
25 |
26 |
27 |
28 | org.eclipse.cdt.core.cnature
29 | org.eclipse.cdt.managedbuilder.core.managedBuildNature
30 | org.eclipse.cdt.managedbuilder.core.ScannerConfigNature
31 | com.analog.crosscore.managedbuilder.core.CCESProjectNature
32 | com.arm.cmsis.pack.project.RteNature
33 |
34 |
35 |
36 | RTE/Device/ADuCM360/DioLib.c
37 | 1
38 | $%7Bcmsis_pack_root%7D/AnalogDevices/ADuCM36x_DFP/1.0.2/Device/Source/drivers/DioLib.c
39 |
40 |
41 | RTE/Device/ADuCM360/GptLib.c
42 | 1
43 | $%7Bcmsis_pack_root%7D/AnalogDevices/ADuCM36x_DFP/1.0.2/Device/Source/drivers/GptLib.c
44 |
45 |
46 |
47 |
48 | CCES
49 | file:/Users/amclach/Applications/CrossCore%20Embedded%20Studio.app/Contents
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_blink/GCC/.settings/DefaultProjectAttribute.prefs:
--------------------------------------------------------------------------------
1 | ArtifactType=org.eclipse.cdt.build.core.buildArtefactType.exe
2 | CoreId=0
3 | Processor=ADuCM360
4 | Revision=none
5 | adi_initialize.c.lastgenerated=1503629947332
6 | adi_initialize.h.lastgenerated=1503629947383
7 | eclipse.preferences.version=1
8 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_blink/GCC/.settings/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.7.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_blink/GCC/RTE/RTE_Components.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Auto generated Run-Time-Environment Component Configuration File
3 | * *** Do not modify ! ***
4 | *
5 | * Project: ADuCM360_demo_blink
6 | * RTE configuration: system.rteconfig
7 | */
8 | #ifndef RTE_COMPONENTS_H
9 | #define RTE_COMPONENTS_H
10 |
11 | /*
12 | * Define the Device Header File:
13 | */
14 | #define CMSIS_device_header "ADuCM360.h"
15 |
16 |
17 | #endif /* RTE_COMPONENTS_H */
18 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_blink/GCC/include/Timer.h:
--------------------------------------------------------------------------------
1 | /*!
2 | *****************************************************************************
3 | * @file: Timer.h
4 | * @brief:
5 | * @version: $Revision$
6 | * @date: $Date$
7 | *-----------------------------------------------------------------------------
8 | *
9 | Copyright (c) 2014 Liviu Ionescu.
10 |
11 | Portions Copyright (c) 2017 Analog Devices, Inc.
12 |
13 | Permission is hereby granted, free of charge, to any person obtaining a
14 | copy of this software and associated documentation files (the "Software"),
15 | to deal in the Software without restriction, including without limitation
16 | the rights to use, copy, modify, merge, publish, distribute, sublicense,
17 | and/or sell copies of the Software, and to permit persons to whom the
18 | Software is furnished to do so, subject to the following conditions:
19 |
20 | The above copyright notice and this permission notice shall be included in
21 | all copies or substantial portions of the Software.
22 |
23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26 | THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
27 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
28 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
29 | OTHER DEALINGS IN THE SOFTWARE.
30 | */
31 |
32 | #ifndef TIMER_H_
33 | #define TIMER_H_
34 |
35 | #include
36 | #include "GptLib.h"
37 |
38 | // ----------------------------------------------------------------------------
39 |
40 | #define TIMER_FREQUENCY_HZ (1000u)
41 |
42 | typedef uint32_t timer_ticks_t;
43 |
44 | extern volatile timer_ticks_t timer_delayCount;
45 |
46 | extern void timer_start (void);
47 |
48 | extern void timer_sleep (timer_ticks_t ticks);
49 |
50 | // ----------------------------------------------------------------------------
51 |
52 | #endif // TIMER_H_
53 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_blink/GCC/system.svc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_blink/GCC/system/adi_initialize.c:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.c source file generated on August 25, 2017 at 10:59:07.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #include
11 |
12 | #include "adi_initialize.h"
13 |
14 |
15 | int32_t adi_initComponents(void)
16 | {
17 | int32_t result = 0;
18 |
19 |
20 | return result;
21 | }
22 |
23 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_blink/GCC/system/adi_initialize.h:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.h header file generated on August 25, 2017 at 10:59:07.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #ifndef __ADI_COMPONENT_INIT_H__
11 | #define __ADI_COMPONENT_INIT_H__
12 | #include
13 |
14 | #ifdef __cplusplus
15 | extern "C" {
16 | #endif
17 |
18 | /* Declare "adi_initComponents()" */
19 | int32_t adi_initComponents(void);
20 |
21 | #ifdef __cplusplus
22 | }
23 | #endif
24 |
25 | #endif /* __ADI_COMPONENT_INIT_H__ */
26 |
27 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_blink/IAR/.gitignore:
--------------------------------------------------------------------------------
1 | /Debug/
2 | /Release/
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_blink/IAR/ADuCM360_demo_blink.eww:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | $WS_DIR$\ADuCM360_demo_blink.ewp
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_blink/IAR/include/Timer.h:
--------------------------------------------------------------------------------
1 | /*!
2 | *****************************************************************************
3 | * @file: Timer.h
4 | * @brief:
5 | * @version: $Revision$
6 | * @date: $Date$
7 | *-----------------------------------------------------------------------------
8 | *
9 | Copyright (c) 2014 Liviu Ionescu.
10 |
11 | Portions Copyright (c) 2017 Analog Devices, Inc.
12 |
13 | Permission is hereby granted, free of charge, to any person obtaining a
14 | copy of this software and associated documentation files (the "Software"),
15 | to deal in the Software without restriction, including without limitation
16 | the rights to use, copy, modify, merge, publish, distribute, sublicense,
17 | and/or sell copies of the Software, and to permit persons to whom the
18 | Software is furnished to do so, subject to the following conditions:
19 |
20 | The above copyright notice and this permission notice shall be included in
21 | all copies or substantial portions of the Software.
22 |
23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26 | THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
27 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
28 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
29 | OTHER DEALINGS IN THE SOFTWARE.
30 | */
31 |
32 | #ifndef TIMER_H_
33 | #define TIMER_H_
34 |
35 | #include "cmsis_device.h"
36 | #include "GptLib.h"
37 |
38 | // ----------------------------------------------------------------------------
39 |
40 | #define TIMER_FREQUENCY_HZ (1000u)
41 |
42 | typedef uint32_t timer_ticks_t;
43 |
44 | extern volatile timer_ticks_t timer_delayCount;
45 |
46 | extern void timer_start (void);
47 |
48 | extern void timer_sleep (timer_ticks_t ticks);
49 |
50 | // ----------------------------------------------------------------------------
51 |
52 | #endif // TIMER_H_
53 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_blink/IAR/settings/ADuCM360_demo_blink.Debug.cspy.bat:
--------------------------------------------------------------------------------
1 | @REM This batch file has been generated by the IAR Embedded Workbench
2 | @REM C-SPY Debugger, as an aid to preparing a command line for running
3 | @REM the cspybat command line utility using the appropriate settings.
4 | @REM
5 | @REM Note that this file is generated every time a new debug session
6 | @REM is initialized, so you may want to move or rename the file before
7 | @REM making changes.
8 | @REM
9 | @REM You can launch cspybat by typing the name of this batch file followed
10 | @REM by the name of the debug file (usually an ELF/DWARF or UBROF file).
11 | @REM
12 | @REM Read about available command line parameters in the C-SPY Debugging
13 | @REM Guide. Hints about additional command line parameters that may be
14 | @REM useful in specific cases:
15 | @REM --download_only Downloads a code image without starting a debug
16 | @REM session afterwards.
17 | @REM --silent Omits the sign-on message.
18 | @REM --timeout Limits the maximum allowed execution time.
19 | @REM
20 |
21 |
22 | @echo off
23 |
24 | if not "%~1" == "" goto debugFile
25 |
26 | @echo on
27 |
28 | "C:\IAR Systems\Embedded Workbench 7.4\common\bin\cspybat" -f "C:\BitBucket\cortex-m\eval-adicup360\projects\ADuCM360_demo_blink\IAR\settings\ADuCM360_demo_blink.Debug.general.xcl" --backend -f "C:\BitBucket\cortex-m\eval-adicup360\projects\ADuCM360_demo_blink\IAR\settings\ADuCM360_demo_blink.Debug.driver.xcl"
29 |
30 | @echo off
31 | goto end
32 |
33 | :debugFile
34 |
35 | @echo on
36 |
37 | "C:\IAR Systems\Embedded Workbench 7.4\common\bin\cspybat" -f "C:\BitBucket\cortex-m\eval-adicup360\projects\ADuCM360_demo_blink\IAR\settings\ADuCM360_demo_blink.Debug.general.xcl" "--debug_file=%~1" --backend -f "C:\BitBucket\cortex-m\eval-adicup360\projects\ADuCM360_demo_blink\IAR\settings\ADuCM360_demo_blink.Debug.driver.xcl"
38 |
39 | @echo off
40 | :end
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_blink/IAR/settings/ADuCM360_demo_blink.Debug.driver.xcl:
--------------------------------------------------------------------------------
1 | "--endian=little"
2 |
3 | "--cpu=Cortex-M3"
4 |
5 | "--fpu=None"
6 |
7 | "-p"
8 |
9 | "C:\IAR Systems\Embedded Workbench 7.4\arm\CONFIG\debugger\AnalogDevices\ADuCM360.ddf"
10 |
11 | "--semihosting"
12 |
13 | "--device=ADuCM360"
14 |
15 | "--multicore_nr_of_cores=1"
16 |
17 | "--jet_probe=cmsisdap"
18 |
19 | "--jet_script_file=C:\IAR Systems\Embedded Workbench 7.4\arm\config\debugger\AnalogDevices\ADuCM3xx.ProbeScript"
20 |
21 | "--jet_standard_reset=7,0,0"
22 |
23 | "--reset_style=\"0,-,0,Disabled__no_reset_\""
24 |
25 | "--reset_style=\"1,-,0,Software\""
26 |
27 | "--reset_style=\"2,-,0,Hardware\""
28 |
29 | "--reset_style=\"3,-,0,Core\""
30 |
31 | "--reset_style=\"4,-,0,System\""
32 |
33 | "--reset_style=\"7,ResetHaltAfterBoot,1,Reset_and_halt_after_bootloader\""
34 |
35 | "--drv_interface=SWD"
36 |
37 | "--drv_catch_exceptions=0x7f0"
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_blink/IAR/settings/ADuCM360_demo_blink.Debug.general.xcl:
--------------------------------------------------------------------------------
1 | "C:\IAR Systems\Embedded Workbench 7.4\arm\bin\armproc.dll"
2 |
3 | "C:\IAR Systems\Embedded Workbench 7.4\arm\bin\armJET.dll"
4 |
5 | "C:\BitBucket\cortex-m\eval-adicup360\projects\ADuCM360_demo_blink\IAR\Debug\Exe\ADuCM360_demo_blink.out"
6 |
7 | --plugin "C:\IAR Systems\Embedded Workbench 7.4\arm\bin\armbat.dll"
8 |
9 | --device_macro "C:\IAR Systems\Embedded Workbench 7.4\arm\config\debugger\AnalogDevices\ADuCM36x.dmac"
10 |
11 | --flash_loader "C:\IAR Systems\Embedded Workbench 7.4\arm\config\flashloader\AnalogDevices\FlashADUCM3xx128K_8K.board"
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_blink/IAR/settings/ADuCM360_demo_blink.Release.cspy.bat:
--------------------------------------------------------------------------------
1 | @REM This batch file has been generated by the IAR Embedded Workbench
2 | @REM C-SPY Debugger, as an aid to preparing a command line for running
3 | @REM the cspybat command line utility using the appropriate settings.
4 | @REM
5 | @REM Note that this file is generated every time a new debug session
6 | @REM is initialized, so you may want to move or rename the file before
7 | @REM making changes.
8 | @REM
9 | @REM You can launch cspybat by typing the name of this batch file followed
10 | @REM by the name of the debug file (usually an ELF/DWARF or UBROF file).
11 | @REM
12 | @REM Read about available command line parameters in the C-SPY Debugging
13 | @REM Guide. Hints about additional command line parameters that may be
14 | @REM useful in specific cases:
15 | @REM --download_only Downloads a code image without starting a debug
16 | @REM session afterwards.
17 | @REM --silent Omits the sign-on message.
18 | @REM --timeout Limits the maximum allowed execution time.
19 | @REM
20 |
21 |
22 | @echo off
23 |
24 | if not "%~1" == "" goto debugFile
25 |
26 | @echo on
27 |
28 | "C:\IAR Systems\Embedded Workbench 7.4\common\bin\cspybat" -f "C:\BitBucket\cortex-m\eval-adicup360\projects\ADuCM360_demo_blink\IAR\settings\ADuCM360_demo_blink.Release.general.xcl" --backend -f "C:\BitBucket\cortex-m\eval-adicup360\projects\ADuCM360_demo_blink\IAR\settings\ADuCM360_demo_blink.Release.driver.xcl"
29 |
30 | @echo off
31 | goto end
32 |
33 | :debugFile
34 |
35 | @echo on
36 |
37 | "C:\IAR Systems\Embedded Workbench 7.4\common\bin\cspybat" -f "C:\BitBucket\cortex-m\eval-adicup360\projects\ADuCM360_demo_blink\IAR\settings\ADuCM360_demo_blink.Release.general.xcl" "--debug_file=%~1" --backend -f "C:\BitBucket\cortex-m\eval-adicup360\projects\ADuCM360_demo_blink\IAR\settings\ADuCM360_demo_blink.Release.driver.xcl"
38 |
39 | @echo off
40 | :end
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_blink/IAR/settings/ADuCM360_demo_blink.Release.driver.xcl:
--------------------------------------------------------------------------------
1 | "--endian=little"
2 |
3 | "--cpu=Cortex-M3"
4 |
5 | "--fpu=None"
6 |
7 | "--semihosting=none"
8 |
9 | "--multicore_nr_of_cores=1"
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_blink/IAR/settings/ADuCM360_demo_blink.Release.general.xcl:
--------------------------------------------------------------------------------
1 | "C:\IAR Systems\Embedded Workbench 7.4\arm\bin\armproc.dll"
2 |
3 | "C:\IAR Systems\Embedded Workbench 7.4\arm\bin\armsim2.dll"
4 |
5 | "C:\BitBucket\cortex-m\eval-adicup360\projects\ADuCM360_demo_blink\IAR\Release\Exe\ADuCM360_demo_blink.out"
6 |
7 | --plugin "C:\IAR Systems\Embedded Workbench 7.4\arm\bin\armbat.dll"
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_blink/IAR/settings/ADuCM360_demo_blink.crun:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 1
5 |
6 |
7 | *
8 | *
9 | *
10 | 0
11 | 1
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_blink/IAR/settings/ADuCM360_demo_blink.dni:
--------------------------------------------------------------------------------
1 | [Stack]
2 | FillEnabled=0
3 | OverflowWarningsEnabled=1
4 | WarningThreshold=90
5 | SpWarningsEnabled=1
6 | WarnLogOnly=1
7 | UseTrigger=1
8 | TriggerName=main
9 | LimitSize=0
10 | ByteLimit=50
11 | [PlDriver]
12 | MemConfigValue=C:\IAR Systems\Embedded Workbench 7.4\arm\CONFIG\debugger\AnalogDevices\ADuCM360.ddf
13 | FirstRun=0
14 | [Jet]
15 | DisableInterrupts=0
16 | MultiCoreRunAll=0
17 | JetConnSerialNo=00007
18 | JetConnFoundProbes=
19 | OnlineReset=Software
20 | PrevWtdReset=Reset and halt after bootloader
21 | LeaveRunning=0
22 | [ArmDriver]
23 | EnableCache=1
24 | [DebugChecksum]
25 | Checksum=-1512403140
26 | [Exceptions]
27 | StopOnUncaught=_ 0
28 | StopOnThrow=_ 0
29 | [CallStack]
30 | ShowArgs=0
31 | [Disassembly]
32 | MixedMode=1
33 | [SWOManager]
34 | SamplingDivider=8192
35 | OverrideClock=0
36 | CpuClock=0
37 | SwoClock=1858881939
38 | DataLogMode=0
39 | ItmPortsEnabled=63
40 | ItmTermIOPorts=1
41 | ItmLogPorts=0
42 | ItmLogFile=$PROJ_DIR$\ITM.log
43 | PowerForcePC=1
44 | PowerConnectPC=1
45 | [ETMTraceWindow]
46 | PortWidth=4
47 | PortMode=0
48 | CaptureDataValues=0
49 | CaptureDataAddresses=0
50 | CaptureDataRange=0
51 | DataFirst=0
52 | DataLast=-1
53 | StopWhen=0
54 | StallCPU=0
55 | NoPCCapture=0
56 | [Trace2]
57 | Enabled=0
58 | ShowSource=0
59 | [SWOTraceWindow]
60 | ForcedPcSampling=0
61 | ForcedInterruptLogs=0
62 | ForcedItmLogs=0
63 | EventCPI=0
64 | EventEXC=0
65 | EventFOLD=0
66 | EventLSU=0
67 | EventSLEEP=0
68 | [Log file]
69 | LoggingEnabled=_ 0
70 | LogFile=_ ""
71 | Category=_ 0
72 | [TermIOLog]
73 | LoggingEnabled=_ 0
74 | LogFile=_ ""
75 | [InterruptLog]
76 | LogEnabled=0
77 | GraphEnabled=0
78 | ShowTimeLog=1
79 | SumEnabled=0
80 | ShowTimeSum=1
81 | SumSortOrder=0
82 | [DataLog]
83 | LogEnabled=0
84 | GraphEnabled=0
85 | ShowTimeLog=1
86 | SumEnabled=0
87 | ShowTimeSum=1
88 | [Interrupts]
89 | Enabled=1
90 | [MemConfig]
91 | Base=1
92 | Manual=0
93 | Ddf=1
94 | TypeViol=0
95 | Stop=1
96 | [Trace1]
97 | Enabled=0
98 | ShowSource=1
99 | [Simulator]
100 | Freq=10000000
101 | MultiCoreRunAll=1
102 | [Disassemble mode]
103 | mode=0
104 | [Breakpoints2]
105 | Count=0
106 | [Aliases]
107 | Count=0
108 | SuppressDialog=0
109 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_blink/IAR/settings/ADuCM360_demo_blink.wspos:
--------------------------------------------------------------------------------
1 | [MainWindow]
2 | WindowPlacement=_ 143 137 1741 1074 1
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_blink/IAR/system/include/CMSIS/README_CMSIS.txt:
--------------------------------------------------------------------------------
1 | * -------------------------------------------------------------------
2 | * Copyright (C) 2010-2014 ARM Limited. All rights reserved.
3 | *
4 | * Project: Cortex Microcontroller Software Interface Standard (CMSIS)
5 | * Title: Release Note for CMSIS
6 | *
7 | * -------------------------------------------------------------------
8 |
9 | These files are the CMSIS Core Support and CMSIS DSP Include Files.
10 |
11 | To save space, from the complete ARM CMSIS v4.5.0 pack file can be downloaded from
12 | https://www.keil.com/dd2/pack/ only select files from the CMSIS/Include folder are used here.
13 |
14 | License the CMSIS components (CORE, RTOS, DSP, Driver) that are intended to run on the Cortex-M
15 | device are today licensed under BSD or zlib license. The detailed license agreement for CMSIS
16 | can be found here:
17 | https://github.com/ARM-software/CMSIS/blob/master/CMSIS/CMSIS_END_USER_LICENCE_AGREEMENT.pdf
18 | (refer to Separate Files)
19 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_blink/IAR/system/include/CMSIS/cmsis_device.h:
--------------------------------------------------------------------------------
1 | #ifndef _CMSIS_H_
2 | #define _CMSIS_H_
3 |
4 | #include "ADuCM360.h"
5 |
6 | #endif // _CMSIS_H_
7 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_blink/IAR/system/src/cortexm/_reset_hardware.c:
--------------------------------------------------------------------------------
1 | //
2 | // This file is part of the µOS++ III distribution.
3 | // Copyright (c) 2014 Liviu Ionescu.
4 | //
5 |
6 | // ----------------------------------------------------------------------------
7 |
8 | #include "cmsis_device.h"
9 |
10 | // ----------------------------------------------------------------------------
11 |
12 | extern void
13 | __attribute__((noreturn))
14 | NVIC_SystemReset(void);
15 |
16 | // ----------------------------------------------------------------------------
17 |
18 | // Forward declarations
19 |
20 | void
21 | __reset_hardware(void);
22 |
23 | // ----------------------------------------------------------------------------
24 |
25 | // This is the default hardware reset routine; it can be
26 | // redefined in the application for more complex applications.
27 | //
28 | // Called from _exit().
29 |
30 | void
31 | __attribute__((weak,noreturn))
32 | __reset_hardware()
33 | {
34 | NVIC_SystemReset();
35 | }
36 |
37 | // ----------------------------------------------------------------------------
38 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_blink/IAR/system/src/diag/Trace.c:
--------------------------------------------------------------------------------
1 | //
2 | // This file is part of the µOS++ III distribution.
3 | // Copyright (c) 2014 Liviu Ionescu.
4 | //
5 |
6 | // ----------------------------------------------------------------------------
7 |
8 | #if defined(TRACE)
9 |
10 | #include
11 | #include
12 | #include "diag/Trace.h"
13 | #include "string.h"
14 |
15 | #ifndef OS_INTEGER_TRACE_PRINTF_TMP_ARRAY_SIZE
16 | #define OS_INTEGER_TRACE_PRINTF_TMP_ARRAY_SIZE (128)
17 | #endif
18 |
19 | // ----------------------------------------------------------------------------
20 |
21 | int
22 | trace_printf(const char* format, ...)
23 | {
24 | int ret;
25 | va_list ap;
26 |
27 | va_start (ap, format);
28 |
29 | // TODO: rewrite it to no longer use newlib, it is way too heavy
30 |
31 | static char buf[OS_INTEGER_TRACE_PRINTF_TMP_ARRAY_SIZE];
32 |
33 | // Print to the local buffer
34 | ret = vsnprintf (buf, sizeof(buf), format, ap);
35 | if (ret > 0)
36 | {
37 | // Transfer the buffer to the device
38 | ret = trace_write (buf, (size_t)ret);
39 | }
40 |
41 | va_end (ap);
42 | return ret;
43 | }
44 |
45 | int
46 | trace_puts(const char *s)
47 | {
48 | trace_write(s, strlen(s));
49 | return trace_write("\n", 1);
50 | }
51 |
52 | int
53 | trace_putchar(int c)
54 | {
55 | trace_write((const char*)&c, 1);
56 | return c;
57 | }
58 |
59 | void
60 | trace_dump_args(int argc, char* argv[])
61 | {
62 | trace_printf("main(argc=%d, argv=[", argc);
63 | for (int i = 0; i < argc; ++i)
64 | {
65 | if (i != 0)
66 | {
67 | trace_printf(", ");
68 | }
69 | trace_printf("\"%s\"", argv[i]);
70 | }
71 | trace_printf("]);\n");
72 | }
73 |
74 | // ----------------------------------------------------------------------------
75 |
76 | #endif // TRACE
77 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_blink/IAR/system/src/newlib/README.txt:
--------------------------------------------------------------------------------
1 |
2 | The following files extend or replace some of the the newlib functionality:
3 |
4 | _startup.c: a customised startup sequence, written in C
5 |
6 | _exit.c: a customised exit() implementation
7 |
8 | _syscalls.c: local versions of the libnosys/librdimon code
9 |
10 | _sbrk.c: a custom _sbrk() to match the actual linker scripts
11 |
12 | assert.c: implementation for the asserion macros
13 |
14 | _cxx.cpp: local versions of some C++ support, to avoid references to
15 | large functions.
16 |
17 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_blink/IAR/system/src/newlib/_cxx.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // This file is part of the µOS++ III distribution.
3 | // Copyright (c) 2014 Liviu Ionescu.
4 | //
5 |
6 | // ----------------------------------------------------------------------------
7 |
8 | // These functions are redefined locally, to avoid references to some
9 | // heavy implementations in the standard C++ library.
10 |
11 | // ----------------------------------------------------------------------------
12 |
13 | #include
14 | #include
15 | #include "diag/Trace.h"
16 |
17 | // ----------------------------------------------------------------------------
18 |
19 | namespace __gnu_cxx
20 | {
21 | void
22 | __attribute__((noreturn))
23 | __verbose_terminate_handler();
24 |
25 | void
26 | __verbose_terminate_handler()
27 | {
28 | trace_puts(__func__);
29 | abort();
30 | }
31 | }
32 |
33 | // ----------------------------------------------------------------------------
34 |
35 | extern "C"
36 | {
37 | void
38 | __attribute__((noreturn))
39 | __cxa_pure_virtual();
40 |
41 | void
42 | __cxa_pure_virtual()
43 | {
44 | trace_puts(__func__);
45 | abort();
46 | }
47 | }
48 |
49 | // ----------------------------------------------------------------------------
50 |
51 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_blink/IAR/system/src/newlib/_exit.c:
--------------------------------------------------------------------------------
1 | //
2 | // This file is part of the µOS++ III distribution.
3 | // Copyright (c) 2014 Liviu Ionescu.
4 | //
5 |
6 | // ----------------------------------------------------------------------------
7 |
8 | #include
9 | #include "diag/Trace.h"
10 |
11 | // ----------------------------------------------------------------------------
12 |
13 | extern void
14 | __attribute__((noreturn))
15 | __reset_hardware(void);
16 |
17 | // ----------------------------------------------------------------------------
18 |
19 | // Forward declaration
20 |
21 | void
22 | _exit(int code);
23 |
24 | // ----------------------------------------------------------------------------
25 |
26 | // On Release, call the hardware reset procedure.
27 | // On Debug we just enter an infinite loop, to be used as landmark when halting
28 | // the debugger.
29 | //
30 | // It can be redefined in the application, if more functionality
31 | // is required.
32 |
33 | void
34 | __attribute__((weak))
35 | _exit(int code __attribute__((unused)))
36 | {
37 | #if !defined(DEBUG)
38 | __reset_hardware();
39 | #endif
40 |
41 | // TODO: write on trace
42 | while (1)
43 | ;
44 | }
45 |
46 | // ----------------------------------------------------------------------------
47 |
48 | void
49 | __attribute__((weak,noreturn))
50 | abort(void)
51 | {
52 | trace_puts("abort(), exiting...");
53 |
54 | _exit(1);
55 | }
56 |
57 | // ----------------------------------------------------------------------------
58 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_blink/IAR/system/src/newlib/_sbrk.c:
--------------------------------------------------------------------------------
1 | //
2 | // This file is part of the µOS++ III distribution.
3 | // Copyright (c) 2014 Liviu Ionescu.
4 | //
5 |
6 | // ----------------------------------------------------------------------------
7 |
8 | #include
9 | #include
10 |
11 | // ----------------------------------------------------------------------------
12 |
13 | caddr_t
14 | _sbrk(int incr);
15 |
16 | // ----------------------------------------------------------------------------
17 |
18 | // The definitions used here should be kept in sync with the
19 | // stack definitions in the linker script.
20 |
21 | caddr_t
22 | _sbrk(int incr)
23 | {
24 | extern char _Heap_Begin; // Defined by the linker.
25 | extern char _Heap_Limit; // Defined by the linker.
26 |
27 | static char* current_heap_end;
28 | char* current_block_address;
29 |
30 | if (current_heap_end == 0)
31 | {
32 | current_heap_end = &_Heap_Begin;
33 | }
34 |
35 | current_block_address = current_heap_end;
36 |
37 | // Need to align heap to word boundary, else will get
38 | // hard faults on Cortex-M0. So we assume that heap starts on
39 | // word boundary, hence make sure we always add a multiple of
40 | // 4 to it.
41 | incr = (incr + 3) & (~3); // align value to 4
42 | if (current_heap_end + incr > &_Heap_Limit)
43 | {
44 | // Some of the libstdc++-v3 tests rely upon detecting
45 | // out of memory errors, so do not abort here.
46 | #if 0
47 | extern void abort (void);
48 |
49 | _write (1, "_sbrk: Heap and stack collision\n", 32);
50 |
51 | abort ();
52 | #else
53 | // Heap has overflowed
54 | errno = ENOMEM;
55 | return (caddr_t) - 1;
56 | #endif
57 | }
58 |
59 | current_heap_end += incr;
60 |
61 | return (caddr_t) current_block_address;
62 | }
63 |
64 | // ----------------------------------------------------------------------------
65 |
66 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_blink/IAR/system/src/newlib/assert.c:
--------------------------------------------------------------------------------
1 | //
2 | // This file is part of the µOS++ III distribution.
3 | // Copyright (c) 2014 Liviu Ionescu.
4 | //
5 |
6 | #include
7 | #include
8 | #include
9 |
10 | #include "diag/Trace.h"
11 |
12 | // ----------------------------------------------------------------------------
13 |
14 | void
15 | __attribute__((noreturn))
16 | __assert_func (const char *file, int line, const char *func,
17 | const char *failedexpr)
18 | {
19 | trace_printf ("assertion \"%s\" failed: file \"%s\", line %d%s%s\n",
20 | failedexpr, file, line, func ? ", function: " : "",
21 | func ? func : "");
22 | abort ();
23 | /* NOTREACHED */
24 | }
25 |
26 | // ----------------------------------------------------------------------------
27 |
28 | // This is STM32 specific, but can be used on other platforms too.
29 | // If you need it, add the following to your application header:
30 |
31 | //#ifdef USE_FULL_ASSERT
32 | //#define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
33 | //void assert_failed(uint8_t* file, uint32_t line);
34 | //#else
35 | //#define assert_param(expr) ((void)0)
36 | //#endif // USE_FULL_ASSERT
37 |
38 | #if defined(USE_FULL_ASSERT)
39 |
40 | void
41 | assert_failed (uint8_t* file, uint32_t line);
42 |
43 | // Called from the assert_param() macro, usually defined in the stm32f*_conf.h
44 | void
45 | __attribute__((noreturn, weak))
46 | assert_failed (uint8_t* file, uint32_t line)
47 | {
48 | trace_printf ("assert_param() failed: file \"%s\", line %d\n", file, line);
49 | abort ();
50 | /* NOTREACHED */
51 | }
52 |
53 | #endif // defined(USE_FULL_ASSERT)
54 |
55 | // ----------------------------------------------------------------------------
56 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cli/.gitignore:
--------------------------------------------------------------------------------
1 | /Debug/
2 | /Release/
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cli/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | ADuCM360_demo_cli
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.cdt.managedbuilder.core.genmakebuilder
10 | clean,full,incremental,
11 |
12 |
13 |
14 |
15 | org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder
16 | full,incremental,
17 |
18 |
19 |
20 |
21 | com.analog.crosscore.managedbuilder.core.cleanbuilder
22 | clean,
23 |
24 |
25 |
26 |
27 |
28 | org.eclipse.cdt.core.cnature
29 | org.eclipse.cdt.managedbuilder.core.managedBuildNature
30 | org.eclipse.cdt.managedbuilder.core.ScannerConfigNature
31 | com.analog.crosscore.managedbuilder.core.CCESProjectNature
32 | com.arm.cmsis.pack.project.RteNature
33 |
34 |
35 |
36 | RTE/Device/ADuCM360/ClkLib.c
37 | 1
38 | $%7Bcmsis_pack_root%7D/AnalogDevices/ADuCM36x_DFP/1.0.2/Device/Source/drivers/ClkLib.c
39 |
40 |
41 | RTE/Device/ADuCM360/DioLib.c
42 | 1
43 | $%7Bcmsis_pack_root%7D/AnalogDevices/ADuCM36x_DFP/1.0.2/Device/Source/drivers/DioLib.c
44 |
45 |
46 | RTE/Device/ADuCM360/DmaLib.c
47 | 1
48 | $%7Bcmsis_pack_root%7D/AnalogDevices/ADuCM36x_DFP/1.0.2/Device/Source/drivers/DmaLib.c
49 |
50 |
51 | RTE/Device/ADuCM360/GptLib.c
52 | 1
53 | $%7Bcmsis_pack_root%7D/AnalogDevices/ADuCM36x_DFP/1.0.2/Device/Source/drivers/GptLib.c
54 |
55 |
56 | RTE/Device/ADuCM360/UrtLib.c
57 | 1
58 | $%7Bcmsis_pack_root%7D/AnalogDevices/ADuCM36x_DFP/1.0.2/Device/Source/drivers/UrtLib.c
59 |
60 |
61 |
62 |
63 | CCES
64 | file:/Users/amclach/Applications/CrossCore%20Embedded%20Studio.app/Contents
65 |
66 |
67 |
68 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cli/.settings/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.7.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cli/RTE/RTE_Components.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Auto generated Run-Time-Environment Component Configuration File
3 | * *** Do not modify ! ***
4 | *
5 | * Project: ADuCM360_demo_cli
6 | * RTE configuration: system.rteconfig
7 | */
8 | #ifndef RTE_COMPONENTS_H
9 | #define RTE_COMPONENTS_H
10 |
11 | /*
12 | * Define the Device Header File:
13 | */
14 | #define CMSIS_device_header "ADuCM360.h"
15 |
16 |
17 | #endif /* RTE_COMPONENTS_H */
18 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cli/include/Timer.h:
--------------------------------------------------------------------------------
1 | /*!
2 | *****************************************************************************
3 | * @file: Timer.h
4 | * @brief:
5 | * @version: $Revision$
6 | * @date: $Date$
7 | *-----------------------------------------------------------------------------
8 | *
9 | Copyright (c) 2014 Liviu Ionescu.
10 |
11 | Portions Copyright (c) 2017 Analog Devices, Inc.
12 |
13 | Permission is hereby granted, free of charge, to any person obtaining a
14 | copy of this software and associated documentation files (the "Software"),
15 | to deal in the Software without restriction, including without limitation
16 | the rights to use, copy, modify, merge, publish, distribute, sublicense,
17 | and/or sell copies of the Software, and to permit persons to whom the
18 | Software is furnished to do so, subject to the following conditions:
19 |
20 | The above copyright notice and this permission notice shall be included in
21 | all copies or substantial portions of the Software.
22 |
23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26 | THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
27 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
28 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
29 | OTHER DEALINGS IN THE SOFTWARE.
30 | */
31 |
32 | #ifndef TIMER_H_
33 | #define TIMER_H_
34 |
35 | #include
36 | #include
37 | // ----------------------------------------------------------------------------
38 |
39 | #define TIMER_FREQUENCY_HZ (1000u)
40 |
41 | typedef uint32_t timer_ticks_t;
42 |
43 | extern volatile timer_ticks_t timer_delayCount;
44 |
45 | extern void
46 | timer_start (void);
47 |
48 | extern void
49 | timer_sleep (timer_ticks_t ticks);
50 |
51 | // ----------------------------------------------------------------------------
52 |
53 | #endif // TIMER_H_
54 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cli/system.svc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cli/system/adi_initialize.c:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.c source file generated on August 23, 2017 at 19:43:34.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #include
11 |
12 | #include "adi_initialize.h"
13 |
14 |
15 | int32_t adi_initComponents(void)
16 | {
17 | int32_t result = 0;
18 |
19 |
20 | return result;
21 | }
22 |
23 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cli/system/adi_initialize.h:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.h header file generated on August 23, 2017 at 19:43:35.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #ifndef __ADI_COMPONENT_INIT_H__
11 | #define __ADI_COMPONENT_INIT_H__
12 | #include
13 |
14 | #ifdef __cplusplus
15 | extern "C" {
16 | #endif
17 |
18 | /* Declare "adi_initComponents()" */
19 | int32_t adi_initComponents(void);
20 |
21 | #ifdef __cplusplus
22 | }
23 | #endif
24 |
25 | #endif /* __ADI_COMPONENT_INIT_H__ */
26 |
27 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0216/.gitignore:
--------------------------------------------------------------------------------
1 | /Debug/
2 | /Release/
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0216/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | ADuCM360_demo_cn0216
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.cdt.managedbuilder.core.genmakebuilder
10 | clean,full,incremental,
11 |
12 |
13 |
14 |
15 | org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder
16 | full,incremental,
17 |
18 |
19 |
20 |
21 | com.analog.crosscore.managedbuilder.core.cleanbuilder
22 | clean,
23 |
24 |
25 |
26 |
27 |
28 | org.eclipse.cdt.core.cnature
29 | org.eclipse.cdt.managedbuilder.core.managedBuildNature
30 | org.eclipse.cdt.managedbuilder.core.ScannerConfigNature
31 | com.analog.crosscore.managedbuilder.core.CCESProjectNature
32 | com.arm.cmsis.pack.project.RteNature
33 |
34 |
35 |
36 | RTE/Device/ADuCM360/ClkLib.c
37 | 1
38 | $%7Bcmsis_pack_root%7D/AnalogDevices/ADuCM36x_DFP/1.0.2/Device/Source/drivers/ClkLib.c
39 |
40 |
41 | RTE/Device/ADuCM360/DioLib.c
42 | 1
43 | $%7Bcmsis_pack_root%7D/AnalogDevices/ADuCM36x_DFP/1.0.2/Device/Source/drivers/DioLib.c
44 |
45 |
46 | RTE/Device/ADuCM360/DmaLib.c
47 | 1
48 | $%7Bcmsis_pack_root%7D/AnalogDevices/ADuCM36x_DFP/1.0.2/Device/Source/drivers/DmaLib.c
49 |
50 |
51 | RTE/Device/ADuCM360/SpiLib.c
52 | 1
53 | $%7Bcmsis_pack_root%7D/AnalogDevices/ADuCM36x_DFP/1.0.2/Device/Source/drivers/SpiLib.c
54 |
55 |
56 | RTE/Device/ADuCM360/UrtLib.c
57 | 1
58 | $%7Bcmsis_pack_root%7D/AnalogDevices/ADuCM36x_DFP/1.0.2/Device/Source/drivers/UrtLib.c
59 |
60 |
61 |
62 |
63 | CCES
64 | file:/Users/amclach/Applications/CrossCore%20Embedded%20Studio.app/Contents
65 |
66 |
67 |
68 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0216/.settings/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.7.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0216/.settings/settings/DefaultProjectAttribute.prefs:
--------------------------------------------------------------------------------
1 | ArtifactType=org.eclipse.cdt.build.core.buildArtefactType.exe
2 | CoreId=0
3 | Processor=ADuCM360
4 | Revision=none
5 | adi_initialize.c.lastgenerated=1503632467532
6 | adi_initialize.h.lastgenerated=1503632467574
7 | eclipse.preferences.version=1
8 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0216/.settings/settings/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.6.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0216/RTE/RTE_Components.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Auto generated Run-Time-Environment Component Configuration File
3 | * *** Do not modify ! ***
4 | *
5 | * Project: ADuCM360_demo_cn0216
6 | * RTE configuration: system.rteconfig
7 | */
8 | #ifndef RTE_COMPONENTS_H
9 | #define RTE_COMPONENTS_H
10 |
11 | /*
12 | * Define the Device Header File:
13 | */
14 | #define CMSIS_device_header "ADuCM360.h"
15 |
16 |
17 | #endif /* RTE_COMPONENTS_H */
18 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0216/include/Timer.h:
--------------------------------------------------------------------------------
1 | /*!
2 | *****************************************************************************
3 | * @file: Timer.h
4 | * @brief:
5 | * @version: $Revision$
6 | * @date: $Date$
7 | *-----------------------------------------------------------------------------
8 | *
9 | Copyright (c) 2014 Liviu Ionescu.
10 |
11 | Portions Copyright (c) 2017 Analog Devices, Inc.
12 |
13 | Permission is hereby granted, free of charge, to any person obtaining a
14 | copy of this software and associated documentation files (the "Software"),
15 | to deal in the Software without restriction, including without limitation
16 | the rights to use, copy, modify, merge, publish, distribute, sublicense,
17 | and/or sell copies of the Software, and to permit persons to whom the
18 | Software is furnished to do so, subject to the following conditions:
19 |
20 | The above copyright notice and this permission notice shall be included in
21 | all copies or substantial portions of the Software.
22 |
23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26 | THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
27 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
28 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
29 | OTHER DEALINGS IN THE SOFTWARE.
30 | */
31 |
32 | #ifndef TIMER_H_
33 | #define TIMER_H_
34 |
35 | #include
36 |
37 | // ----------------------------------------------------------------------------
38 |
39 | #define TIMER_FREQUENCY_HZ (1000u)
40 |
41 | typedef uint32_t timer_ticks_t;
42 |
43 | extern volatile timer_ticks_t timer_delayCount;
44 |
45 | extern void
46 | timer_start (void);
47 |
48 | extern void
49 | timer_sleep (timer_ticks_t ticks);
50 |
51 | // ----------------------------------------------------------------------------
52 |
53 | #endif // TIMER_H_
54 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0216/system.svc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0216/system/adi_initialize.c:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.c source file generated on August 25, 2017 at 11:41:07.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #include
11 |
12 | #include "adi_initialize.h"
13 |
14 |
15 | int32_t adi_initComponents(void)
16 | {
17 | int32_t result = 0;
18 |
19 |
20 | return result;
21 | }
22 |
23 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0216/system/adi_initialize.h:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.h header file generated on August 25, 2017 at 11:41:07.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #ifndef __ADI_COMPONENT_INIT_H__
11 | #define __ADI_COMPONENT_INIT_H__
12 | #include
13 |
14 | #ifdef __cplusplus
15 | extern "C" {
16 | #endif
17 |
18 | /* Declare "adi_initComponents()" */
19 | int32_t adi_initComponents(void);
20 |
21 | #ifdef __cplusplus
22 | }
23 | #endif
24 |
25 | #endif /* __ADI_COMPONENT_INIT_H__ */
26 |
27 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0326/.gitignore:
--------------------------------------------------------------------------------
1 | /Debug/
2 | /Release/
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0326/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | ADuCM360_demo_cn0326
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.cdt.managedbuilder.core.genmakebuilder
10 | clean,full,incremental,
11 |
12 |
13 |
14 |
15 | org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder
16 | full,incremental,
17 |
18 |
19 |
20 |
21 | com.analog.crosscore.managedbuilder.core.cleanbuilder
22 | clean,
23 |
24 |
25 |
26 |
27 |
28 | org.eclipse.cdt.core.cnature
29 | org.eclipse.cdt.managedbuilder.core.managedBuildNature
30 | org.eclipse.cdt.managedbuilder.core.ScannerConfigNature
31 | com.analog.crosscore.managedbuilder.core.CCESProjectNature
32 | com.arm.cmsis.pack.project.RteNature
33 |
34 |
35 |
36 | RTE/Device/ADuCM360/ClkLib.c
37 | 1
38 | $%7Bcmsis_pack_root%7D/AnalogDevices/ADuCM36x_DFP/1.0.2/Device/Source/drivers/ClkLib.c
39 |
40 |
41 | RTE/Device/ADuCM360/DioLib.c
42 | 1
43 | $%7Bcmsis_pack_root%7D/AnalogDevices/ADuCM36x_DFP/1.0.2/Device/Source/drivers/DioLib.c
44 |
45 |
46 | RTE/Device/ADuCM360/DmaLib.c
47 | 1
48 | $%7Bcmsis_pack_root%7D/AnalogDevices/ADuCM36x_DFP/1.0.2/Device/Source/drivers/DmaLib.c
49 |
50 |
51 | RTE/Device/ADuCM360/SpiLib.c
52 | 1
53 | $%7Bcmsis_pack_root%7D/AnalogDevices/ADuCM36x_DFP/1.0.2/Device/Source/drivers/SpiLib.c
54 |
55 |
56 | RTE/Device/ADuCM360/UrtLib.c
57 | 1
58 | $%7Bcmsis_pack_root%7D/AnalogDevices/ADuCM36x_DFP/1.0.2/Device/Source/drivers/UrtLib.c
59 |
60 |
61 |
62 |
63 | CCES
64 | file:/Users/amclach/Applications/CrossCore%20Embedded%20Studio.app/Contents
65 |
66 |
67 |
68 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0326/.settings/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.7.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0326/.settings/settings/DefaultProjectAttribute.prefs:
--------------------------------------------------------------------------------
1 | ArtifactType=org.eclipse.cdt.build.core.buildArtefactType.exe
2 | CoreId=0
3 | Processor=ADuCM360
4 | Revision=none
5 | adi_initialize.c.lastgenerated=1503634514659
6 | adi_initialize.h.lastgenerated=1503634514717
7 | eclipse.preferences.version=1
8 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0326/.settings/settings/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.6.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0326/RTE/RTE_Components.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Auto generated Run-Time-Environment Component Configuration File
3 | * *** Do not modify ! ***
4 | *
5 | * Project: ADuCM360_demo_cn0326
6 | * RTE configuration: system.rteconfig
7 | */
8 | #ifndef RTE_COMPONENTS_H
9 | #define RTE_COMPONENTS_H
10 |
11 | /*
12 | * Define the Device Header File:
13 | */
14 | #define CMSIS_device_header "ADuCM360.h"
15 |
16 |
17 | #endif /* RTE_COMPONENTS_H */
18 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0326/include/Timer.h:
--------------------------------------------------------------------------------
1 | /*!
2 | *****************************************************************************
3 | * @file: Timer.h
4 | * @brief:
5 | * @version: $Revision$
6 | * @date: $Date$
7 | *-----------------------------------------------------------------------------
8 | *
9 | Copyright (c) 2014 Liviu Ionescu.
10 |
11 | Portions Copyright (c) 2017 Analog Devices, Inc.
12 |
13 | Permission is hereby granted, free of charge, to any person obtaining a
14 | copy of this software and associated documentation files (the "Software"),
15 | to deal in the Software without restriction, including without limitation
16 | the rights to use, copy, modify, merge, publish, distribute, sublicense,
17 | and/or sell copies of the Software, and to permit persons to whom the
18 | Software is furnished to do so, subject to the following conditions:
19 |
20 | The above copyright notice and this permission notice shall be included in
21 | all copies or substantial portions of the Software.
22 |
23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26 | THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
27 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
28 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
29 | OTHER DEALINGS IN THE SOFTWARE.
30 | */
31 |
32 | #ifndef TIMER_H_
33 | #define TIMER_H_
34 |
35 | #include
36 |
37 | // ----------------------------------------------------------------------------
38 |
39 | #define TIMER_FREQUENCY_HZ (1000u)
40 |
41 | typedef uint32_t timer_ticks_t;
42 |
43 | extern volatile timer_ticks_t timer_delayCount;
44 |
45 | extern void
46 | timer_start (void);
47 |
48 | extern void
49 | timer_sleep (timer_ticks_t ticks);
50 |
51 | // ----------------------------------------------------------------------------
52 |
53 | #endif // TIMER_H_
54 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0326/system.svc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0326/system/adi_initialize.c:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.c source file generated on August 25, 2017 at 12:15:14.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #include
11 |
12 | #include "adi_initialize.h"
13 |
14 |
15 | int32_t adi_initComponents(void)
16 | {
17 | int32_t result = 0;
18 |
19 |
20 | return result;
21 | }
22 |
23 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0326/system/adi_initialize.h:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.h header file generated on August 25, 2017 at 12:15:14.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #ifndef __ADI_COMPONENT_INIT_H__
11 | #define __ADI_COMPONENT_INIT_H__
12 | #include
13 |
14 | #ifdef __cplusplus
15 | extern "C" {
16 | #endif
17 |
18 | /* Declare "adi_initComponents()" */
19 | int32_t adi_initComponents(void);
20 |
21 | #ifdef __cplusplus
22 | }
23 | #endif
24 |
25 | #endif /* __ADI_COMPONENT_INIT_H__ */
26 |
27 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0336/.gitignore:
--------------------------------------------------------------------------------
1 | /Debug/
2 | /Release/
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0336/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | ADuCM360_demo_cn0336
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.cdt.managedbuilder.core.genmakebuilder
10 | clean,full,incremental,
11 |
12 |
13 |
14 |
15 | org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder
16 | full,incremental,
17 |
18 |
19 |
20 |
21 | com.analog.crosscore.managedbuilder.core.cleanbuilder
22 | clean,
23 |
24 |
25 |
26 |
27 |
28 | org.eclipse.cdt.core.cnature
29 | org.eclipse.cdt.managedbuilder.core.managedBuildNature
30 | org.eclipse.cdt.managedbuilder.core.ScannerConfigNature
31 | com.analog.crosscore.managedbuilder.core.CCESProjectNature
32 | com.arm.cmsis.pack.project.RteNature
33 |
34 |
35 |
36 | RTE/Device/ADuCM360/ClkLib.c
37 | 1
38 | $%7Bcmsis_pack_root%7D/AnalogDevices/ADuCM36x_DFP/1.0.2/Device/Source/drivers/ClkLib.c
39 |
40 |
41 | RTE/Device/ADuCM360/DioLib.c
42 | 1
43 | $%7Bcmsis_pack_root%7D/AnalogDevices/ADuCM36x_DFP/1.0.2/Device/Source/drivers/DioLib.c
44 |
45 |
46 | RTE/Device/ADuCM360/DmaLib.c
47 | 1
48 | $%7Bcmsis_pack_root%7D/AnalogDevices/ADuCM36x_DFP/1.0.2/Device/Source/drivers/DmaLib.c
49 |
50 |
51 | RTE/Device/ADuCM360/SpiLib.c
52 | 1
53 | $%7Bcmsis_pack_root%7D/AnalogDevices/ADuCM36x_DFP/1.0.2/Device/Source/drivers/SpiLib.c
54 |
55 |
56 | RTE/Device/ADuCM360/UrtLib.c
57 | 1
58 | $%7Bcmsis_pack_root%7D/AnalogDevices/ADuCM36x_DFP/1.0.2/Device/Source/drivers/UrtLib.c
59 |
60 |
61 |
62 |
63 | CCES
64 | file:/Users/amclach/Applications/CrossCore%20Embedded%20Studio.app/Contents
65 |
66 |
67 |
68 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0336/.settings/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.7.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0336/.settings/settings/DefaultProjectAttribute.prefs:
--------------------------------------------------------------------------------
1 | ArtifactType=org.eclipse.cdt.build.core.buildArtefactType.exe
2 | CoreId=0
3 | Processor=ADuCM360
4 | Revision=none
5 | adi_initialize.c.lastgenerated=1503634648753
6 | adi_initialize.h.lastgenerated=1503634648800
7 | eclipse.preferences.version=1
8 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0336/.settings/settings/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.6.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0336/RTE/RTE_Components.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Auto generated Run-Time-Environment Component Configuration File
3 | * *** Do not modify ! ***
4 | *
5 | * Project: ADuCM360_demo_cn0336
6 | * RTE configuration: system.rteconfig
7 | */
8 | #ifndef RTE_COMPONENTS_H
9 | #define RTE_COMPONENTS_H
10 |
11 | /*
12 | * Define the Device Header File:
13 | */
14 | #define CMSIS_device_header "ADuCM360.h"
15 |
16 |
17 | #endif /* RTE_COMPONENTS_H */
18 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0336/include/Timer.h:
--------------------------------------------------------------------------------
1 | /*!
2 | *****************************************************************************
3 | * @file: Timer.h
4 | * @brief:
5 | * @version: $Revision$
6 | * @date: $Date$
7 | *-----------------------------------------------------------------------------
8 | *
9 | Copyright (c) 2014 Liviu Ionescu.
10 |
11 | Portions Copyright (c) 2017 Analog Devices, Inc.
12 |
13 | Permission is hereby granted, free of charge, to any person obtaining a
14 | copy of this software and associated documentation files (the "Software"),
15 | to deal in the Software without restriction, including without limitation
16 | the rights to use, copy, modify, merge, publish, distribute, sublicense,
17 | and/or sell copies of the Software, and to permit persons to whom the
18 | Software is furnished to do so, subject to the following conditions:
19 |
20 | The above copyright notice and this permission notice shall be included in
21 | all copies or substantial portions of the Software.
22 |
23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26 | THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
27 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
28 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
29 | OTHER DEALINGS IN THE SOFTWARE.
30 | */
31 |
32 | #ifndef TIMER_H_
33 | #define TIMER_H_
34 |
35 | #include
36 |
37 | // ----------------------------------------------------------------------------
38 |
39 | #define TIMER_FREQUENCY_HZ (1000u)
40 |
41 | typedef uint32_t timer_ticks_t;
42 |
43 | extern volatile timer_ticks_t timer_delayCount;
44 |
45 | extern void
46 | timer_start (void);
47 |
48 | extern void
49 | timer_sleep (timer_ticks_t ticks);
50 |
51 | // ----------------------------------------------------------------------------
52 |
53 | #endif // TIMER_H_
54 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0336/system.svc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0336/system/adi_initialize.c:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.c source file generated on August 25, 2017 at 12:17:28.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #include
11 |
12 | #include "adi_initialize.h"
13 |
14 |
15 | int32_t adi_initComponents(void)
16 | {
17 | int32_t result = 0;
18 |
19 |
20 | return result;
21 | }
22 |
23 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0336/system/adi_initialize.h:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.h header file generated on August 25, 2017 at 12:17:28.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #ifndef __ADI_COMPONENT_INIT_H__
11 | #define __ADI_COMPONENT_INIT_H__
12 | #include
13 |
14 | #ifdef __cplusplus
15 | extern "C" {
16 | #endif
17 |
18 | /* Declare "adi_initComponents()" */
19 | int32_t adi_initComponents(void);
20 |
21 | #ifdef __cplusplus
22 | }
23 | #endif
24 |
25 | #endif /* __ADI_COMPONENT_INIT_H__ */
26 |
27 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0337/.gitignore:
--------------------------------------------------------------------------------
1 | /Debug/
2 | /Release/
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0337/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | ADuCM360_demo_cn0337
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.cdt.managedbuilder.core.genmakebuilder
10 | clean,full,incremental,
11 |
12 |
13 |
14 |
15 | org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder
16 | full,incremental,
17 |
18 |
19 |
20 |
21 | com.analog.crosscore.managedbuilder.core.cleanbuilder
22 | clean,
23 |
24 |
25 |
26 |
27 |
28 | org.eclipse.cdt.core.cnature
29 | org.eclipse.cdt.managedbuilder.core.managedBuildNature
30 | org.eclipse.cdt.managedbuilder.core.ScannerConfigNature
31 | com.analog.crosscore.managedbuilder.core.CCESProjectNature
32 | com.arm.cmsis.pack.project.RteNature
33 |
34 |
35 |
36 | RTE/Device/ADuCM360/ClkLib.c
37 | 1
38 | $%7Bcmsis_pack_root%7D/AnalogDevices/ADuCM36x_DFP/1.0.2/Device/Source/drivers/ClkLib.c
39 |
40 |
41 | RTE/Device/ADuCM360/DioLib.c
42 | 1
43 | $%7Bcmsis_pack_root%7D/AnalogDevices/ADuCM36x_DFP/1.0.2/Device/Source/drivers/DioLib.c
44 |
45 |
46 | RTE/Device/ADuCM360/DmaLib.c
47 | 1
48 | $%7Bcmsis_pack_root%7D/AnalogDevices/ADuCM36x_DFP/1.0.2/Device/Source/drivers/DmaLib.c
49 |
50 |
51 | RTE/Device/ADuCM360/SpiLib.c
52 | 1
53 | $%7Bcmsis_pack_root%7D/AnalogDevices/ADuCM36x_DFP/1.0.2/Device/Source/drivers/SpiLib.c
54 |
55 |
56 | RTE/Device/ADuCM360/UrtLib.c
57 | 1
58 | $%7Bcmsis_pack_root%7D/AnalogDevices/ADuCM36x_DFP/1.0.2/Device/Source/drivers/UrtLib.c
59 |
60 |
61 |
62 |
63 | CCES
64 | file:/Users/amclach/Applications/CrossCore%20Embedded%20Studio.app/Contents
65 |
66 |
67 |
68 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0337/.settings/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.7.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0337/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//include/CN0337.h=UTF-8
3 | encoding//src/CN0337.c=UTF-8
4 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0337/.settings/settings/DefaultProjectAttribute.prefs:
--------------------------------------------------------------------------------
1 | ArtifactType=org.eclipse.cdt.build.core.buildArtefactType.exe
2 | CoreId=0
3 | Processor=ADuCM360
4 | Revision=none
5 | adi_initialize.c.lastgenerated=1503636252473
6 | adi_initialize.h.lastgenerated=1503636252516
7 | eclipse.preferences.version=1
8 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0337/.settings/settings/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.6.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0337/RTE/RTE_Components.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Auto generated Run-Time-Environment Component Configuration File
3 | * *** Do not modify ! ***
4 | *
5 | * Project: ADuCM360_demo_cn0337
6 | * RTE configuration: system.rteconfig
7 | */
8 | #ifndef RTE_COMPONENTS_H
9 | #define RTE_COMPONENTS_H
10 |
11 | /*
12 | * Define the Device Header File:
13 | */
14 | #define CMSIS_device_header "ADuCM360.h"
15 |
16 |
17 | #endif /* RTE_COMPONENTS_H */
18 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0337/include/Timer.h:
--------------------------------------------------------------------------------
1 | /*!
2 | *****************************************************************************
3 | * @file: Timer.h
4 | * @brief:
5 | * @version: $Revision$
6 | * @date: $Date$
7 | *-----------------------------------------------------------------------------
8 | *
9 | Copyright (c) 2014 Liviu Ionescu.
10 |
11 | Portions Copyright (c) 2017 Analog Devices, Inc.
12 |
13 | Permission is hereby granted, free of charge, to any person obtaining a
14 | copy of this software and associated documentation files (the "Software"),
15 | to deal in the Software without restriction, including without limitation
16 | the rights to use, copy, modify, merge, publish, distribute, sublicense,
17 | and/or sell copies of the Software, and to permit persons to whom the
18 | Software is furnished to do so, subject to the following conditions:
19 |
20 | The above copyright notice and this permission notice shall be included in
21 | all copies or substantial portions of the Software.
22 |
23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26 | THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
27 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
28 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
29 | OTHER DEALINGS IN THE SOFTWARE.
30 | */
31 |
32 | #ifndef TIMER_H_
33 | #define TIMER_H_
34 |
35 | #include
36 |
37 | // ----------------------------------------------------------------------------
38 |
39 | #define TIMER_FREQUENCY_HZ (1000u)
40 |
41 | typedef uint32_t timer_ticks_t;
42 |
43 | extern volatile timer_ticks_t timer_delayCount;
44 |
45 | extern void
46 | timer_start (void);
47 |
48 | extern void
49 | timer_sleep (timer_ticks_t ticks);
50 |
51 | // ----------------------------------------------------------------------------
52 |
53 | #endif // TIMER_H_
54 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0337/system.svc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0337/system/adi_initialize.c:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.c source file generated on August 25, 2017 at 12:44:12.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #include
11 |
12 | #include "adi_initialize.h"
13 |
14 |
15 | int32_t adi_initComponents(void)
16 | {
17 | int32_t result = 0;
18 |
19 |
20 | return result;
21 | }
22 |
23 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0337/system/adi_initialize.h:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.h header file generated on August 25, 2017 at 12:44:12.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #ifndef __ADI_COMPONENT_INIT_H__
11 | #define __ADI_COMPONENT_INIT_H__
12 | #include
13 |
14 | #ifdef __cplusplus
15 | extern "C" {
16 | #endif
17 |
18 | /* Declare "adi_initComponents()" */
19 | int32_t adi_initComponents(void);
20 |
21 | #ifdef __cplusplus
22 | }
23 | #endif
24 |
25 | #endif /* __ADI_COMPONENT_INIT_H__ */
26 |
27 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0338/.gitignore:
--------------------------------------------------------------------------------
1 | /Debug/
2 | /Release/
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0338/.settings/DefaultProjectAttribute.prefs:
--------------------------------------------------------------------------------
1 | ArtifactType=org.eclipse.cdt.build.core.buildArtefactType.exe
2 | CoreId=0
3 | Processor=ADuCM360
4 | Revision=none
5 | adi_initialize.c.lastgenerated=1503641496227
6 | adi_initialize.h.lastgenerated=1503641496275
7 | eclipse.preferences.version=1
8 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0338/.settings/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.7.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0338/.settings/org.eclipse.cdt.managedbuilder.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | environment/buildEnvironmentInclude/arm.toolchain.gcc.target.exe.release.1091124485/CPATH/delimiter=\:
3 | environment/buildEnvironmentInclude/arm.toolchain.gcc.target.exe.release.1091124485/CPATH/operation=remove
4 | environment/buildEnvironmentInclude/arm.toolchain.gcc.target.exe.release.1091124485/CPLUS_INCLUDE_PATH/delimiter=\:
5 | environment/buildEnvironmentInclude/arm.toolchain.gcc.target.exe.release.1091124485/CPLUS_INCLUDE_PATH/operation=remove
6 | environment/buildEnvironmentInclude/arm.toolchain.gcc.target.exe.release.1091124485/C_INCLUDE_PATH/delimiter=\:
7 | environment/buildEnvironmentInclude/arm.toolchain.gcc.target.exe.release.1091124485/C_INCLUDE_PATH/operation=remove
8 | environment/buildEnvironmentInclude/arm.toolchain.gcc.target.exe.release.1091124485/append=true
9 | environment/buildEnvironmentInclude/arm.toolchain.gcc.target.exe.release.1091124485/appendContributed=true
10 | environment/buildEnvironmentLibrary/arm.toolchain.gcc.target.exe.release.1091124485/LIBRARY_PATH/delimiter=\:
11 | environment/buildEnvironmentLibrary/arm.toolchain.gcc.target.exe.release.1091124485/LIBRARY_PATH/operation=remove
12 | environment/buildEnvironmentLibrary/arm.toolchain.gcc.target.exe.release.1091124485/append=true
13 | environment/buildEnvironmentLibrary/arm.toolchain.gcc.target.exe.release.1091124485/appendContributed=true
14 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0338/.settings/settings/DefaultProjectAttribute.prefs:
--------------------------------------------------------------------------------
1 | ArtifactType=org.eclipse.cdt.build.core.buildArtefactType.exe
2 | CoreId=0
3 | Processor=ADuCM360
4 | Revision=none
5 | adi_initialize.c.lastgenerated=1503636362320
6 | adi_initialize.h.lastgenerated=1503636362370
7 | eclipse.preferences.version=1
8 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0338/.settings/settings/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.6.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0338/RTE/RTE_Components.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Auto generated Run-Time-Environment Component Configuration File
3 | * *** Do not modify ! ***
4 | *
5 | * Project: ADuCM360_demo_cn0338
6 | * RTE configuration: system.rteconfig
7 | */
8 | #ifndef RTE_COMPONENTS_H
9 | #define RTE_COMPONENTS_H
10 |
11 | /*
12 | * Define the Device Header File:
13 | */
14 | #define CMSIS_device_header "ADuCM360.h"
15 |
16 |
17 | #endif /* RTE_COMPONENTS_H */
18 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0338/include/Timer.h:
--------------------------------------------------------------------------------
1 | /*!
2 | *****************************************************************************
3 | * @file: Timer.h
4 | * @brief:
5 | * @version: $Revision$
6 | * @date: $Date$
7 | *-----------------------------------------------------------------------------
8 | *
9 | Copyright (c) 2014 Liviu Ionescu.
10 |
11 | Portions Copyright (c) 2017 Analog Devices, Inc.
12 |
13 | Permission is hereby granted, free of charge, to any person obtaining a
14 | copy of this software and associated documentation files (the "Software"),
15 | to deal in the Software without restriction, including without limitation
16 | the rights to use, copy, modify, merge, publish, distribute, sublicense,
17 | and/or sell copies of the Software, and to permit persons to whom the
18 | Software is furnished to do so, subject to the following conditions:
19 |
20 | The above copyright notice and this permission notice shall be included in
21 | all copies or substantial portions of the Software.
22 |
23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26 | THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
27 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
28 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
29 | OTHER DEALINGS IN THE SOFTWARE.
30 | */
31 |
32 | #ifndef TIMER_H_
33 | #define TIMER_H_
34 |
35 | #include "ADuCM360.h"
36 |
37 | #pragma once
38 |
39 | #define TICK_CLK 100ull
40 |
41 | extern void Timer_add(const unsigned long ms, void (*pF)(void));
42 | extern void Timer_del(void (*pF)(void));
43 | extern void Timer_start(void);
44 |
45 |
46 | #endif // TIMER_H_
47 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0338/system.svc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0338/system/adi_initialize.c:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.c source file generated on August 25, 2017 at 12:46:02.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #include
11 |
12 | #include "adi_initialize.h"
13 |
14 |
15 | int32_t adi_initComponents(void)
16 | {
17 | int32_t result = 0;
18 |
19 |
20 | return result;
21 | }
22 |
23 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0338/system/adi_initialize.h:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.h header file generated on August 25, 2017 at 12:46:02.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #ifndef __ADI_COMPONENT_INIT_H__
11 | #define __ADI_COMPONENT_INIT_H__
12 | #include
13 |
14 | #ifdef __cplusplus
15 | extern "C" {
16 | #endif
17 |
18 | /* Declare "adi_initComponents()" */
19 | int32_t adi_initComponents(void);
20 |
21 | #ifdef __cplusplus
22 | }
23 | #endif
24 |
25 | #endif /* __ADI_COMPONENT_INIT_H__ */
26 |
27 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0357/.gitignore:
--------------------------------------------------------------------------------
1 | /Debug/
2 | /Release/
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0357/.settings/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.7.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0357/.settings/settings/DefaultProjectAttribute.prefs:
--------------------------------------------------------------------------------
1 | ArtifactType=org.eclipse.cdt.build.core.buildArtefactType.exe
2 | CoreId=0
3 | Processor=ADuCM360
4 | Revision=none
5 | adi_initialize.c.lastgenerated=1503654737264
6 | adi_initialize.h.lastgenerated=1503654737308
7 | eclipse.preferences.version=1
8 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0357/.settings/settings/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.6.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0357/RTE/RTE_Components.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Auto generated Run-Time-Environment Component Configuration File
3 | * *** Do not modify ! ***
4 | *
5 | * Project: ADuCM360_demo_cn0357
6 | * RTE configuration: system.rteconfig
7 | */
8 | #ifndef RTE_COMPONENTS_H
9 | #define RTE_COMPONENTS_H
10 |
11 | /*
12 | * Define the Device Header File:
13 | */
14 | #define CMSIS_device_header "ADuCM360.h"
15 |
16 |
17 | #endif /* RTE_COMPONENTS_H */
18 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0357/include/Timer.h:
--------------------------------------------------------------------------------
1 | /*!
2 | *****************************************************************************
3 | * @file: Timer.h
4 | * @brief:
5 | * @version: $Revision$
6 | * @date: $Date$
7 | *-----------------------------------------------------------------------------
8 | *
9 | Copyright (c) 2014 Liviu Ionescu.
10 |
11 | Portions Copyright (c) 2017 Analog Devices, Inc.
12 |
13 | Permission is hereby granted, free of charge, to any person obtaining a
14 | copy of this software and associated documentation files (the "Software"),
15 | to deal in the Software without restriction, including without limitation
16 | the rights to use, copy, modify, merge, publish, distribute, sublicense,
17 | and/or sell copies of the Software, and to permit persons to whom the
18 | Software is furnished to do so, subject to the following conditions:
19 |
20 | The above copyright notice and this permission notice shall be included in
21 | all copies or substantial portions of the Software.
22 |
23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26 | THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
27 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
28 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
29 | OTHER DEALINGS IN THE SOFTWARE.
30 | */
31 |
32 | #ifndef TIMER_H_
33 | #define TIMER_H_
34 |
35 | #include
36 |
37 | // ----------------------------------------------------------------------------
38 |
39 | #define TIMER_FREQUENCY_HZ (1000u)
40 |
41 | typedef uint32_t timer_ticks_t;
42 |
43 | extern volatile timer_ticks_t timer_delayCount;
44 |
45 | extern void
46 | timer_start (void);
47 |
48 | extern void
49 | timer_sleep (timer_ticks_t ticks);
50 |
51 | // ----------------------------------------------------------------------------
52 |
53 | #endif // TIMER_H_
54 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0357/system.svc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0357/system/adi_initialize.c:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.c source file generated on August 25, 2017 at 17:52:17.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #include
11 |
12 | #include "adi_initialize.h"
13 |
14 |
15 | int32_t adi_initComponents(void)
16 | {
17 | int32_t result = 0;
18 |
19 |
20 | return result;
21 | }
22 |
23 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0357/system/adi_initialize.h:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.h header file generated on August 25, 2017 at 17:52:17.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #ifndef __ADI_COMPONENT_INIT_H__
11 | #define __ADI_COMPONENT_INIT_H__
12 | #include
13 |
14 | #ifdef __cplusplus
15 | extern "C" {
16 | #endif
17 |
18 | /* Declare "adi_initComponents()" */
19 | int32_t adi_initComponents(void);
20 |
21 | #ifdef __cplusplus
22 | }
23 | #endif
24 |
25 | #endif /* __ADI_COMPONENT_INIT_H__ */
26 |
27 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0359/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | ADuCM360_demo_cn0359
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.cdt.managedbuilder.core.genmakebuilder
10 | clean,full,incremental,
11 |
12 |
13 |
14 |
15 | org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder
16 | full,incremental,
17 |
18 |
19 |
20 |
21 | com.analog.crosscore.managedbuilder.core.cleanbuilder
22 | clean,
23 |
24 |
25 |
26 |
27 | com.analog.crosscore.deviceprogrammer.deviceprogrammerbuilder
28 | auto,full,incremental,
29 |
30 |
31 |
32 |
33 |
34 | org.eclipse.cdt.core.cnature
35 | org.eclipse.cdt.managedbuilder.core.managedBuildNature
36 | org.eclipse.cdt.managedbuilder.core.ScannerConfigNature
37 | com.analog.crosscore.managedbuilder.core.CCESProjectNature
38 | com.arm.cmsis.pack.project.RteNature
39 | org.eclipse.cdt.core.ccnature
40 |
41 |
42 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0359/.settings/DefaultProjectAttribute.prefs:
--------------------------------------------------------------------------------
1 | ArtifactType=org.eclipse.cdt.build.core.buildArtefactType.exe
2 | CoreId=0
3 | Processor=ADuCM360
4 | Revision=none
5 | eclipse.preferences.version=1
6 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0359/.settings/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.11.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0359/RTE/RTE_Components.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Auto generated Run-Time-Environment Component Configuration File
3 | * *** Do not modify ! ***
4 | *
5 | * Project: ADuCM360_demo_cn0359
6 | * RTE configuration: system.rteconfig
7 | */
8 | #ifndef RTE_COMPONENTS_H
9 | #define RTE_COMPONENTS_H
10 |
11 | /*
12 | * Define the Device Header File:
13 | */
14 | #define CMSIS_device_header "ADuCM360.h"
15 |
16 |
17 | #endif /* RTE_COMPONENTS_H */
18 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0359/include/hal/Initial.h:
--------------------------------------------------------------------------------
1 | /***************************************************************************//**
2 | * @file Initial.h
3 | * @brief Implementation of Initial.h
4 | * @author
5 | *******************************************************************************
6 | * Copyright 2022(c) Analog Devices, Inc.
7 | *
8 | * All rights reserved.
9 | *
10 | * Redistribution and use in source and binary forms, with or without
11 | * modification, are permitted provided that the following conditions are met:
12 | * - Redistributions of source code must retain the above copyright
13 | * notice, this list of conditions and the following disclaimer.
14 | * - Redistributions in binary form must reproduce the above copyright
15 | * notice, this list of conditions and the following disclaimer in
16 | * the documentation and/or other materials provided with the
17 | * distribution.
18 | * - Neither the name of Analog Devices, Inc. nor the names of its
19 | * contributors may be used to endorse or promote products derived
20 | * from this software without specific prior written permission.
21 | * - The use of this software may or may not infringe the patent rights
22 | * of one or more patent holders. This license does not release you
23 | * from the requirement that you obtain separate licenses from these
24 | * patent holders to use this software.
25 | * - Use of the software either in source or binary form, must be run
26 | * on or directly connected to an Analog Devices Inc. component.
27 | *
28 | * THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
29 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
30 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
31 | * IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
32 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
33 | * LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
34 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
35 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
36 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
37 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38 | ******************************************************************************/
39 |
40 | #ifndef __INITIAL_H__
41 | #define __INITIAL_H__
42 |
43 | extern void InitialCPU(void);
44 |
45 | #endif
46 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0359/include/hal/drivers/encoder.h:
--------------------------------------------------------------------------------
1 | /***************************************************************************//**
2 | * @file encoder.h
3 | * @brief Implementation of encoder.h
4 | * @author
5 | *******************************************************************************
6 | * Copyright 2022(c) Analog Devices, Inc.
7 | *
8 | * All rights reserved.
9 | *
10 | * Redistribution and use in source and binary forms, with or without
11 | * modification, are permitted provided that the following conditions are met:
12 | * - Redistributions of source code must retain the above copyright
13 | * notice, this list of conditions and the following disclaimer.
14 | * - Redistributions in binary form must reproduce the above copyright
15 | * notice, this list of conditions and the following disclaimer in
16 | * the documentation and/or other materials provided with the
17 | * distribution.
18 | * - Neither the name of Analog Devices, Inc. nor the names of its
19 | * contributors may be used to endorse or promote products derived
20 | * from this software without specific prior written permission.
21 | * - The use of this software may or may not infringe the patent rights
22 | * of one or more patent holders. This license does not release you
23 | * from the requirement that you obtain separate licenses from these
24 | * patent holders to use this software.
25 | * - Use of the software either in source or binary form, must be run
26 | * on or directly connected to an Analog Devices Inc. component.
27 | *
28 | * THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
29 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
30 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
31 | * IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
32 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
33 | * LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
34 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
35 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
36 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
37 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38 | ******************************************************************************/
39 |
40 | #ifndef __ENCODER_H__
41 | #define __ENCODER_H__
42 |
43 | extern void encoder_open(void);
44 |
45 | #endif
46 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0359/system.rteconfig:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | http://www.keil.com/dd2/analogdevices/aducm360
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0359/system.svc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0359_reva/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | ADuCM360_demo_cn0359_reva
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.cdt.managedbuilder.core.genmakebuilder
10 | clean,full,incremental,
11 |
12 |
13 |
14 |
15 | org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder
16 | full,incremental,
17 |
18 |
19 |
20 |
21 | com.analog.crosscore.managedbuilder.core.cleanbuilder
22 | clean,
23 |
24 |
25 |
26 |
27 | com.analog.crosscore.deviceprogrammer.deviceprogrammerbuilder
28 | auto,full,incremental,
29 |
30 |
31 |
32 |
33 |
34 | org.eclipse.cdt.core.cnature
35 | org.eclipse.cdt.managedbuilder.core.managedBuildNature
36 | org.eclipse.cdt.managedbuilder.core.ScannerConfigNature
37 | com.analog.crosscore.managedbuilder.core.CCESProjectNature
38 | com.arm.cmsis.pack.project.RteNature
39 | org.eclipse.cdt.core.ccnature
40 |
41 |
42 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0359_reva/.settings/DefaultProjectAttribute.prefs:
--------------------------------------------------------------------------------
1 | ArtifactType=org.eclipse.cdt.build.core.buildArtefactType.exe
2 | CoreId=0
3 | Processor=ADuCM360
4 | Revision=none
5 | eclipse.preferences.version=1
6 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0359_reva/.settings/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.11.1.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0359_reva/.settings/com.analog.crosscore.system.validator.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | validation.check=true
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0359_reva/.vscode/c_cpp_properties.json:
--------------------------------------------------------------------------------
1 | {
2 | "configurations": [
3 | {
4 | "name": "Linux",
5 | "includePath": [
6 | "${workspaceFolder}/**"
7 | ],
8 | "defines": [],
9 | "compilerPath": "/usr/bin/gcc",
10 | "cStandard": "gnu17",
11 | "cppStandard": "gnu++14",
12 | "intelliSenseMode": "linux-gcc-x64"
13 | }
14 | ],
15 | "version": 4
16 | }
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0359_reva/RTE/RTE_Components.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Auto generated Run-Time-Environment Component Configuration File
3 | * *** Do not modify ! ***
4 | *
5 | * Project: ADuCM360_demo_cn0359_reva
6 | * RTE configuration: system.rteconfig
7 | */
8 | #ifndef RTE_COMPONENTS_H
9 | #define RTE_COMPONENTS_H
10 |
11 | /*
12 | * Define the Device Header File:
13 | */
14 | #define CMSIS_device_header "ADuCM360.h"
15 |
16 |
17 | #endif /* RTE_COMPONENTS_H */
18 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0359_reva/include/hal/Initial.h:
--------------------------------------------------------------------------------
1 | /***************************************************************************//**
2 | * @file Initial.h
3 | * @brief Implementation of Initial.h
4 | * @author
5 | *******************************************************************************
6 | * Copyright 2023(c) Analog Devices, Inc.
7 | *
8 | * All rights reserved.
9 | *
10 | * Redistribution and use in source and binary forms, with or without
11 | * modification, are permitted provided that the following conditions are met:
12 | * - Redistributions of source code must retain the above copyright
13 | * notice, this list of conditions and the following disclaimer.
14 | * - Redistributions in binary form must reproduce the above copyright
15 | * notice, this list of conditions and the following disclaimer in
16 | * the documentation and/or other materials provided with the
17 | * distribution.
18 | * - Neither the name of Analog Devices, Inc. nor the names of its
19 | * contributors may be used to endorse or promote products derived
20 | * from this software without specific prior written permission.
21 | * - The use of this software may or may not infringe the patent rights
22 | * of one or more patent holders. This license does not release you
23 | * from the requirement that you obtain separate licenses from these
24 | * patent holders to use this software.
25 | * - Use of the software either in source or binary form, must be run
26 | * on or directly connected to an Analog Devices Inc. component.
27 | *
28 | * THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
29 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
30 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
31 | * IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
32 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
33 | * LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
34 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
35 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
36 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
37 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38 | ******************************************************************************/
39 | #ifndef __INITIAL_H__
40 | #define __INITIAL_H__
41 |
42 | extern void InitialCPU(void);
43 |
44 | #endif
45 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0359_reva/include/hal/drivers/encoder.h:
--------------------------------------------------------------------------------
1 | /***************************************************************************//**
2 | * @file encoder.h
3 | * @brief Implementation of encoder.h
4 | * @author
5 | *******************************************************************************
6 | * Copyright 2023(c) Analog Devices, Inc.
7 | *
8 | * All rights reserved.
9 | *
10 | * Redistribution and use in source and binary forms, with or without
11 | * modification, are permitted provided that the following conditions are met:
12 | * - Redistributions of source code must retain the above copyright
13 | * notice, this list of conditions and the following disclaimer.
14 | * - Redistributions in binary form must reproduce the above copyright
15 | * notice, this list of conditions and the following disclaimer in
16 | * the documentation and/or other materials provided with the
17 | * distribution.
18 | * - Neither the name of Analog Devices, Inc. nor the names of its
19 | * contributors may be used to endorse or promote products derived
20 | * from this software without specific prior written permission.
21 | * - The use of this software may or may not infringe the patent rights
22 | * of one or more patent holders. This license does not release you
23 | * from the requirement that you obtain separate licenses from these
24 | * patent holders to use this software.
25 | * - Use of the software either in source or binary form, must be run
26 | * on or directly connected to an Analog Devices Inc. component.
27 | *
28 | * THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
29 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
30 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
31 | * IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
32 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
33 | * LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
34 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
35 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
36 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
37 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38 | ******************************************************************************/
39 | #ifndef __ENCODER_H__
40 | #define __ENCODER_H__
41 |
42 | extern void encoder_open(void);
43 |
44 | #endif
45 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0359_reva/src/system/include/cmsis/cmsis_device.h:
--------------------------------------------------------------------------------
1 | //
2 | // This file is part of the GNU ARM Eclipse distribution.
3 | // Copyright (c) 2015 Liviu Ionescu.
4 | //
5 |
6 | #ifndef _CMSIS_DEVICE_H_
7 | #define _CMSIS_DEVICE_H_
8 |
9 | #pragma GCC diagnostic push
10 | // Add pragmas if the header triggers warnings.
11 | // #pragma GCC diagnostic ignored "-Wpadded"
12 |
13 | #include "ADuCM360.h"
14 |
15 | #pragma GCC diagnostic pop
16 |
17 | #endif // _CMSIS_DEVICE_H_
18 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0359_reva/system.rteconfig:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | http://www.keil.com/dd2/analogdevices/aducm360
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0359_reva/system.svc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0391/.gitignore:
--------------------------------------------------------------------------------
1 | /Debug/
2 | /Release/
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0391/.settings/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.7.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0391/.settings/settings/DefaultProjectAttribute.prefs:
--------------------------------------------------------------------------------
1 | ArtifactType=org.eclipse.cdt.build.core.buildArtefactType.exe
2 | CoreId=0
3 | Processor=ADuCM360
4 | Revision=none
5 | adi_initialize.c.lastgenerated=1503654964594
6 | adi_initialize.h.lastgenerated=1503654964645
7 | eclipse.preferences.version=1
8 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0391/.settings/settings/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.6.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0391/RTE/RTE_Components.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Auto generated Run-Time-Environment Component Configuration File
3 | * *** Do not modify ! ***
4 | *
5 | * Project: ADuCM360_demo_cn0391
6 | * RTE configuration: system.rteconfig
7 | */
8 | #ifndef RTE_COMPONENTS_H
9 | #define RTE_COMPONENTS_H
10 |
11 | /*
12 | * Define the Device Header File:
13 | */
14 | #define CMSIS_device_header "ADuCM360.h"
15 |
16 |
17 | #endif /* RTE_COMPONENTS_H */
18 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0391/src/Timer.cpp:
--------------------------------------------------------------------------------
1 | /*!
2 | *****************************************************************************
3 | * @file: Timer.cpp
4 | * @brief:
5 | * @version: $Revision$
6 | * @date: $Date$
7 | *-----------------------------------------------------------------------------
8 | *
9 | Copyright (c) 2014 Liviu Ionescu.
10 |
11 | Portions Copyright (c) 2017 Analog Devices, Inc.
12 |
13 | Permission is hereby granted, free of charge, to any person obtaining a
14 | copy of this software and associated documentation files (the "Software"),
15 | to deal in the Software without restriction, including without limitation
16 | the rights to use, copy, modify, merge, publish, distribute, sublicense,
17 | and/or sell copies of the Software, and to permit persons to whom the
18 | Software is furnished to do so, subject to the following conditions:
19 |
20 | The above copyright notice and this permission notice shall be included in
21 | all copies or substantial portions of the Software.
22 |
23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26 | THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
27 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
28 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
29 | OTHER DEALINGS IN THE SOFTWARE.
30 | */
31 |
32 | #include "Timer.h"
33 |
34 | // ----------------------------------------------------------------------------
35 |
36 | #if defined(USE_HAL_DRIVER)
37 | extern "C" void HAL_IncTick(void);
38 | #endif
39 |
40 | // ----------------------------------------------------------------------------
41 |
42 | volatile Timer::ticks_t Timer::ms_delayCount;
43 |
44 | // ----------------------------------------------------------------------------
45 |
46 | void
47 | Timer::sleep(ticks_t ticks)
48 | {
49 | ms_delayCount = ticks;
50 |
51 | // Busy wait until the SysTick decrements the counter to zero.
52 | while (ms_delayCount != 0u)
53 | ;
54 | }
55 |
56 | // ----- SysTick_Handler() ----------------------------------------------------
57 |
58 | extern "C" void
59 | SysTick_Handler(void)
60 | {
61 | #if defined(USE_HAL_DRIVER)
62 | HAL_IncTick();
63 | #endif
64 | Timer::tick();
65 | }
66 |
67 | Timer timer;
68 | // ----------------------------------------------------------------------------
69 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0391/system.svc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0391/system/adi_initialize.c:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.c source file generated on August 25, 2017 at 17:56:04.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #include
11 |
12 | #include "adi_initialize.h"
13 |
14 |
15 | int32_t adi_initComponents(void)
16 | {
17 | int32_t result = 0;
18 |
19 |
20 | return result;
21 | }
22 |
23 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0391/system/adi_initialize.h:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.h header file generated on August 25, 2017 at 17:56:04.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #ifndef __ADI_COMPONENT_INIT_H__
11 | #define __ADI_COMPONENT_INIT_H__
12 | #include
13 |
14 | #ifdef __cplusplus
15 | extern "C" {
16 | #endif
17 |
18 | /* Declare "adi_initComponents()" */
19 | int32_t adi_initComponents(void);
20 |
21 | #ifdef __cplusplus
22 | }
23 | #endif
24 |
25 | #endif /* __ADI_COMPONENT_INIT_H__ */
26 |
27 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0394/.gitignore:
--------------------------------------------------------------------------------
1 | /Debug/
2 | /Release/
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0394/.settings/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.7.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0394/.settings/s/DefaultProjectAttribute.prefs:
--------------------------------------------------------------------------------
1 | ArtifactType=org.eclipse.cdt.build.core.buildArtefactType.exe
2 | CoreId=0
3 | Processor=ADuCM360
4 | Revision=none
5 | adi_initialize.c.lastgenerated=1503834055692
6 | adi_initialize.h.lastgenerated=1503834055736
7 | eclipse.preferences.version=1
8 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0394/.settings/s/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.6.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0394/RTE/RTE_Components.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Auto generated Run-Time-Environment Component Configuration File
3 | * *** Do not modify ! ***
4 | *
5 | * Project: ADuCM360_demo_cn0394
6 | * RTE configuration: system.rteconfig
7 | */
8 | #ifndef RTE_COMPONENTS_H
9 | #define RTE_COMPONENTS_H
10 |
11 | /*
12 | * Define the Device Header File:
13 | */
14 | #define CMSIS_device_header "ADuCM360.h"
15 |
16 |
17 | #endif /* RTE_COMPONENTS_H */
18 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0394/include/Timer.h:
--------------------------------------------------------------------------------
1 | /*!
2 | *****************************************************************************
3 | * @file: Timer.h
4 | * @brief:
5 | * @version: $Revision$
6 | * @date: $Date$
7 | *-----------------------------------------------------------------------------
8 | *
9 | Copyright (c) 2014 Liviu Ionescu.
10 |
11 | Portions Copyright (c) 2017 Analog Devices, Inc.
12 |
13 | Permission is hereby granted, free of charge, to any person obtaining a
14 | copy of this software and associated documentation files (the "Software"),
15 | to deal in the Software without restriction, including without limitation
16 | the rights to use, copy, modify, merge, publish, distribute, sublicense,
17 | and/or sell copies of the Software, and to permit persons to whom the
18 | Software is furnished to do so, subject to the following conditions:
19 |
20 | The above copyright notice and this permission notice shall be included in
21 | all copies or substantial portions of the Software.
22 |
23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26 | THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
27 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
28 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
29 | OTHER DEALINGS IN THE SOFTWARE.
30 | */
31 |
32 | #ifndef TIMER_H_
33 | #define TIMER_H_
34 |
35 | #include
36 |
37 | // ----------------------------------------------------------------------------
38 |
39 | #define TIMER_FREQUENCY_HZ (1000u)
40 |
41 | typedef uint32_t timer_ticks_t;
42 |
43 | extern volatile timer_ticks_t timer_delayCount;
44 |
45 | extern void
46 | timer_start (void);
47 |
48 | extern void
49 | timer_sleep (timer_ticks_t ticks);
50 |
51 | // ----------------------------------------------------------------------------
52 |
53 | #endif // TIMER_H_
54 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0394/system.svc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0394/system/adi_initialize.c:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.c source file generated on August 27, 2017 at 19:40:55.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #include
11 |
12 | #include "adi_initialize.h"
13 |
14 |
15 | int32_t adi_initComponents(void)
16 | {
17 | int32_t result = 0;
18 |
19 |
20 | return result;
21 | }
22 |
23 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0394/system/adi_initialize.h:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.h header file generated on August 27, 2017 at 19:40:55.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #ifndef __ADI_COMPONENT_INIT_H__
11 | #define __ADI_COMPONENT_INIT_H__
12 | #include
13 |
14 | #ifdef __cplusplus
15 | extern "C" {
16 | #endif
17 |
18 | /* Declare "adi_initComponents()" */
19 | int32_t adi_initComponents(void);
20 |
21 | #ifdef __cplusplus
22 | }
23 | #endif
24 |
25 | #endif /* __ADI_COMPONENT_INIT_H__ */
26 |
27 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0395/.gitignore:
--------------------------------------------------------------------------------
1 | /Debug/
2 | /Release/
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0395/.settings/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.7.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0395/.settings/org.eclipse.cdt.managedbuilder.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | environment/buildEnvironmentInclude/arm.toolchain.gcc.target.exe.debug.1053808050/CPATH/delimiter=\:
3 | environment/buildEnvironmentInclude/arm.toolchain.gcc.target.exe.debug.1053808050/CPATH/operation=remove
4 | environment/buildEnvironmentInclude/arm.toolchain.gcc.target.exe.debug.1053808050/C_INCLUDE_PATH/delimiter=\:
5 | environment/buildEnvironmentInclude/arm.toolchain.gcc.target.exe.debug.1053808050/C_INCLUDE_PATH/operation=remove
6 | environment/buildEnvironmentInclude/arm.toolchain.gcc.target.exe.debug.1053808050/append=true
7 | environment/buildEnvironmentInclude/arm.toolchain.gcc.target.exe.debug.1053808050/appendContributed=true
8 | environment/buildEnvironmentLibrary/arm.toolchain.gcc.target.exe.debug.1053808050/LIBRARY_PATH/delimiter=\:
9 | environment/buildEnvironmentLibrary/arm.toolchain.gcc.target.exe.debug.1053808050/LIBRARY_PATH/operation=remove
10 | environment/buildEnvironmentLibrary/arm.toolchain.gcc.target.exe.debug.1053808050/append=true
11 | environment/buildEnvironmentLibrary/arm.toolchain.gcc.target.exe.debug.1053808050/appendContributed=true
12 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0395/.settings/s/DefaultProjectAttribute.prefs:
--------------------------------------------------------------------------------
1 | ArtifactType=org.eclipse.cdt.build.core.buildArtefactType.exe
2 | CoreId=0
3 | Processor=ADuCM360
4 | Revision=none
5 | adi_initialize.c.lastgenerated=1503834422466
6 | adi_initialize.h.lastgenerated=1503834422511
7 | eclipse.preferences.version=1
8 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0395/.settings/s/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.6.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0395/RTE/RTE_Components.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Auto generated Run-Time-Environment Component Configuration File
3 | * *** Do not modify ! ***
4 | *
5 | * Project: ADuCM360_demo_cn0395
6 | * RTE configuration: system.rteconfig
7 | */
8 | #ifndef RTE_COMPONENTS_H
9 | #define RTE_COMPONENTS_H
10 |
11 | /*
12 | * Define the Device Header File:
13 | */
14 | #define CMSIS_device_header "ADuCM360.h"
15 |
16 |
17 | #endif /* RTE_COMPONENTS_H */
18 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0395/include/Timer.h:
--------------------------------------------------------------------------------
1 | /*!
2 | *****************************************************************************
3 | * @file: Timer.h
4 | * @brief:
5 | * @version: $Revision$
6 | * @date: $Date$
7 | *-----------------------------------------------------------------------------
8 | *
9 | Copyright (c) 2014 Liviu Ionescu.
10 |
11 | Portions Copyright (c) 2017 Analog Devices, Inc.
12 |
13 | Permission is hereby granted, free of charge, to any person obtaining a
14 | copy of this software and associated documentation files (the "Software"),
15 | to deal in the Software without restriction, including without limitation
16 | the rights to use, copy, modify, merge, publish, distribute, sublicense,
17 | and/or sell copies of the Software, and to permit persons to whom the
18 | Software is furnished to do so, subject to the following conditions:
19 |
20 | The above copyright notice and this permission notice shall be included in
21 | all copies or substantial portions of the Software.
22 |
23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26 | THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
27 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
28 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
29 | OTHER DEALINGS IN THE SOFTWARE.
30 | */
31 |
32 | #ifndef TIMER_H_
33 | #define TIMER_H_
34 |
35 | #include
36 |
37 | // ----------------------------------------------------------------------------
38 |
39 | #define TIMER_FREQUENCY_HZ (1000u)
40 |
41 | typedef uint32_t timer_ticks_t;
42 |
43 | extern volatile timer_ticks_t timer_delayCount;
44 |
45 | extern void
46 | timer_start (void);
47 |
48 | extern void
49 | timer_sleep (timer_ticks_t ticks);
50 |
51 | void
52 | timer_start_us (void);
53 |
54 | void
55 | timer_tick_us (void);
56 |
57 | void timer_sleep_5uS(timer_ticks_t ticks);
58 |
59 | // ----------------------------------------------------------------------------
60 |
61 | #endif // TIMER_H_
62 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0395/system.svc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0395/system/adi_initialize.c:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.c source file generated on August 27, 2017 at 19:47:02.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #include
11 |
12 | #include "adi_initialize.h"
13 |
14 |
15 | int32_t adi_initComponents(void)
16 | {
17 | int32_t result = 0;
18 |
19 |
20 | return result;
21 | }
22 |
23 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0395/system/adi_initialize.h:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.h header file generated on August 27, 2017 at 19:47:02.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #ifndef __ADI_COMPONENT_INIT_H__
11 | #define __ADI_COMPONENT_INIT_H__
12 | #include
13 |
14 | #ifdef __cplusplus
15 | extern "C" {
16 | #endif
17 |
18 | /* Declare "adi_initComponents()" */
19 | int32_t adi_initComponents(void);
20 |
21 | #ifdef __cplusplus
22 | }
23 | #endif
24 |
25 | #endif /* __ADI_COMPONENT_INIT_H__ */
26 |
27 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0396/.gitignore:
--------------------------------------------------------------------------------
1 | /Debug/
2 | /Release/
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0396/.settings/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.7.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0396/.settings/settings/DefaultProjectAttribute.prefs:
--------------------------------------------------------------------------------
1 | ArtifactType=org.eclipse.cdt.build.core.buildArtefactType.exe
2 | CoreId=0
3 | Processor=ADuCM360
4 | Revision=none
5 | adi_initialize.c.lastgenerated=1503834862941
6 | adi_initialize.h.lastgenerated=1503834862986
7 | eclipse.preferences.version=1
8 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0396/.settings/settings/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.6.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0396/RTE/RTE_Components.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Auto generated Run-Time-Environment Component Configuration File
3 | * *** Do not modify ! ***
4 | *
5 | * Project: ADuCM360_demo_cn0396
6 | * RTE configuration: system.rteconfig
7 | */
8 | #ifndef RTE_COMPONENTS_H
9 | #define RTE_COMPONENTS_H
10 |
11 | /*
12 | * Define the Device Header File:
13 | */
14 | #define CMSIS_device_header "ADuCM360.h"
15 |
16 |
17 | #endif /* RTE_COMPONENTS_H */
18 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0396/include/Timer.h:
--------------------------------------------------------------------------------
1 | /*!
2 | *****************************************************************************
3 | * @file: Timer.h
4 | * @brief:
5 | * @version: $Revision$
6 | * @date: $Date$
7 | *-----------------------------------------------------------------------------
8 | *
9 | Copyright (c) 2014 Liviu Ionescu.
10 |
11 | Portions Copyright (c) 2017 Analog Devices, Inc.
12 |
13 | Permission is hereby granted, free of charge, to any person obtaining a
14 | copy of this software and associated documentation files (the "Software"),
15 | to deal in the Software without restriction, including without limitation
16 | the rights to use, copy, modify, merge, publish, distribute, sublicense,
17 | and/or sell copies of the Software, and to permit persons to whom the
18 | Software is furnished to do so, subject to the following conditions:
19 |
20 | The above copyright notice and this permission notice shall be included in
21 | all copies or substantial portions of the Software.
22 |
23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26 | THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
27 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
28 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
29 | OTHER DEALINGS IN THE SOFTWARE.
30 | */
31 |
32 | #ifndef TIMER_H_
33 | #define TIMER_H_
34 |
35 | #include
36 |
37 | // ----------------------------------------------------------------------------
38 |
39 | #define TIMER_FREQUENCY_HZ (1000u)
40 |
41 | typedef uint32_t timer_ticks_t;
42 |
43 | extern volatile timer_ticks_t timer_delayCount;
44 |
45 | extern void
46 | timer_start (void);
47 |
48 | extern void
49 | timer_sleep (timer_ticks_t ticks);
50 |
51 | // ----------------------------------------------------------------------------
52 |
53 | #endif // TIMER_H_
54 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0396/system.svc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0396/system/adi_initialize.c:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.c source file generated on August 27, 2017 at 19:54:22.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #include
11 |
12 | #include "adi_initialize.h"
13 |
14 |
15 | int32_t adi_initComponents(void)
16 | {
17 | int32_t result = 0;
18 |
19 |
20 | return result;
21 | }
22 |
23 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0396/system/adi_initialize.h:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.h header file generated on August 27, 2017 at 19:54:22.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #ifndef __ADI_COMPONENT_INIT_H__
11 | #define __ADI_COMPONENT_INIT_H__
12 | #include
13 |
14 | #ifdef __cplusplus
15 | extern "C" {
16 | #endif
17 |
18 | /* Declare "adi_initComponents()" */
19 | int32_t adi_initComponents(void);
20 |
21 | #ifdef __cplusplus
22 | }
23 | #endif
24 |
25 | #endif /* __ADI_COMPONENT_INIT_H__ */
26 |
27 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0397/.gitignore:
--------------------------------------------------------------------------------
1 | /Debug/
2 | /Release/
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0397/.settings/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.7.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0397/.settings/s/DefaultProjectAttribute.prefs:
--------------------------------------------------------------------------------
1 | ArtifactType=org.eclipse.cdt.build.core.buildArtefactType.exe
2 | CoreId=0
3 | Processor=ADuCM360
4 | Revision=none
5 | adi_initialize.c.lastgenerated=1503835047871
6 | adi_initialize.h.lastgenerated=1503835047924
7 | eclipse.preferences.version=1
8 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0397/.settings/s/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.6.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0397/RTE/RTE_Components.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Auto generated Run-Time-Environment Component Configuration File
3 | * *** Do not modify ! ***
4 | *
5 | * Project: ADuCM360_demo_cn0397
6 | * RTE configuration: system.rteconfig
7 | */
8 | #ifndef RTE_COMPONENTS_H
9 | #define RTE_COMPONENTS_H
10 |
11 | /*
12 | * Define the Device Header File:
13 | */
14 | #define CMSIS_device_header "ADuCM360.h"
15 |
16 |
17 | #endif /* RTE_COMPONENTS_H */
18 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0397/include/Timer.h:
--------------------------------------------------------------------------------
1 | /*!
2 | *****************************************************************************
3 | * @file: Timer.h
4 | * @brief:
5 | * @version: $Revision$
6 | * @date: $Date$
7 | *-----------------------------------------------------------------------------
8 | *
9 | Copyright (c) 2014 Liviu Ionescu.
10 |
11 | Portions Copyright (c) 2017 Analog Devices, Inc.
12 |
13 | Permission is hereby granted, free of charge, to any person obtaining a
14 | copy of this software and associated documentation files (the "Software"),
15 | to deal in the Software without restriction, including without limitation
16 | the rights to use, copy, modify, merge, publish, distribute, sublicense,
17 | and/or sell copies of the Software, and to permit persons to whom the
18 | Software is furnished to do so, subject to the following conditions:
19 |
20 | The above copyright notice and this permission notice shall be included in
21 | all copies or substantial portions of the Software.
22 |
23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26 | THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
27 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
28 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
29 | OTHER DEALINGS IN THE SOFTWARE.
30 | */
31 |
32 | #ifndef TIMER_H_
33 | #define TIMER_H_
34 |
35 | #include
36 |
37 | // ----------------------------------------------------------------------------
38 |
39 | #define TIMER_FREQUENCY_HZ (1000u)
40 |
41 | typedef uint32_t timer_ticks_t;
42 |
43 | extern volatile timer_ticks_t timer_delayCount;
44 |
45 | extern void
46 | timer_start (void);
47 |
48 | extern void
49 | timer_sleep (timer_ticks_t ticks);
50 |
51 | // ----------------------------------------------------------------------------
52 |
53 | #endif // TIMER_H_
54 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0397/system.svc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0397/system/adi_initialize.c:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.c source file generated on August 27, 2017 at 19:57:27.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #include
11 |
12 | #include "adi_initialize.h"
13 |
14 |
15 | int32_t adi_initComponents(void)
16 | {
17 | int32_t result = 0;
18 |
19 |
20 | return result;
21 | }
22 |
23 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0397/system/adi_initialize.h:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.h header file generated on August 27, 2017 at 19:57:27.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #ifndef __ADI_COMPONENT_INIT_H__
11 | #define __ADI_COMPONENT_INIT_H__
12 | #include
13 |
14 | #ifdef __cplusplus
15 | extern "C" {
16 | #endif
17 |
18 | /* Declare "adi_initComponents()" */
19 | int32_t adi_initComponents(void);
20 |
21 | #ifdef __cplusplus
22 | }
23 | #endif
24 |
25 | #endif /* __ADI_COMPONENT_INIT_H__ */
26 |
27 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0398/.gitignore:
--------------------------------------------------------------------------------
1 | /Debug/
2 | /Release/
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0398/.settings/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.7.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0398/.settings/s/DefaultProjectAttribute.prefs:
--------------------------------------------------------------------------------
1 | ArtifactType=org.eclipse.cdt.build.core.buildArtefactType.exe
2 | CoreId=0
3 | Processor=ADuCM360
4 | Revision=none
5 | adi_initialize.c.lastgenerated=1503835195513
6 | adi_initialize.h.lastgenerated=1503835195576
7 | eclipse.preferences.version=1
8 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0398/.settings/s/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.6.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0398/RTE/RTE_Components.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Auto generated Run-Time-Environment Component Configuration File
3 | * *** Do not modify ! ***
4 | *
5 | * Project: ADuCM360_demo_cn0398
6 | * RTE configuration: system.rteconfig
7 | */
8 | #ifndef RTE_COMPONENTS_H
9 | #define RTE_COMPONENTS_H
10 |
11 | /*
12 | * Define the Device Header File:
13 | */
14 | #define CMSIS_device_header "ADuCM360.h"
15 |
16 |
17 | #endif /* RTE_COMPONENTS_H */
18 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0398/include/Timer.h:
--------------------------------------------------------------------------------
1 | /*!
2 | *****************************************************************************
3 | * @file: Timer.h
4 | * @brief:
5 | * @version: $Revision$
6 | * @date: $Date$
7 | *-----------------------------------------------------------------------------
8 | *
9 | Copyright (c) 2014 Liviu Ionescu.
10 |
11 | Portions Copyright (c) 2017 Analog Devices, Inc.
12 |
13 | Permission is hereby granted, free of charge, to any person obtaining a
14 | copy of this software and associated documentation files (the "Software"),
15 | to deal in the Software without restriction, including without limitation
16 | the rights to use, copy, modify, merge, publish, distribute, sublicense,
17 | and/or sell copies of the Software, and to permit persons to whom the
18 | Software is furnished to do so, subject to the following conditions:
19 |
20 | The above copyright notice and this permission notice shall be included in
21 | all copies or substantial portions of the Software.
22 |
23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26 | THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
27 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
28 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
29 | OTHER DEALINGS IN THE SOFTWARE.
30 | */
31 |
32 | #ifndef TIMER_H_
33 | #define TIMER_H_
34 |
35 | #include
36 |
37 | // ----------------------------------------------------------------------------
38 |
39 | class Timer
40 | {
41 | public:
42 | typedef uint32_t ticks_t;
43 | static constexpr ticks_t FREQUENCY_HZ = 1000u;
44 |
45 | private:
46 | static volatile ticks_t ms_delayCount;
47 |
48 | public:
49 | // Default constructor
50 | Timer() = default;
51 |
52 | inline void
53 | start(void)
54 | {
55 | SystemCoreClockUpdate();
56 | // Use SysTick as reference for the delay loops.
57 | SysTick_Config(SystemCoreClock / FREQUENCY_HZ);
58 | }
59 |
60 | static void
61 | sleep(ticks_t ticks);
62 |
63 | inline static void
64 | tick(void)
65 | {
66 | // Decrement to zero the counter used by the delay routine.
67 | if (ms_delayCount != 0u)
68 | {
69 | --ms_delayCount;
70 | }
71 | }
72 | };
73 |
74 | extern Timer timer;
75 | // ----------------------------------------------------------------------------
76 |
77 | #endif // TIMER_H_
78 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0398/src/Timer.cpp:
--------------------------------------------------------------------------------
1 | /*!
2 | *****************************************************************************
3 | * @file: Timer.cpp
4 | * @brief:
5 | * @version: $Revision$
6 | * @date: $Date$
7 | *-----------------------------------------------------------------------------
8 | *
9 | Copyright (c) 2014 Liviu Ionescu.
10 |
11 | Portions Copyright (c) 2017 Analog Devices, Inc.
12 |
13 | Permission is hereby granted, free of charge, to any person obtaining a
14 | copy of this software and associated documentation files (the "Software"),
15 | to deal in the Software without restriction, including without limitation
16 | the rights to use, copy, modify, merge, publish, distribute, sublicense,
17 | and/or sell copies of the Software, and to permit persons to whom the
18 | Software is furnished to do so, subject to the following conditions:
19 |
20 | The above copyright notice and this permission notice shall be included in
21 | all copies or substantial portions of the Software.
22 |
23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26 | THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
27 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
28 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
29 | OTHER DEALINGS IN THE SOFTWARE.
30 | */
31 |
32 | #include "Timer.h"
33 |
34 | // ----------------------------------------------------------------------------
35 |
36 | #if defined(USE_HAL_DRIVER)
37 | extern "C" void HAL_IncTick(void);
38 | #endif
39 |
40 | // ----------------------------------------------------------------------------
41 |
42 | volatile Timer::ticks_t Timer::ms_delayCount;
43 |
44 | // ----------------------------------------------------------------------------
45 |
46 | void
47 | Timer::sleep(ticks_t ticks)
48 | {
49 | ms_delayCount = ticks;
50 |
51 | // Busy wait until the SysTick decrements the counter to zero.
52 | while (ms_delayCount != 0u)
53 | ;
54 | }
55 |
56 | // ----- SysTick_Handler() ----------------------------------------------------
57 |
58 | extern "C" void
59 | SysTick_Handler(void)
60 | {
61 | #if defined(USE_HAL_DRIVER)
62 | HAL_IncTick();
63 | #endif
64 | Timer::tick();
65 | }
66 |
67 | Timer timer;
68 | // ----------------------------------------------------------------------------
69 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0398/system.svc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0398/system/adi_initialize.c:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.c source file generated on August 27, 2017 at 19:59:55.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #include
11 |
12 | #include "adi_initialize.h"
13 |
14 |
15 | int32_t adi_initComponents(void)
16 | {
17 | int32_t result = 0;
18 |
19 |
20 | return result;
21 | }
22 |
23 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0398/system/adi_initialize.h:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.h header file generated on August 27, 2017 at 19:59:55.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #ifndef __ADI_COMPONENT_INIT_H__
11 | #define __ADI_COMPONENT_INIT_H__
12 | #include
13 |
14 | #ifdef __cplusplus
15 | extern "C" {
16 | #endif
17 |
18 | /* Declare "adi_initComponents()" */
19 | int32_t adi_initComponents(void);
20 |
21 | #ifdef __cplusplus
22 | }
23 | #endif
24 |
25 | #endif /* __ADI_COMPONENT_INIT_H__ */
26 |
27 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0409/.settings/DefaultProjectAttribute.prefs:
--------------------------------------------------------------------------------
1 | ArtifactType=org.eclipse.cdt.build.core.buildArtefactType.exe
2 | CoreId=0
3 | Processor=ADuCM360
4 | Revision=none
5 | adi_initialize.c.lastgenerated=1518790305852
6 | adi_initialize.h.lastgenerated=1518790305941
7 | eclipse.preferences.version=1
8 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0409/.settings/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.8.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0409/RTE/RTE_Components.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Auto generated Run-Time-Environment Component Configuration File
3 | * *** Do not modify ! ***
4 | *
5 | * Project: ADuCM360_demo_cn0409
6 | * RTE configuration: system.rteconfig
7 | */
8 | #ifndef RTE_COMPONENTS_H
9 | #define RTE_COMPONENTS_H
10 |
11 | /*
12 | * Define the Device Header File:
13 | */
14 | #define CMSIS_device_header "ADuCM360.h"
15 |
16 |
17 | #endif /* RTE_COMPONENTS_H */
18 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0409/include/Timer.h:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of the µOS++ distribution.
3 | * (https://github.com/micro-os-plus)
4 | * Copyright (c) 2014 Liviu Ionescu.
5 | *
6 | * Permission is hereby granted, free of charge, to any person
7 | * obtaining a copy of this software and associated documentation
8 | * files (the "Software"), to deal in the Software without
9 | * restriction, including without limitation the rights to use,
10 | * copy, modify, merge, publish, distribute, sublicense, and/or
11 | * sell copies of the Software, and to permit persons to whom
12 | * the Software is furnished to do so, subject to the following
13 | * conditions:
14 | *
15 | * The above copyright notice and this permission notice shall be
16 | * included in all copies or substantial portions of the Software.
17 | *
18 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
20 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
21 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
22 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
23 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
24 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
25 | * OTHER DEALINGS IN THE SOFTWARE.
26 | */
27 |
28 | #ifndef TIMER_H_
29 | #define TIMER_H_
30 |
31 | #include
32 |
33 | // ----------------------------------------------------------------------------
34 |
35 | #define TIMER_FREQUENCY_HZ (1000u)
36 |
37 | typedef uint32_t timer_ticks_t;
38 |
39 | extern volatile timer_ticks_t timer_delayCount;
40 |
41 | extern void
42 | timer_start (void);
43 |
44 | extern void
45 | timer_sleep (timer_ticks_t ticks);
46 |
47 | // ----------------------------------------------------------------------------
48 |
49 | #endif // TIMER_H_
50 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0409/system.svc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0409/system/adi_initialize.c:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.c source file generated on February 16, 2018 at 16:11:45.
3 | **
4 | ** Copyright (C) 2000-2018 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #include
11 |
12 | #include "adi_initialize.h"
13 |
14 |
15 | int32_t adi_initComponents(void)
16 | {
17 | int32_t result = 0;
18 |
19 |
20 | return result;
21 | }
22 |
23 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0409/system/adi_initialize.h:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.h header file generated on February 16, 2018 at 16:11:45.
3 | **
4 | ** Copyright (C) 2000-2018 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #ifndef __ADI_COMPONENT_INIT_H__
11 | #define __ADI_COMPONENT_INIT_H__
12 | #include
13 |
14 | #ifdef __cplusplus
15 | extern "C" {
16 | #endif
17 |
18 | /* Declare "adi_initComponents()" */
19 | int32_t adi_initComponents(void);
20 |
21 | #ifdef __cplusplus
22 | }
23 | #endif
24 |
25 | #endif /* __ADI_COMPONENT_INIT_H__ */
26 |
27 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0411/.settings/DefaultProjectAttribute.prefs:
--------------------------------------------------------------------------------
1 | ArtifactType=org.eclipse.cdt.build.core.buildArtefactType.exe
2 | CoreId=0
3 | Processor=ADuCM360
4 | Revision=none
5 | adi_initialize.c.lastgenerated=1508339632504
6 | adi_initialize.h.lastgenerated=1508339632594
7 | eclipse.preferences.version=1
8 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0411/.settings/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.9.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0411/.settings/com.analog.crosscore.system.validator.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | validation.check=true
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0411/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//src/CN0411.c=UTF-8
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0411/RTE/RTE_Components.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Auto generated Run-Time-Environment Component Configuration File
3 | * *** Do not modify ! ***
4 | *
5 | * Project: ADuCM360_demo_cn0411
6 | * RTE configuration: system.rteconfig
7 | */
8 | #ifndef RTE_COMPONENTS_H
9 | #define RTE_COMPONENTS_H
10 |
11 | /*
12 | * Define the Device Header File:
13 | */
14 | #define CMSIS_device_header "ADuCM360.h"
15 |
16 |
17 | #endif /* RTE_COMPONENTS_H */
18 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0411/include/AD7124_regs.h:
--------------------------------------------------------------------------------
1 | #ifndef __AD7124_REGS_H__
2 | #define __AD7124_REGS_H__
3 |
4 | #include
5 |
6 | /*! Array holding the info for the ad7124 registers - address, initial value,
7 | size and access type. */
8 | extern struct ad7124_st_reg ad7124_regs[AD7124_REG_NO];
9 |
10 | #endif /* __AD7124_REGS_H__ */
11 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0411/include/Timer.h:
--------------------------------------------------------------------------------
1 | /*!
2 | *****************************************************************************
3 | * @file: Timer.h
4 | * @brief:
5 | * @version: $Revision$
6 | * @date: $Date$
7 | *-----------------------------------------------------------------------------
8 | *
9 | Copyright (c) 2014 Liviu Ionescu.
10 |
11 | Portions Copyright (c) 2017 Analog Devices, Inc.
12 |
13 | Permission is hereby granted, free of charge, to any person obtaining a
14 | copy of this software and associated documentation files (the "Software"),
15 | to deal in the Software without restriction, including without limitation
16 | the rights to use, copy, modify, merge, publish, distribute, sublicense,
17 | and/or sell copies of the Software, and to permit persons to whom the
18 | Software is furnished to do so, subject to the following conditions:
19 |
20 | The above copyright notice and this permission notice shall be included in
21 | all copies or substantial portions of the Software.
22 |
23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26 | THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
27 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
28 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
29 | OTHER DEALINGS IN THE SOFTWARE.
30 | */
31 |
32 | #ifndef TIMER_H_
33 | #define TIMER_H_
34 |
35 | #include
36 |
37 | // ----------------------------------------------------------------------------
38 |
39 | #define TIMER_FREQUENCY_HZ (1000u)
40 |
41 | #define STEP 1
42 | #define CASE1 1*STEP
43 | #define CASE2 2*STEP
44 | #define CASE3 3*STEP
45 | #define CASE4 4*STEP
46 | #define CASE5 5*STEP
47 | #define CASE6 6*STEP
48 |
49 | typedef uint32_t timer_ticks_t;
50 |
51 | extern volatile timer_ticks_t timer_delayCount;
52 |
53 | extern void
54 | timer_start (void);
55 |
56 | extern void
57 | timer_sleep (timer_ticks_t ticks);
58 |
59 | void
60 | timer_start_us (void);
61 |
62 | void
63 | timer_tick_us (void);
64 |
65 | void timer_sleep_5uS(timer_ticks_t ticks);
66 |
67 | // ----------------------------------------------------------------------------
68 |
69 | #endif // TIMER_H_
70 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0411/system.svc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0411/system/adi_initialize.c:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.c source file generated on October 18, 2017 at 18:13:52.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #include
11 |
12 | #include "adi_initialize.h"
13 |
14 |
15 | int32_t adi_initComponents(void)
16 | {
17 | int32_t result = 0;
18 |
19 |
20 | return result;
21 | }
22 |
23 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_cn0411/system/adi_initialize.h:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.h header file generated on October 18, 2017 at 18:13:52.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #ifndef __ADI_COMPONENT_INIT_H__
11 | #define __ADI_COMPONENT_INIT_H__
12 | #include
13 |
14 | #ifdef __cplusplus
15 | extern "C" {
16 | #endif
17 |
18 | /* Declare "adi_initComponents()" */
19 | int32_t adi_initComponents(void);
20 |
21 | #ifdef __cplusplus
22 | }
23 | #endif
24 |
25 | #endif /* __ADI_COMPONENT_INIT_H__ */
26 |
27 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_pmodacl2/.gitignore:
--------------------------------------------------------------------------------
1 | /Debug/
2 | /Release/
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_pmodacl2/.settings/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.7.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_pmodacl2/.settings/s/DefaultProjectAttribute.prefs:
--------------------------------------------------------------------------------
1 | ArtifactType=org.eclipse.cdt.build.core.buildArtefactType.exe
2 | CoreId=0
3 | Processor=ADuCM360
4 | Revision=none
5 | adi_initialize.c.lastgenerated=1503835419873
6 | adi_initialize.h.lastgenerated=1503835419913
7 | eclipse.preferences.version=1
8 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_pmodacl2/.settings/s/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.6.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_pmodacl2/RTE/RTE_Components.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Auto generated Run-Time-Environment Component Configuration File
3 | * *** Do not modify ! ***
4 | *
5 | * Project: ADuCM360_demo_pmodacl2
6 | * RTE configuration: system.rteconfig
7 | */
8 | #ifndef RTE_COMPONENTS_H
9 | #define RTE_COMPONENTS_H
10 |
11 | /*
12 | * Define the Device Header File:
13 | */
14 | #define CMSIS_device_header "ADuCM360.h"
15 |
16 |
17 | #endif /* RTE_COMPONENTS_H */
18 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_pmodacl2/include/Timer.h:
--------------------------------------------------------------------------------
1 | /*!
2 | *****************************************************************************
3 | * @file: Timer.h
4 | * @brief:
5 | * @version: $Revision$
6 | * @date: $Date$
7 | *-----------------------------------------------------------------------------
8 | *
9 | Copyright (c) 2014 Liviu Ionescu.
10 |
11 | Portions Copyright (c) 2017 Analog Devices, Inc.
12 |
13 | Permission is hereby granted, free of charge, to any person obtaining a
14 | copy of this software and associated documentation files (the "Software"),
15 | to deal in the Software without restriction, including without limitation
16 | the rights to use, copy, modify, merge, publish, distribute, sublicense,
17 | and/or sell copies of the Software, and to permit persons to whom the
18 | Software is furnished to do so, subject to the following conditions:
19 |
20 | The above copyright notice and this permission notice shall be included in
21 | all copies or substantial portions of the Software.
22 |
23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26 | THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
27 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
28 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
29 | OTHER DEALINGS IN THE SOFTWARE.
30 | */
31 |
32 | #ifndef TIMER_H_
33 | #define TIMER_H_
34 |
35 | #include
36 |
37 | // ----------------------------------------------------------------------------
38 |
39 | #define TIMER_FREQUENCY_HZ (1000u)
40 |
41 | typedef uint32_t timer_ticks_t;
42 |
43 | extern volatile timer_ticks_t timer_delayCount;
44 |
45 | extern void
46 | timer_start (void);
47 |
48 | extern void
49 | timer_sleep (timer_ticks_t ticks);
50 |
51 | // ----------------------------------------------------------------------------
52 |
53 | #endif // TIMER_H_
54 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_pmodacl2/system.svc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_pmodacl2/system/adi_initialize.c:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.c source file generated on August 27, 2017 at 20:03:39.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #include
11 |
12 | #include "adi_initialize.h"
13 |
14 |
15 | int32_t adi_initComponents(void)
16 | {
17 | int32_t result = 0;
18 |
19 |
20 | return result;
21 | }
22 |
23 |
--------------------------------------------------------------------------------
/projects/ADuCM360_demo_pmodacl2/system/adi_initialize.h:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.h header file generated on August 27, 2017 at 20:03:39.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #ifndef __ADI_COMPONENT_INIT_H__
11 | #define __ADI_COMPONENT_INIT_H__
12 | #include
13 |
14 | #ifdef __cplusplus
15 | extern "C" {
16 | #endif
17 |
18 | /* Declare "adi_initComponents()" */
19 | int32_t adi_initComponents(void);
20 |
21 | #ifdef __cplusplus
22 | }
23 | #endif
24 |
25 | #endif /* __ADI_COMPONENT_INIT_H__ */
26 |
27 |
--------------------------------------------------------------------------------
/projects/ADuCM360_test_project/.gitignore:
--------------------------------------------------------------------------------
1 | /Debug/
2 | /Release/
--------------------------------------------------------------------------------
/projects/ADuCM360_test_project/.settings/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.7.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_test_project/.settings/s/DefaultProjectAttribute.prefs:
--------------------------------------------------------------------------------
1 | ArtifactType=org.eclipse.cdt.build.core.buildArtefactType.exe
2 | CoreId=0
3 | Processor=ADuCM360
4 | Revision=none
5 | adi_initialize.c.lastgenerated=1503835709851
6 | adi_initialize.h.lastgenerated=1503835709914
7 | eclipse.preferences.version=1
8 |
--------------------------------------------------------------------------------
/projects/ADuCM360_test_project/.settings/s/ToolChain.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | version=2.6.0.0
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_test_project/RTE/RTE_Components.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Auto generated Run-Time-Environment Component Configuration File
3 | * *** Do not modify ! ***
4 | *
5 | * Project: ADuCM360_test_project
6 | * RTE configuration: system.rteconfig
7 | */
8 | #ifndef RTE_COMPONENTS_H
9 | #define RTE_COMPONENTS_H
10 |
11 | /*
12 | * Define the Device Header File:
13 | */
14 | #define CMSIS_device_header "ADuCM360.h"
15 |
16 |
17 | #endif /* RTE_COMPONENTS_H */
18 |
--------------------------------------------------------------------------------
/projects/ADuCM360_test_project/include/Timer.h:
--------------------------------------------------------------------------------
1 | /*!
2 | *****************************************************************************
3 | * @file: Timer.h
4 | * @brief:
5 | * @version: $Revision$
6 | * @date: $Date$
7 | *-----------------------------------------------------------------------------
8 | *
9 | Copyright (c) 2014 Liviu Ionescu.
10 |
11 | Portions Copyright (c) 2017 Analog Devices, Inc.
12 |
13 | Permission is hereby granted, free of charge, to any person obtaining a
14 | copy of this software and associated documentation files (the "Software"),
15 | to deal in the Software without restriction, including without limitation
16 | the rights to use, copy, modify, merge, publish, distribute, sublicense,
17 | and/or sell copies of the Software, and to permit persons to whom the
18 | Software is furnished to do so, subject to the following conditions:
19 |
20 | The above copyright notice and this permission notice shall be included in
21 | all copies or substantial portions of the Software.
22 |
23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26 | THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
27 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
28 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
29 | OTHER DEALINGS IN THE SOFTWARE.
30 | */
31 |
32 | #ifndef TIMER_H_
33 | #define TIMER_H_
34 |
35 | #include
36 |
37 | // ----------------------------------------------------------------------------
38 |
39 | #define TIMER_FREQUENCY_HZ (1000u)
40 |
41 | typedef uint32_t timer_ticks_t;
42 |
43 | extern volatile timer_ticks_t timer_delayCount;
44 |
45 | extern void
46 | timer_start (void);
47 |
48 | extern void
49 | timer_sleep (timer_ticks_t ticks);
50 |
51 | // ----------------------------------------------------------------------------
52 |
53 | #endif // TIMER_H_
54 |
--------------------------------------------------------------------------------
/projects/ADuCM360_test_project/system.svc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/projects/ADuCM360_test_project/system/adi_initialize.c:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.c source file generated on August 27, 2017 at 20:08:29.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #include
11 |
12 | #include "adi_initialize.h"
13 |
14 |
15 | int32_t adi_initComponents(void)
16 | {
17 | int32_t result = 0;
18 |
19 |
20 | return result;
21 | }
22 |
23 |
--------------------------------------------------------------------------------
/projects/ADuCM360_test_project/system/adi_initialize.h:
--------------------------------------------------------------------------------
1 | /*
2 | ** adi_initialize.h header file generated on August 27, 2017 at 20:08:29.
3 | **
4 | ** Copyright (C) 2000-2017 Analog Devices Inc., All Rights Reserved.
5 | **
6 | ** This file is generated automatically. You should not modify this source file,
7 | ** as your changes will be lost if this source file is re-generated.
8 | */
9 |
10 | #ifndef __ADI_COMPONENT_INIT_H__
11 | #define __ADI_COMPONENT_INIT_H__
12 | #include
13 |
14 | #ifdef __cplusplus
15 | extern "C" {
16 | #endif
17 |
18 | /* Declare "adi_initComponents()" */
19 | int32_t adi_initComponents(void);
20 |
21 | #ifdef __cplusplus
22 | }
23 | #endif
24 |
25 | #endif /* __ADI_COMPONENT_INIT_H__ */
26 |
27 |
--------------------------------------------------------------------------------