34 #include "stm32l1xx_nucleo.h"
38 #include "hw-config.h"
39 #include "stm32l1xx_hal.h"
42 void uart_send_msg(
char *);
43 extern st_lib_uart_handle_typedef st_lib_uart_handle;
45 static unsigned char databyte[1] = { 0 };
54 st_lib_hal_uart_rx_cplt_callback(st_lib_uart_handle_typedef *huart)
57 st_lib_hal_uart_receive_it(&st_lib_uart_handle, databyte, 1);
61 uart1_set_input(
int (*
input)(
unsigned char c))
63 st_lib_hal_uart_receive_it(&st_lib_uart_handle, databyte, 1);
69 st_lib_hal_uart_enable_it(&st_lib_uart_handle, UART_IT_RXNE);
86 uart_send_msg(
char *msg)
88 st_lib_hal_uart_transmit(&st_lib_uart_handle, (uint8_t *)msg, 1, 5000);
Header file for the STM32Cube HAL APIs.
static void input(void)
Process a received 6lowpan packet.
void slip_arch_writeb(unsigned char c)
Copyright (c) 2014, Analog Devices, Inc.
int slip_input_byte(unsigned char c)
Input a SLIP byte.
Header file for the stm32nucleo-spirit1 platform configuration.
void slip_arch_init(unsigned long ubr)
Initalize the RS232 port and the SLIP driver.