xiaoxiang781216 commented on code in PR #3120: URL: https://github.com/apache/nuttx-apps/pull/3120#discussion_r2224140753
########## examples/xedge_demo/xedge_main.c: ########## @@ -0,0 +1,278 @@ +/*************************************************************************** + * apps/examples/xedge_demo/xedge_main.c + * + * Copyright (C) 2025. All rights reserved. + * Author: Real Time Logic + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * This product includes software developed by Adam Dunkels. + * 4. The name of the author may not be used to endorse or promote + * products derived from this software without specific prior + * written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS + * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + ***************************************************************************/ + +/* Xedge NuttX Startup Code (may need adjustments) + * + * Additional License Note: Xedge, based on the Barracuda + * App Server, uses the license options explained here: + * https://github.com/RealTimeLogic/BAS#license + * This repo does not include Xedge and the Barracuda App Server + * library and must be downloaded separately. The dependencies + * are automatically downloaded in apps/netutils/xedge/. + */ + +/*************************************************************************** + * Included Files + ***************************************************************************/ + +#include <nuttx/config.h> +#include <stdio.h> +#include <stdlib.h> +#include <signal.h> +#include <syslog.h> +#include <pthread.h> +#include <netutils/ntpclient.h> +#include <HttpTrace.h> +#include <BaDiskIo.h> +#include <BaServerLib.h> +#include "../../netutils/xedge/BAS/examples/xedge/src/xedge.h" + +/*************************************************************************** + * Pre-processor Definitions + ***************************************************************************/ + +/* The following is a horrible hack to make the code pass the NuttX + * checkpatch.sh tool. The Barracuda App Server uses a type of + * camelCase encoding as explained here: + * https://realtimelogic.com/ba/doc/en/C/introduction.html#oo_c + */ + +#define ltmgr ltMgr Review Comment: The application is still compiled, but nxstyle will report the "Mixed Case" warning, but it isn't a fatal error since the 3rd party library may use the camel case coding style. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org