fix usart irq handler not in safe area

This commit is contained in:
acevest
2020-01-09 23:04:28 +08:00
parent bce32faac2
commit a6cd872df1
6 changed files with 45 additions and 36 deletions

View File

@@ -4,6 +4,13 @@
#define USE_ESP8266
static hal_uart_port_t esp8266_port = HAL_UART_PORT_0;
void mqtt_set_esp8266_port(hal_uart_port_t port) {
esp8266_port = port;
}
void mqtt_demo(void)
{
int count = 1;
@@ -35,8 +42,8 @@ void mqtt_demo(void)
sub_opt.topic = MQTT_SUBSCRIBE_TOPIC;
#ifdef USE_ESP8266
esp8266_sal_init(HAL_UART_PORT_1);
esp8266_join_ap("AceiPhone", "12345678");
esp8266_sal_init(esp8266_port);
esp8266_join_ap("SheldonDai", "srnr6x9xbhmb0");
#endif
#ifdef USE_NB_BC35