Merge pull request #229 from ChibiOS/lgtm

adding LGTM config file
This commit is contained in:
Fabien Poussin 2020-11-25 12:05:04 +01:00 committed by GitHub
commit bd991a5f4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 1586 additions and 1568 deletions

View File

@ -40,7 +40,7 @@
/**
* @brief System time counter resolution.
* @note Allowed values are 16 or 32 bits.
* @note Allowed values are 16, 32 or 64 bits.
*/
#if !defined(CH_CFG_ST_RESOLUTION)
#define CH_CFG_ST_RESOLUTION 32
@ -745,7 +745,6 @@
/* Trace code here.*/ \
}
/** @} */
/*===========================================================================*/

View File

@ -100,7 +100,7 @@
* @brief Enables the ICU subsystem.
*/
#if !defined(HAL_USE_ICU) || defined(__DOXYGEN__)
#define HAL_USE_ICU TRUE
#define HAL_USE_ICU FALSE
#endif
/**
@ -121,7 +121,7 @@
* @brief Enables the PWM subsystem.
*/
#if !defined(HAL_USE_PWM) || defined(__DOXYGEN__)
#define HAL_USE_PWM TRUE
#define HAL_USE_PWM FALSE
#endif
/**

View File

@ -96,9 +96,9 @@
#define STM32_ADC_DUAL_MODE FALSE
#define STM32_ADC_COMPACT_SAMPLES FALSE
#define STM32_ADC_USE_ADC1 TRUE
#define STM32_ADC_USE_ADC2 FALSE
#define STM32_ADC_USE_ADC3 FALSE
#define STM32_ADC_USE_ADC4 FALSE
#define STM32_ADC_USE_ADC2 TRUE
#define STM32_ADC_USE_ADC3 TRUE
#define STM32_ADC_USE_ADC4 TRUE
#define STM32_ADC_ADC1_DMA_STREAM STM32_DMA_STREAM_ID(1, 1)
#define STM32_ADC_ADC2_DMA_STREAM STM32_DMA_STREAM_ID(2, 1)
#define STM32_ADC_ADC3_DMA_STREAM STM32_DMA_STREAM_ID(2, 5)
@ -171,11 +171,11 @@
/*
* ICU driver system settings.
*/
#define STM32_ICU_USE_TIM1 TRUE
#define STM32_ICU_USE_TIM1 FALSE
#define STM32_ICU_USE_TIM2 FALSE
#define STM32_ICU_USE_TIM3 TRUE
#define STM32_ICU_USE_TIM3 FALSE
#define STM32_ICU_USE_TIM4 FALSE
#define STM32_ICU_USE_TIM8 TRUE
#define STM32_ICU_USE_TIM8 FALSE
#define STM32_ICU_USE_TIM15 FALSE
#define STM32_ICU_TIM1_IRQ_PRIORITY 7
#define STM32_ICU_TIM2_IRQ_PRIORITY 7
@ -190,7 +190,7 @@
#define STM32_PWM_USE_TIM1 FALSE
#define STM32_PWM_USE_TIM2 FALSE
#define STM32_PWM_USE_TIM3 FALSE
#define STM32_PWM_USE_TIM4 TRUE
#define STM32_PWM_USE_TIM4 FALSE
#define STM32_PWM_USE_TIM8 FALSE
#define STM32_PWM_USE_TIM15 FALSE
#define STM32_PWM_USE_TIM16 FALSE

View File

@ -89,7 +89,7 @@ PROJECT = ch
MCU = cortex-m4
# Imported source files and paths.
CHIBIOS := ../../../../Chibios
CHIBIOS := ../../../../ChibiOS
CHIBIOS_CONTRIB := ../../../
CONFDIR := ./cfg

View File

@ -87,7 +87,7 @@ PROJECT = ch
# Imported source files and paths
CHIBIOS = ../../../../ChibiOS
CHIBIOS_CONTRIB = $(CHIBIOS)/../ChibiOS-Contrib
CHIBIOS_CONTRIB = ../../..
# Licensing files.
include $(CHIBIOS)/os/license/license.mk
# Startup files.

15
lgtml.yml Normal file
View File

@ -0,0 +1,15 @@
extraction:
cpp:
after_prepare:
- export GCC=gcc-arm-none-eabi-9-2020-q2-update
- wget -nv https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2020q2/gcc-arm-none-eabi-9-2020-q2-update-x86_64-linux.tar.bz2 -O compiler.tar.xz
- tar xf compiler.tar.xz -C ${LGTM_WORKSPACE}
- mv ${LGTM_WORKSPACE}/${GCC} ${LGTM_WORKSPACE}/gcc-arm
- git clone https://github.com/ChibiOS/ChibiOS.git --branch stable_20.3.x ${LGTM_WORKSPACE}/ChibiOS
index:
build_command:
- export PATH=${LGTM_WORKSPACE}/gcc-arm/bin:${PATH}
- export CH_PATH=${LGTM_WORKSPACE}/ChibiOS
- export CHC_PATH=${LGTM_SRC}
- ./tools/chbuild.sh testhal/{STM32,NRF51,NRF52,KINETIS}
- ./tools/chbuild.sh demos/{STM32,NRF51,NRF52,KINETIS}

View File

@ -26,8 +26,12 @@ function chbuild {
continue
fi
pushd $t > /dev/null
if [[ ! -z ${CH_CLEAN+x} ]]; then
printf "CLEANING: ${t}\n"
make clean
fi
printf "BUILDING: ${t}\n"
if [[ -z "$CH_PATH" && -z "$CHC_PATH" ]]; then
if [[ -z "${CH_PATH+x}" || -z "${CHC_PATH+x}" ]]; then
make --quiet -j $JOBS > /dev/null
else
make CHIBIOS=$CH_PATH CHIBIOS_CONTRIB=$CHC_PATH --quiet -j $JOBS > /dev/null