mirror of
https://github.com/espressif/openthread.git
synced 2026-08-11 13:17:48 +00:00
[nrf528xx] support pretty out of source directory (#4505)
This commit enhances the Makefile.am of nrf528xx to support make pretty out of the source directory.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -38,21 +38,24 @@
|
||||
#include <stdint.h>
|
||||
|
||||
/** @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_
|
||||
|
||||
@@ -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_
|
||||
|
||||
Reference in New Issue
Block a user