style: Fix coding style violations in nuttx-apps

Fix various coding style issues including:
- Case statement formatting
- Include placement and ordering
- Whitespace issues
- Long line formatting
- Bracket alignment

Affected modules:
- audioutils, examples, include
- netutils, system

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
Huang Qi 2026-01-10 17:25:13 +08:00 committed by Xiang Xiao
parent 63f61d080a
commit 4e8a0ae4c4
15 changed files with 64 additions and 38 deletions

View file

@ -96,13 +96,13 @@ int obd_send_request(FAR struct obd_dev_s *dev, uint8_t opmode, uint8_t pid);
* Wait for a message from ECUs with requested PID that was sent using
* obd_send_request().
*
* It will return an error case it doesn't receive the msg after the elapsed
* "timeout" time.
* It will return an error case it doesn't receive the msg after the
* elapsed "timeout" time.
*
****************************************************************************/
int obd_wait_response(FAR struct obd_dev_s *dev, uint8_t opmode, uint8_t pid,
int timeout);
int obd_wait_response(FAR struct obd_dev_s *dev, uint8_t opmode,
uint8_t pid, int timeout);
/****************************************************************************
* Name: obd_decode_pid
@ -116,4 +116,4 @@ int obd_wait_response(FAR struct obd_dev_s *dev, uint8_t opmode, uint8_t pid,
FAR char *obd_decode_pid(FAR struct obd_dev_s *dev, uint8_t pid);
#endif /*__APPS_INCLUDE_CANUTILS_OBD_H */
#endif /* __APPS_INCLUDE_CANUTILS_OBD_H */

View file

@ -104,7 +104,8 @@ uint8_t abnt_codi_checksum(FAR const uint8_t *data);
/* Parse a specific ABNT CODI sequence. */
bool abnt_codi_parse(FAR const uint8_t *data, FAR struct abnt_codi_proto_s *proto);
bool abnt_codi_parse(FAR const uint8_t *data,
FAR struct abnt_codi_proto_s *proto);
#ifdef __cplusplus
}