2023-04-04 14:34:09 +02:00
|
|
|
#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);
|
|
|
|
}
|
2023-03-31 12:18:42 +02:00
|
|
|
|