Skip to content

Commit

Permalink
fixed typo and port of softuart
Browse files Browse the repository at this point in the history
  • Loading branch information
plieningerweb committed Apr 30, 2015
1 parent 74ee970 commit 8e6b54d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.swp
*.swo
firmware/*
build/*
Binary file removed user/.user_main.c.swo
Binary file not shown.
8 changes: 3 additions & 5 deletions user/user_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ static void ICACHE_FLASH_ATTR loop(os_event_t *events)
}

//write example output to softuart 2
Softuart_Puts(&softuart,"2");
Softuart_Puts(&softuart2,"2");

//some delay until we run this task again
os_delay_us(100000);
Expand All @@ -57,7 +57,6 @@ void ICACHE_FLASH_ATTR user_init()
uart_div_modify(0, UART_CLK_FREQ / 9600);

//init software uart
//set pin for rx
Softuart_SetPinRx(&softuart,14);
Softuart_SetPinTx(&softuart,12);

Expand All @@ -66,9 +65,8 @@ void ICACHE_FLASH_ATTR user_init()

//second uart
//init software uart
//set pin for rx
Softuart_SetPinRx(&softuart2,5);
Softuart_SetPinTx(&softuart2,4);
Softuart_SetPinRx(&softuart2,4);
Softuart_SetPinTx(&softuart2,5);

//startup
Softuart_Init(&softuart2,9600);
Expand Down

0 comments on commit 8e6b54d

Please sign in to comment.