mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
tests/periph_uart_int: warning fixes
This commit is contained in:
parent
50076376fc
commit
e3b41a327e
@ -28,6 +28,8 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <inttypes.h>
|
||||||
|
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
#include "msg.h"
|
#include "msg.h"
|
||||||
@ -85,7 +87,7 @@ void *uart_thread(void *arg)
|
|||||||
ringbuffer_add(&tx_buf, status, strlen(status));
|
ringbuffer_add(&tx_buf, status, strlen(status));
|
||||||
uart_tx_begin(DEV);
|
uart_tx_begin(DEV);
|
||||||
|
|
||||||
vtimer_usleep(2000 * 1000);
|
vtimer_usleep(2000ul * 1000ul);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
@ -101,7 +103,7 @@ int main(void)
|
|||||||
ringbuffer_init(&rx_buf, rx_mem, 128);
|
ringbuffer_init(&rx_buf, rx_mem, 128);
|
||||||
ringbuffer_init(&tx_buf, tx_mem, 128);
|
ringbuffer_init(&tx_buf, tx_mem, 128);
|
||||||
|
|
||||||
printf("Initializing UART @ %i", BAUD);
|
printf("Initializing UART @ %" PRIu32, (uint32_t)BAUD);
|
||||||
if (uart_init(DEV, BAUD, rx, tx, 0) >= 0) {
|
if (uart_init(DEV, BAUD, rx, tx, 0) >= 0) {
|
||||||
puts(" ...done");
|
puts(" ...done");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user