support avr architecture based on ATMega32
1. IAR project, see TencentOS-tiny\board\ATMega32\IAR, both 4.12 and 7.20 is supplied.
This commit is contained in:
20
board/ATMega32/BSP/src/hal_uart.c
Normal file
20
board/ATMega32/BSP/src/hal_uart.c
Normal file
@@ -0,0 +1,20 @@
|
||||
#if 0
|
||||
|
||||
#include "tos_hal.h"
|
||||
|
||||
int tos_hal_uart_init(hal_uart_t *uart, hal_uart_port_t port)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
int tos_hal_uart_write(hal_uart_t *uart, const uint8_t *buf, size_t size, uint32_t timeout)
|
||||
{
|
||||
int i = 0;
|
||||
|
||||
for (i = 0; i < size; ++i) {
|
||||
uart_send_byte(buf[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user