[app][mdebug] support faster SWO rates, default to 6Mbps

This commit is contained in:
Brian Swetland
2015-08-05 14:57:43 -07:00
parent f2e8f9c261
commit 90a3e98154
2 changed files with 6 additions and 2 deletions

View File

@@ -141,7 +141,7 @@ static void mdebug_entry(const struct app_descriptor *app, void *args)
{
udc_start();
swo_init(txept);
swo_config(1000000);
swo_config(6000000);
for (;;) {
if (!online) {

View File

@@ -130,7 +130,11 @@ void swo_config(unsigned mhz) {
}
unsigned swo_set_clock(unsigned khz) {
if (khz >= 6000) {
if (khz >= 12000) {
khz = 12000;
} else if (khz >= 8000) {
khz = 8000;
} else if (khz >= 6000) {
khz = 6000;
} else if (khz >= 4000) {
khz = 4000;