Forums - Where is main??

2 posts / 0 new
Last post
Where is main??
gdutka
Join Date: 21 Jun 19
Posts: 7
Posted: Tue, 2019-07-02 14:18

Hello All, 

 I have a question about developing in the QCA4020 SDK. I can run demos at the moment however I'm curious about the best aproach to make my own application, possibly using some of the provided demos. For instance, The QCLI_demo has more than everything I could need like Uart, BLE, WIFI, and SDIO. When looking through some of the source code provided in the demo however it seems that theres no main() function. What is the first function which executes every application? I have tried to go through the programmers manual with not much luck to find an answer to my question. 

 

Regards, 

 Gian

  • Up0
  • Down0
c_rpedad
Profile picture
Join Date: 18 Jun 18
Location: San Jose
Posts: 317
Posted: Tue, 2019-07-02 14:59

Kindly refer to app_init() in QCLI_demo\src\qcli\pal.c 

/**
   @brief Function call to initialize the application.
*/
void app_init(qbool_t ColdBoot)
  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.