diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 8a7761f098..047f4a6aa0 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -107,6 +107,10 @@ jobs: if: always() run: | (cd examples && ../tools/scripts/examples_compile.py nucleo_g071rb) + - name: Examples STM32L0 Series + if: always() + run: | + (cd examples && ../tools/scripts/examples_compile.py nucleo_l031k6) - name: Examples STM32L1 Series if: always() run: | @@ -280,7 +284,7 @@ jobs: uses: actions/checkout@v2 - name: Update submodules and install lbuild run: | - (git submodule sync && git submodule update --init --jobs 8) & pip3 --upgrade --upgrade-strategy=eager modm & wait + (git submodule sync && git submodule update --init --jobs 8) & pip3 install --upgrade --upgrade-strategy=eager modm & wait - name: Test run of docs.modm.io-generator-script if: always() run: | diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index dd9c2a5b10..2ae0053974 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -63,7 +63,7 @@ jobs: - name: Compile STM32 Examples run: | (cd examples && ../tools/scripts/examples_compile.py nucleo_f031k6 nucleo_f103rb nucleo_f303re nucleo_f411re nucleo_f746zg) - (cd examples && ../tools/scripts/examples_compile.py nucleo_g071rb nucleo_l152re nucleo_l476rg nucleo_g474re) + (cd examples && ../tools/scripts/examples_compile.py nucleo_g071rb nucleo_l031k6 nucleo_l152re nucleo_l476rg nucleo_g474re) - name: Compile AVR Examples run: | diff --git a/.github/workflows/windows_armcortexm.yml b/.github/workflows/windows_armcortexm.yml index 593acad1b5..8988fe570d 100644 --- a/.github/workflows/windows_armcortexm.yml +++ b/.github/workflows/windows_armcortexm.yml @@ -56,7 +56,7 @@ jobs: shell: bash run: | (cd examples && python ../tools/scripts/examples_compile.py nucleo_f031k6 nucleo_f103rb nucleo_f303re nucleo_f411re nucleo_f746zg) - (cd examples && python ../tools/scripts/examples_compile.py nucleo_g071rb nucleo_l152re nucleo_l476rg nucleo_g474re) + (cd examples && python ../tools/scripts/examples_compile.py nucleo_g071rb nucleo_l031k6 nucleo_l152re nucleo_l476rg nucleo_g474re) # - name: Compile AVR Examples # shell: bash diff --git a/examples/nucleo_l031k6/blink/main.cpp b/examples/nucleo_l031k6/blink/main.cpp new file mode 100644 index 0000000000..27b5693d5a --- /dev/null +++ b/examples/nucleo_l031k6/blink/main.cpp @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2016-2017, Niklas Hauser + * Copyright (c) 2017, Nick Sarten + * + * This file is part of the modm project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#include + +using namespace Board; + +int +main() +{ + Board::initialize(); + LedD13::setOutput(); + + // Use the logging streams to print some messages. + // Change MODM_LOG_LEVEL above to enable or disable these messages + MODM_LOG_DEBUG << "debug" << modm::endl; + MODM_LOG_INFO << "info" << modm::endl; + MODM_LOG_WARNING << "warning" << modm::endl; + MODM_LOG_ERROR << "error" << modm::endl; + + uint32_t counter(0); + + while (true) + { + LedD13::toggle(); + modm::delay(Button::read() ? 100ms : 500ms); + + MODM_LOG_INFO << "loop: " << counter++ << modm::endl; + } + + return 0; +} diff --git a/examples/nucleo_l031k6/blink/project.xml b/examples/nucleo_l031k6/blink/project.xml new file mode 100644 index 0000000000..b234525d07 --- /dev/null +++ b/examples/nucleo_l031k6/blink/project.xml @@ -0,0 +1,9 @@ + + modm:nucleo-l031k6 + + + + + modm:build:scons + +