Skip to content

Commit

Permalink
fixup! Added support for Nucleo F042K6
Browse files Browse the repository at this point in the history
  • Loading branch information
salkinium committed Jul 28, 2018
1 parent fa8a033 commit d7a706f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
- run:
name: Examples STM32F0 Series
command: |
(cd examples && ../tools/scripts/examples_compile.py stm32f0_discovery stm32f072_discovery nucleo_f031k6 stm32f030f4p6_demo_board)
(cd examples && ../tools/scripts/examples_compile.py stm32f0_discovery stm32f072_discovery nucleo_f031k6 nucleo_f042k6 stm32f030f4p6_demo_board)
- run:
name: Examples STM32F1 Series
command: |
Expand Down
3 changes: 0 additions & 3 deletions examples/nucleo_f042k6/blink/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,8 @@ 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;
Expand Down
2 changes: 0 additions & 2 deletions src/modm/board/nucleo_f042k6/board.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@
<options>
<option name=":target">stm32f042k6t</option>
<option name=":platform:uart:2:buffer.tx">256</option>
<option name=":platform:uart:1:buffer.tx">256</option>
<option name=":platform:core:main_stack_size">992</option>
<option name=":platform:core:allocator">block</option>
</options>
<modules>
<module>modm:board:nucleo-f042k6</module>
<module>modm:platform:uart:2</module>
</modules>
</library>
4 changes: 2 additions & 2 deletions src/modm/board/nucleo_f042k6/module.lb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ def prepare(module, options):
if options[":target"].partname != "stm32f042k6t":
return False

module.depends(":platform:core", ":platform:gpio", ":platform:clock", ":platform:uart:1",
":platform:uart:2", ":debug", ":architecture:clock", ":architecture:clock")
module.depends(":platform:core", ":platform:gpio", ":platform:clock", ":platform:uart:2",
":debug", ":architecture:clock", ":architecture:clock")
return True

def build(env):
Expand Down

0 comments on commit d7a706f

Please sign in to comment.