diff --git a/.circleci/config.yml b/.circleci/config.yml index 63154ae0e4..a79e95651f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -96,7 +96,7 @@ jobs: name: Examples STM32F3 Series when: always command: | - (cd examples && ../tools/scripts/examples_compile.py stm32f3_discovery nucleo_f303k8 nucleo_f303re) + (cd examples && ../tools/scripts/examples_compile.py stm32f3_discovery nucleo_f303k8 nucleo_f303re nucleo_f334r8) - run: name: Examples STM32F7 Series when: always diff --git a/examples/nucleo_f334r8/blink/main.cpp b/examples/nucleo_f334r8/blink/main.cpp new file mode 100644 index 0000000000..57453d9948 --- /dev/null +++ b/examples/nucleo_f334r8/blink/main.cpp @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2020, Raphael Lehmann + * + * 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_ms(Button::read() ? 100 : 500); + + MODM_LOG_INFO << "loop: " << counter++ << modm::endl; + } + + return 0; +} diff --git a/examples/nucleo_f334r8/blink/project.xml b/examples/nucleo_f334r8/blink/project.xml new file mode 100644 index 0000000000..a0c57d491d --- /dev/null +++ b/examples/nucleo_f334r8/blink/project.xml @@ -0,0 +1,9 @@ + + modm:nucleo-f334r8 + + + + + modm:build:scons + +