Skip to content

Commit

Permalink
Remove mbed files (qmk#7605)
Browse files Browse the repository at this point in the history
* Remove mbed files

* Remove mbed files - fix comment

* Remove mbed logic blocks
  • Loading branch information
zvecr authored and fdidron committed Jan 8, 2020
1 parent 1378e0d commit 20f465b
Show file tree
Hide file tree
Showing 13 changed files with 1 addition and 499 deletions.
1 change: 0 additions & 1 deletion doxygen-todo
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ tmk_core/protocol/bluefruit
tmk_core/protocol/chibios
tmk_core/protocol/iwrap
tmk_core/protocol/lufa
tmk_core/protocol/mbed
tmk_core/protocol/midi
tmk_core/protocol/midi/bytequeue
tmk_core/protocol/midi/Config
Expand Down
3 changes: 0 additions & 3 deletions tmk_core/common/mbed/bootloader.c

This file was deleted.

5 changes: 0 additions & 5 deletions tmk_core/common/mbed/suspend.c

This file was deleted.

23 changes: 0 additions & 23 deletions tmk_core/common/mbed/timer.c

This file was deleted.

50 changes: 0 additions & 50 deletions tmk_core/common/mbed/xprintf.cpp

This file was deleted.

16 changes: 0 additions & 16 deletions tmk_core/common/mbed/xprintf.h

This file was deleted.

33 changes: 1 addition & 32 deletions tmk_core/common/print.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,38 +128,7 @@ extern "C"

# endif /* USER_PRINT / NORMAL PRINT */

# elif defined(__arm__) /* __arm__ */

# include "mbed/xprintf.h"

# ifdef USER_PRINT /* USER_PRINT */

// Remove normal print defines
# define print(s)
# define println(s)
# define xprintf(fmt, ...)

// Create user print defines
# define uprintf(fmt, ...) __xprintf(fmt, ##__VA_ARGS__)
# define uprint(s) xprintf(s)
# define uprintln(s) xprintf(s "\r\n")

# else /* NORMAL PRINT */

// Create user & normal print defines
# define xprintf(fmt, ...) __xprintf(fmt, ##__VA_ARGS__)
# define print(s) xprintf(s)
# define println(s) xprintf(s "\r\n")
# define uprint(s) print(s)
# define uprintln(s) println(s)
# define uprintf(fmt, ...) xprintf(fmt, ##__VA_ARGS__)

# endif /* USER_PRINT / NORMAL PRINT */

/* TODO: to select output destinations: UART/USBSerial */
# define print_set_sendchar(func)

# endif /* __AVR__ / PROTOCOL_CHIBIOS / PROTOCOL_ARM_ATSAM / __arm__ */
# endif /* __AVR__ / PROTOCOL_CHIBIOS / PROTOCOL_ARM_ATSAM */

// User print disables the normal print messages in the body of QMK/TMK code and
// is meant as a lightweight alternative to NOPRINT. Use it when you only want to do
Expand Down
2 changes: 0 additions & 2 deletions tmk_core/common/wait.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ extern "C" {
# include "clks.h"
# define wait_ms(ms) CLK_delay_ms(ms)
# define wait_us(us) CLK_delay_us(us)
#elif defined(__arm__)
# include "wait_api.h"
#else // Unit tests
void wait_ms(uint32_t ms);
# define wait_us(us) wait_ms(us / 1000)
Expand Down
Loading

0 comments on commit 20f465b

Please sign in to comment.