Fix nuttx coding style

Remove TABs
This commit is contained in:
simbit18 2023-08-01 16:50:48 +02:00 committed by Xiang Xiao
parent 4b0a3d92ff
commit 85988dc77f
9 changed files with 21 additions and 23 deletions

View File

@ -37,7 +37,7 @@
/* Service UUIDs used on the nRF8001 and nRF51822 platforms */ /* Service UUIDs used on the nRF8001 and nRF51822 platforms */
#define NRF_TEMPERATURE_SERVICE_UUID 0x1809 #define NRF_TEMPERATURE_SERVICE_UUID 0x1809
#define NRF_ENVIRONMENTAL_SERVICE_UUID 0x181A #define NRF_ENVIRONMENTAL_SERVICE_UUID 0x181A
/**************************************************************************** /****************************************************************************
@ -56,7 +56,7 @@ struct nrf_service_data
struct btle_adv_pdu struct btle_adv_pdu
{ {
/* PDU type, most of it 0x42 */ /* PDU type, most of it 0x42 */
uint8_t pdu_type; uint8_t pdu_type;
@ -96,4 +96,4 @@ int nrf24_open(void);
int nrf24_send(int wl_fd, uint8_t * buf, uint8_t len); int nrf24_send(int wl_fd, uint8_t * buf, uint8_t len);
#endif /* __APPS_EXAMPLES_NRF24L01_BTLE_NRF24L01_BTLE_H */ #endif /* __APPS_EXAMPLES_NRF24L01_BTLE_NRF24L01_BTLE_H */

View File

@ -99,4 +99,4 @@ int parse_mml(FAR struct music_macro_lang_s *mml,
} }
#endif #endif
#endif /* __APPS_INCLUDE_AUDIOUTILS_MML_PARSER_MML_PARSER_H */ #endif /* __APPS_INCLUDE_AUDIOUTILS_MML_PARSER_MML_PARSER_H */

View File

@ -102,7 +102,7 @@
* the name resolution in a blocking manner. * the name resolution in a blocking manner.
*/ */
#define WEBCLIENT_FLAG_NON_BLOCKING 1U #define WEBCLIENT_FLAG_NON_BLOCKING 1U
/* WEBCLIENT_FLAG_TUNNEL: Establish a tunnel /* WEBCLIENT_FLAG_TUNNEL: Establish a tunnel
* *
@ -118,14 +118,14 @@
* webclient_conn_s from the context. It's users' responsibility * webclient_conn_s from the context. It's users' responsibility
* to dispose the connection. * to dispose the connection.
*/ */
#define WEBCLIENT_FLAG_TUNNEL 2U #define WEBCLIENT_FLAG_TUNNEL 2U
/* The following WEBCLIENT_FLAG_xxx constants are for /* The following WEBCLIENT_FLAG_xxx constants are for
* webclient_poll_info::flags. * webclient_poll_info::flags.
*/ */
#define WEBCLIENT_POLL_INFO_WANT_READ 1U #define WEBCLIENT_POLL_INFO_WANT_READ 1U
#define WEBCLIENT_POLL_INFO_WANT_WRITE 2U #define WEBCLIENT_POLL_INFO_WANT_WRITE 2U
/**************************************************************************** /****************************************************************************
* Public types * Public types

View File

@ -35,7 +35,7 @@
* Pre-processor Definitions * Pre-processor Definitions
****************************************************************************/ ****************************************************************************/
#define SIGN(x) ((x > 0) ? b16ONE : -b16ONE) #define SIGN(x) ((x > 0) ? b16ONE : -b16ONE)
#define LINEAR_MAP(x, in_min, in_max, out_min, out_max) \ #define LINEAR_MAP(x, in_min, in_max, out_min, out_max) \
(b16divb16(b16mulb16((x - in_min), (out_max - out_min)), \ (b16divb16(b16mulb16((x - in_min), (out_max - out_min)), \

View File

@ -35,7 +35,7 @@
* Pre-processor Definitions * Pre-processor Definitions
****************************************************************************/ ****************************************************************************/
#define SIGN(x) ((x > 0.0f) ? 1.0f : -1.0f) #define SIGN(x) ((x > 0.0f) ? 1.0f : -1.0f)
#define LINEAR_MAP(x, in_min, in_max, out_min, out_max) \ #define LINEAR_MAP(x, in_min, in_max, out_min, out_max) \
((x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min) ((x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min)
@ -280,9 +280,7 @@ static int foc_angle_onfo_run_f32(FAR foc_angle_f32_t *h,
DEBUGASSERT(h->data); DEBUGASSERT(h->data);
ob = h->data; ob = h->data;
/* Normalize the d-q voltage to get the d-q modulation /* Normalize the d-q voltage to get the d-q modulation voltage */
* voltage
*/
v_dq_mod.d = in->state->vdq.d * in->state->mod_scale; v_dq_mod.d = in->state->vdq.d * in->state->mod_scale;
v_dq_mod.q = in->state->vdq.q * in->state->mod_scale; v_dq_mod.q = in->state->vdq.q * in->state->mod_scale;

View File

@ -71,4 +71,4 @@ void container_free_all(FAR struct alt_container_s *head);
FAR struct alt_container_s * FAR struct alt_container_s *
container_pick_listtop(FAR struct alt_container_s **head); container_pick_listtop(FAR struct alt_container_s **head);
#endif /* __APPS_LTE_ALT1250_ALT1250_CONTAINER_H */ #endif /* __APPS_LTE_ALT1250_ALT1250_CONTAINER_H */

View File

@ -46,4 +46,4 @@ struct postproc_s
unsigned long priv; unsigned long priv;
}; };
#endif /* __APPS_LTE_ALT1250_ALT1250_POSTPROC_H */ #endif /* __APPS_LTE_ALT1250_ALT1250_POSTPROC_H */

View File

@ -133,11 +133,11 @@
#define CONN_WANT_WRITE WEBCLIENT_POLL_INFO_WANT_WRITE #define CONN_WANT_WRITE WEBCLIENT_POLL_INFO_WANT_WRITE
#ifdef CONFIG_DEBUG_ASSERTIONS #ifdef CONFIG_DEBUG_ASSERTIONS
#define _CHECK_STATE(ctx, s) DEBUGASSERT((ctx)->state == (s)) #define _CHECK_STATE(ctx, s) DEBUGASSERT((ctx)->state == (s))
#define _SET_STATE(ctx, s) ctx->state = (s) #define _SET_STATE(ctx, s) ctx->state = (s)
#else #else
#define _CHECK_STATE(ctx, s) do {} while (0) #define _CHECK_STATE(ctx, s) do {} while (0)
#define _SET_STATE(ctx, s) do {} while (0) #define _SET_STATE(ctx, s) do {} while (0)
#endif #endif
/**************************************************************************** /****************************************************************************
@ -166,9 +166,9 @@ enum webclient_state_e
/* flags for wget_s::internal_flags */ /* flags for wget_s::internal_flags */
#define WGET_FLAG_GOT_CONTENT_LENGTH 1U #define WGET_FLAG_GOT_CONTENT_LENGTH 1U
#define WGET_FLAG_CHUNKED 2U #define WGET_FLAG_CHUNKED 2U
#define WGET_FLAG_GOT_LOCATION 4U #define WGET_FLAG_GOT_LOCATION 4U
struct wget_target_s struct wget_target_s
{ {

View File

@ -42,7 +42,7 @@
/* "-", uint64_t, ".", 9 digits fraction part, NUL */ /* "-", uint64_t, ".", 9 digits fraction part, NUL */
#define NTP_TIME_STR_MAX_LEN (1 + 21 + 1 + 9 + 1) #define NTP_TIME_STR_MAX_LEN (1 + 21 + 1 + 9 + 1)
static void static void
format_ntptimestamp(int64_t ts, FAR char *buf, size_t len) format_ntptimestamp(int64_t ts, FAR char *buf, size_t len)