UART init question

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

In the example for UART init from the H/W Interfaces page 15 does all that setup need to be performed

Before or after the “bleapp_set_cfg” call in the APPLICATION_INIT ?

0 Likes
1 Solution
asridharan
Employee
Employee
10 comments on KBA 5 comments on KBA First comment on KBA

APPLICATION_INIT() should have only one call in it - a call to bleapp_set_cfg(). You may optionally initialize other globals here. UART init or any other HW initialization should be done in the application create function (the last argument you use in the call to bleapp_set_cfg).

View solution in original post

0 Likes
1 Reply
asridharan
Employee
Employee
10 comments on KBA 5 comments on KBA First comment on KBA

APPLICATION_INIT() should have only one call in it - a call to bleapp_set_cfg(). You may optionally initialize other globals here. UART init or any other HW initialization should be done in the application create function (the last argument you use in the call to bleapp_set_cfg).

0 Likes