Skip to content

Commit

Permalink
Merge branch 'main' into fix/CFSIO-2421
Browse files Browse the repository at this point in the history
  • Loading branch information
sihyung-maxim committed Sep 24, 2024
2 parents d9a312c + 822491e commit c38d23d
Show file tree
Hide file tree
Showing 347 changed files with 149,165 additions and 2,872 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/clang-format-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ FILES=""
if [[ $# -eq 0 ]]
then
# Find the c files
FILES=$(find . -iname "*.c" -not -name "*cnn.c" -a -not -name "*softmax.c" -a -not -regex ".*/Libraries/MiscDrivers/BarcodeDecoder/.*" -a -not -regex ".*/Examples/.*/Coremark/.*" -a -not -regex ".*/Libraries/\(Cordio\|FCL\|FreeRTOS\|FreeRTOS\-Plus\|LC3\|littlefs\|lwIP\|MAXUSB\|SDHC\|LVGL\|Coremark\)/.*")
FILES=$(find . -iname "*.c" -not -name "*cnn.c" -a -not -name "*softmax.c" -a -not -regex ".*/Libraries/MiscDrivers/BarcodeDecoder/.*" -a -not -regex ".*/Examples/.*/Coremark/.*" -a -not -regex ".*/Libraries/\(Cordio\|FCL\|FreeRTOS\|FreeRTOS\-Plus\|LC3\|littlefs\|lwIP\|MAXUSB\|SDHC\|LVGL\|Coremark\|tinyusb\)/.*")

# Find the header files
FILES=$FILES+$(find . -iname "*.h" -not -name "*regs*" -a -not -name "*weights.h" -a -not -name "*cnn.h" -a -not -name "*sampledata.h" -a -not -name "*sampleoutput.h" -a -not -regex ".*/Libraries/MiscDrivers/BarcodeDecoder/.*" -a -not -regex ".*/Examples/.*/Coremark/.*" -a -not -regex ".*/Libraries/\(Cordio\|FCL\|FreeRTOS\|FreeRTOS\-Plus\|LC3\|littlefs\|lwIP\|MAXUSB\|SDHC\|LVGL\|Coremark\)/.*")
FILES=$FILES+$(find . -iname "*.h" -not -name "*regs*" -a -not -name "*weights.h" -a -not -name "*cnn.h" -a -not -name "*sampledata.h" -a -not -name "*sampleoutput.h" -a -not -regex ".*/Libraries/MiscDrivers/BarcodeDecoder/.*" -a -not -regex ".*/Examples/.*/Coremark/.*" -a -not -regex ".*/Libraries/\(Cordio\|FCL\|FreeRTOS\|FreeRTOS\-Plus\|LC3\|littlefs\|lwIP\|MAXUSB\|SDHC\|LVGL\|Coremark\|tinyusb\)/.*")
else
# Accumulate the input arguments into FILES
FILES="$*"
Expand Down
39 changes: 38 additions & 1 deletion .github/workflows/example_tester.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ env:
MAXIM_PATH: ''

jobs:
Example_Tests:
Example_Tests_MAX32690:
# The type of runner that the job will run on
runs-on: [self-hosted]
if: github.event.pull_request.draft == false
Expand Down Expand Up @@ -89,6 +89,43 @@ jobs:
lock: false
all_owned: true

Example_Tests_MAX78002:
# The type of runner that the job will run on
runs-on: [self-hosted]
if: github.event.pull_request.draft == false


steps:

- uses: actions/checkout@v4
with:
submodules: false
repository: analogdevicesinc/msdk
fetch-depth: 0

- name: Set MAXIM_PATH
run: |
echo "MAXIM_PATH=$(pwd)" >> $GITHUB_ENV
printenv
- name: Lock Boards
uses: Analog-Devices-MSDK/btm-ci-scripts/actions/lock-board@v1.1
with:
boards: |
max78002_board_ex
lock: true
timeout: 900 # Attempt to lock for an hour

- name: run_example_test
run: |
bash .github/workflows/scripts/example_tester_78002.sh max78002_board_ex
- name: Unlock Boards
if: always()
uses: Analog-Devices-MSDK/btm-ci-scripts/actions/lock-board@v1.1
with:
lock: false
all_owned: true



Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Skip autogenerated register files and internal use board files
FILTER_REGEX_EXCLUDE: (.*\/Libraries\/CMSIS\/Device\/Maxim\/.*\/Include\/partition_.*\.h)|(.*\/Libraries\/((CMSIS\/Device\/Maxim\/[^\/]*\/Include)|(PeriphDrivers\/Source\/[^\/]*))\/[^\/]*_regs\.h)|(.*\/Libraries\/Boards\/[^\/]*\/(BCB|Emulator|Simulation|ROM)[^\/]*\/.*)|(.*\/Examples\/[^\/]*\/Display\/lvgl-8\.0\.2\/.*)|(.*\/Examples\/[^\/]*\/Demo\/lv_conf.h)|(.*\/Libraries\/CMSIS\/5.9.0\/.*)|(.*\/Libraries\/CMSIS\/Include\/.*)|(.*\/Libraries\/Cordio\/.*)|(.*\/Libraries\/SDHC\/.*)|(.*\/Libraries\/lwIP\/.*)|(.*\/Examples\/[^\/]*\/CNN\/.*)|(.*\/Libraries\/tinyusb\/.*)
FILTER_REGEX_EXCLUDE: (.*\/Libraries\/CMSIS\/Device\/Maxim\/.*\/Include\/partition_.*\.h)|(.*\/Libraries\/((CMSIS\/Device\/Maxim\/[^\/]*\/Include)|(PeriphDrivers\/Source\/[^\/]*))\/[^\/]*_regs\.h)|(.*\/Libraries\/Boards\/[^\/]*\/(BCB|Emulator|Simulation|ROM)[^\/]*\/.*)|(.*\/Examples\/[^\/]*\/Display\/lvgl-8\.0\.2\/.*)|(.*\/Examples\/[^\/]*\/Demo\/lv_conf.h)|(.*\/Libraries\/CMSIS\/5.9.0\/.*)|(.*\/Libraries\/CMSIS\/Include\/.*)|(.*\/Libraries\/Cordio\/.*)|(.*\/Libraries\/SDHC\/.*)|(.*\/Libraries\/lwIP\/.*)|(.*\/Examples\/[^\/]*\/CNN\/.*)|(.*\/Libraries\/tinyusb\/.*)|(.*\/Libraries\/CMSIS\/Device\/Maxim\/MAX32657\/Source\/Template\/.*)|(.*\/partition_.*\.h)

# Explicity turn off all linters except CPP
# SuperLinter Documentation says all we need to do is turn on the ones we want
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scripts/example_tester.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ function init() {

if [[ $1 = "SPI" || $1 = "SPI_v2" || $1 = "ADC" || $1 = "UART" ]];
then
make -C $Path/$testName METHOD=$2
make -j -C $Path/$testName METHOD=$2
else
make -C $Path/$testName
make -j -C $Path/$testName
fi
fi

Expand Down
Loading

0 comments on commit c38d23d

Please sign in to comment.