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 drashna committed Dec 11, 2019
1 parent 770a4ee commit 071eb24
Show file tree
Hide file tree
Showing 16 changed files with 1 addition and 524 deletions.
8 changes: 0 additions & 8 deletions docs/faq_build.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,6 @@ You can buy a really unique VID:PID here. I don't think you need this for person
- http://www.obdev.at/products/vusb/license.html
- http://www.mcselec.com/index.php?page=shop.product_details&flypage=shop.flypage&product_id=92&option=com_phpshop&Itemid=1

## Cortex: `cstddef: No such file or directory`
GCC 4.8 of Ubuntu 14.04 had this problem and had to update to 4.9 with this PPA.
https://launchpad.net/~terry.guo/+archive/ubuntu/gcc-arm-embedded

https://github.com/tmk/tmk_keyboard/issues/212
https://github.com/tmk/tmk_keyboard/wiki/mbed-cortex-porting#compile-error-cstddef
https://developer.mbed.org/forum/mbed/topic/5205/

## BOOTLOADER_SIZE for AVR
Note that Teensy2.0++ bootloader size is 2048byte. Some Makefiles may have wrong comment.

Expand Down
9 changes: 0 additions & 9 deletions docs/fr-fr/faq_build.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,6 @@ Vous pouvez acheter un VID:PID unique ici. Je ne pense pas que ce soit nécessai
- http://www.obdev.at/products/vusb/license.html
- http://www.mcselec.com/index.php?page=shop.product_details&flypage=shop.flypage&product_id=92&option=com_phpshop&Itemid=1

## Cortex: `cstddef: No such file or directory`

Ce problème existait avec le GCC 4.8 d'Ubuntu 14.04, la solution a nécessité de mettre à jour vers 4.9 avec ce PPA.
https://launchpad.net/~terry.guo/+archive/ubuntu/gcc-arm-embedded

https://github.com/tmk/tmk_keyboard/issues/212
https://github.com/tmk/tmk_keyboard/wiki/mbed-cortex-porting#compile-error-cstddef
https://developer.mbed.org/forum/mbed/topic/5205/

## BOOTLOADER_SIZE pour AVR

Notez que la taille du bootloader pour les Teensy2.0++ est de 2048bytes. Quelques Makefiles peuvent contenir une erreur et avoir le mauvais commentaire.
Expand Down
8 changes: 0 additions & 8 deletions docs/zh-cn/faq_build.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,6 @@ https://github.com/tmk/tmk_keyboard/issues/150
- http://www.obdev.at/products/vusb/license.html
- http://www.mcselec.com/index.php?page=shop.product_details&flypage=shop.flypage&product_id=92&option=com_phpshop&Itemid=1

## Cortex: `cstddef: No such file or directory`
在Ubuntu 14.04上的GCC 4.8 会出现这种问题需要用这个PPA升级到4.9。
https://launchpad.net/~terry.guo/+archive/ubuntu/gcc-arm-embedded

https://github.com/tmk/tmk_keyboard/issues/212
https://github.com/tmk/tmk_keyboard/wiki/mbed-cortex-porting#compile-error-cstddef
https://developer.mbed.org/forum/mbed/topic/5205/

## AVR的BOOTLOADER_SIZE
注意Teensy2.0++ bootloader的大小是2048字节。有些Makefile注释错了。

Expand Down
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 071eb24

Please sign in to comment.