Update to latest libopencm3

And fix traceswo to match api change upstream.
This commit is contained in:
Karl Palsson
2013-12-16 20:24:41 +00:00
parent d9536caeaa
commit 100434b12d
2 changed files with 3 additions and 6 deletions

View File

@@ -42,9 +42,6 @@ static void trace_setup(void)
TPIU_SPPR = TPIU_SPPR_ASYNC_MANCHESTER; TPIU_SPPR = TPIU_SPPR_ASYNC_MANCHESTER;
TPIU_ACPR = 7; TPIU_ACPR = 7;
/* Data width is 1 byte. */
TPIU_CSPSR = TPIU_CSPSR_BYTE;
/* Formatter and flush control. */ /* Formatter and flush control. */
TPIU_FFCR &= ~TPIU_FFCR_ENFCONT; TPIU_FFCR &= ~TPIU_FFCR_ENFCONT;
@@ -70,10 +67,10 @@ static void gpio_setup(void)
static void trace_send_blocking(char c) static void trace_send_blocking(char c)
{ {
while (!(ITM_STIM[0] & ITM_STIM_FIFOREADY)) while (!(ITM_STIM8(0) & ITM_STIM_FIFOREADY))
; ;
ITM_STIM[0] = c; ITM_STIM8(0) = c;
} }
int main(void) int main(void)