add pm25 LoRaWAN project
add pm25 LoRaWAN project
This commit is contained in:
@@ -25,7 +25,6 @@
|
||||
#include "main.h"
|
||||
#include "stm32wlxx_it.h"
|
||||
#include "tos_k.h"
|
||||
#include "sensor_parser.h"
|
||||
/* Private includes ----------------------------------------------------------*/
|
||||
/* USER CODE BEGIN Includes */
|
||||
/* USER CODE END Includes */
|
||||
@@ -234,22 +233,10 @@ void USART2_IRQHandler(void)
|
||||
/* USER CODE END LPUART1_IRQn 1 */
|
||||
}
|
||||
|
||||
void Radio_IRQHandler(void)
|
||||
{
|
||||
HAL_SUBGHZ_IRQHandler(&hsubghz);
|
||||
}
|
||||
|
||||
/* USER CODE BEGIN 1 */
|
||||
void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
|
||||
{
|
||||
extern uint8_t msg;
|
||||
|
||||
if(huart ->Instance == USART2)
|
||||
{
|
||||
tos_shell_input_byte(msg);
|
||||
HAL_UART_Receive_IT(&huart2, (uint8_t*)&msg, 1);
|
||||
|
||||
}
|
||||
}
|
||||
/* USER CODE END 1 */
|
||||
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|
||||
|
Reference in New Issue
Block a user