diff --git a/examples/platforms/nrf528xx/Makefile.am b/examples/platforms/nrf528xx/Makefile.am index c25142df0..b726c179c 100644 --- a/examples/platforms/nrf528xx/Makefile.am +++ b/examples/platforms/nrf528xx/Makefile.am @@ -45,13 +45,11 @@ endif include $(abs_top_nlbuild_autotools_dir)/automake/pre.am -PRETTY_FILES = \ - src/platform-fem.h \ - src/platform-nrf5.h \ - $(wildcard src/*.c) \ - $(wildcard nrf52811/*.h) \ - $(wildcard nrf52833/*.h) \ - $(wildcard nrf52840/*.h) \ +PRETTY_FILES = \ + src/platform-fem.h \ + src/platform-nrf5.h \ + $(wildcard $(srcdir)/**/*.c) \ + $(wildcard $(srcdir)/**/*.h) \ $(NULL) include $(abs_top_nlbuild_autotools_dir)/automake/post.am diff --git a/examples/platforms/nrf528xx/src/platform-softdevice.h b/examples/platforms/nrf528xx/src/platform-softdevice.h index 21b33b0f2..ba7429f5a 100644 --- a/examples/platforms/nrf528xx/src/platform-softdevice.h +++ b/examples/platforms/nrf528xx/src/platform-softdevice.h @@ -38,21 +38,24 @@ #include /** @brief RAAL Softdevice default parameters. */ -#define PLATFORM_SOFTDEVICE_RAAL_TIMESLOT_DEFAULT_LENGTH 6400 -#define PLATFORM_SOFTDEVICE_RAAL_TIMESLOT_DEFAULT_ALLOC_ITERS 5 -#define PLATFORM_SOFTDEVICE_RAAL_TIMESLOT_DEFAULT_SAFE_MARGIN 126 -#define PLATFORM_SOFTDEVICE_RAAL_TIMESLOT_DEFAULT_TIMEOUT 6400 -#define PLATFORM_SOFTDEVICE_RAAL_TIMESLOT_DEFAULT_MAX_LENGTH 120000000 -#define PLATFORM_SOFTDEVICE_RAAL_DEFAULT_LF_CLK_ACCURACY_PPM 500 +#define PLATFORM_SOFTDEVICE_RAAL_TIMESLOT_DEFAULT_LENGTH 6400 +#define PLATFORM_SOFTDEVICE_RAAL_TIMESLOT_DEFAULT_ALLOC_ITERS 5 +#define PLATFORM_SOFTDEVICE_RAAL_TIMESLOT_DEFAULT_SAFE_MARGIN 126 +#define PLATFORM_SOFTDEVICE_RAAL_TIMESLOT_DEFAULT_TIMEOUT 6400 +#define PLATFORM_SOFTDEVICE_RAAL_TIMESLOT_DEFAULT_MAX_LENGTH 120000000 +#define PLATFORM_SOFTDEVICE_RAAL_DEFAULT_LF_CLK_ACCURACY_PPM 500 /** @brief RAAL Softdevice configuration parameters. */ typedef struct { - uint32_t timeslotLength; /**< Timeslot length requested by the module in microseconds. */ - uint32_t timeslotTimeout; /**< Longest acceptable delay until the start of the requested timeslot in microseconds. */ + uint32_t timeslotLength; /**< Timeslot length requested by the module in microseconds. */ + uint32_t + timeslotTimeout; /**< Longest acceptable delay until the start of the requested timeslot in microseconds. */ uint32_t timeslotMaxLength; /**< Maximum single timeslot length created by extension processing in microseconds. */ - uint16_t timeslotAllocIters; /**< Maximum number of iteration of dividing timeslot_length by factor of 2 performed by arbiter. */ - uint16_t timeslotSafeMargin; /**< Safe margin before timeslot is finished and nrf_raal_timeslot_ended should be called in microseconds. */ + uint16_t timeslotAllocIters; /**< Maximum number of iteration of dividing timeslot_length by factor of 2 performed + by arbiter. */ + uint16_t timeslotSafeMargin; /**< Safe margin before timeslot is finished and nrf_raal_timeslot_ended should be + called in microseconds. */ uint16_t lfClkAccuracyPpm; /**< Clock accuracy in ppm unit. */ } otSysSoftdeviceRaalConfigParams; @@ -68,4 +71,4 @@ void otSysSoftdeviceSocEvtHandler(uint32_t aEvtId); */ void otSysSoftdeviceRaalConfig(const otSysSoftdeviceRaalConfigParams *aConfig); -#endif // PLATFORM_SOFTDEVICE_H_ +#endif // PLATFORM_SOFTDEVICE_H_ diff --git a/examples/platforms/nrf528xx/src/softdevice.h b/examples/platforms/nrf528xx/src/softdevice.h index 343a584e7..234f45c9e 100644 --- a/examples/platforms/nrf528xx/src/softdevice.h +++ b/examples/platforms/nrf528xx/src/softdevice.h @@ -35,6 +35,7 @@ #ifndef SOFTDEVICE_H_ #define SOFTDEVICE_H_ +// clang-format off #if defined(__GNUC__) _Pragma("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Wreturn-type\"") @@ -53,7 +54,7 @@ /******************************************************************************* * @section nRF SoftDevice Handler declarations. - * + * * @note Definitions for below functions are placed in nRF5 SDK. ******************************************************************************/ @@ -77,4 +78,5 @@ void nrf_sdh_resume(void); */ void nrf_sdh_evts_poll(void); -#endif // SOFTDEVICE_H_ +// clang-format on +#endif // SOFTDEVICE_H_