mirror of
https://github.com/yoboujon/dumber.git
synced 2025-06-09 14:20:50 +02:00
19 lines
387 B
C
19 lines
387 B
C
#include "serviceCom.h"
|
|
#include "usart.h"
|
|
|
|
|
|
// pour test seulement
|
|
#include "xbee.h"
|
|
osSemaphoreId synchroMesHandle;
|
|
|
|
char RxBuffer[TRAME_SIZE_RECEIPT];
|
|
|
|
void comInit(){
|
|
HAL_UART_Receive_DMA(&huart1,(uint8_t*)RxBuffer,TRAME_SIZE_RECEIPT);
|
|
}
|
|
|
|
void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart){
|
|
//xbeeSend(0x10,"OKL");
|
|
osSemaphoreRelease(synchroMesHandle);
|
|
}
|
|
|