18 lines
327 B
C
18 lines
327 B
C
#include "remote.h"
|
|
#include "../driver/gpio.h"
|
|
|
|
MyUART_Struct_Typedef uartCool = {USART1,9600,lengthBit8,parityNone,stopBit1};
|
|
|
|
void remote(uint16_t data)
|
|
{
|
|
//MyGPIO_Set(GPIOA,5);
|
|
MyUART_Send(&uartCool,data);
|
|
}
|
|
|
|
void initRemote(void)
|
|
{
|
|
MyUART_InitGPIO(&uartCool);
|
|
MyUART_Init(&uartCool);
|
|
MyUART_Init_Periph(remote);
|
|
}
|
|
|