17 lines
365 B
C
17 lines
365 B
C
|
|
#include "by_tiny_frame.h"
|
||
|
|
|
||
|
|
#include <stdio.h>
|
||
|
|
#include <stdint.h>
|
||
|
|
|
||
|
|
#include "by_tiny_frame_parse.h"
|
||
|
|
#include "crc16.h"
|
||
|
|
#include "zf_common_headfile.h"
|
||
|
|
|
||
|
|
void by_tiny_frame_init(void)
|
||
|
|
{
|
||
|
|
uart_init(BY_TF_UART_INDEX, BY_TF_UART_BAUDRATE, BY_TF_UART_TX_PIN, BY_TF_UART_RX_PIN);
|
||
|
|
uart_rx_interrupt(BY_TF_UART_INDEX, ENABLE);
|
||
|
|
|
||
|
|
by_tiny_frame_parse_init();
|
||
|
|
}
|