Skip to content

Commit c84915a

Browse files
fortysixandtwoYafeiJin
authored andcommitted
examples: Document UART initialization
1 parent b4901b0 commit c84915a

File tree

3 files changed

+12
-2
lines changed
  • customer_app
    • sdk_app_helloworld/sdk_app_helloworld
    • sdk_app_uart_ctl/sdk_app_uart_ctl
    • sdk_app_uart_echo/sdk_app_uart_echo

3 files changed

+12
-2
lines changed

customer_app/sdk_app_helloworld/sdk_app_helloworld/main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ void user_vApplicationIdleHook(void)
7373

7474
void bfl_main(void)
7575
{
76+
/*
77+
* Init UART using pins 16+7 (TX+RX)
78+
* and baudrate of 2M
79+
*/
7680
bl_uart_init(0, 16, 7, 255, 255, 2 * 1000 * 1000);
7781
helloworld();
7882
}

customer_app/sdk_app_uart_ctl/sdk_app_uart_ctl/main.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,10 @@ void bfl_main()
265265
static StackType_t aos_loop_proc_stack[1024];
266266
static StaticTask_t aos_loop_proc_task;
267267

268-
/*Init UART In the first place*/
268+
/*
269+
* Init UART using pins 16+7 (TX+RX)
270+
* and baudrate of 2M
271+
*/
269272
bl_uart_init(0, 16, 7, 255, 255, 2 * 1000 * 1000);
270273
puts("Starting bl602 now....\r\n");
271274

customer_app/sdk_app_uart_echo/sdk_app_uart_echo/main.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,10 @@ void bfl_main()
262262
static StackType_t aos_loop_proc_stack[1024];
263263
static StaticTask_t aos_loop_proc_task;
264264

265-
/*Init UART In the first place*/
265+
/*
266+
* Init UART using pins 16+7 (TX+RX)
267+
* and baudrate of 2M
268+
*/
266269
bl_uart_init(0, 16, 7, 255, 255, 2 * 1000 * 1000);
267270
puts("Starting bl602 now....\r\n");
268271

0 commit comments

Comments
 (0)