Skip to content

Commit

Permalink
[ext] Add mpaland/printf submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
salkinium committed Apr 28, 2019
1 parent 66f752c commit 94c3e31
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@
[submodule "ext/gcc/libstdc++"]
path = ext/gcc/libstdc++
url = https://github.com/modm-io/avr-libstdcpp.git
[submodule "ext/mpaland/printf"]
path = ext/mpaland/printf
url = https://github.com/modm-ext/printf.git
1 change: 1 addition & 0 deletions ext/mpaland/printf
Submodule printf added at 77e68c
26 changes: 26 additions & 0 deletions ext/mpaland/printf.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* Copyright (c) 2019, Niklas Hauser
*
* 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/.
*/
// ----------------------------------------------------------------------------

#pragma once

// empty include header for printf.c
#include <stdarg.h>
#include <stddef.h>

#ifdef __cplusplus
extern "C" {
#endif

void _putchar(char character);

#ifdef __cplusplus
}
#endif

0 comments on commit 94c3e31

Please sign in to comment.