File tree Expand file tree Collapse file tree 4 files changed +16
-4
lines changed
gecko_sdk_extensions/nc_efr32_watchdog_extension Expand file tree Collapse file tree 4 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 19
19
#include "em_cmu.h"
20
20
#include "em_wdog.h"
21
21
#include "em_rmu.h"
22
- #include "sli_cpc_timer.h"
23
22
#include "sl_component_catalog.h"
24
23
25
24
void nc_enable_watchdog (void );
26
- void nc_periodic_timer ( sli_cpc_timer_handle_t * handle , void * data );
25
+ void nc_poke_watchdog ( void );
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ void nc_enable_watchdog(void)
83
83
}
84
84
85
85
86
- void nc_poke_watchdog ()
86
+ void nc_poke_watchdog (void )
87
87
{
88
88
CORE_DECLARE_IRQ_STATE ;
89
89
CORE_ENTER_ATOMIC ();
Original file line number Diff line number Diff line change 21
21
#include <openthread/ncp.h>
22
22
#include <openthread/diag.h>
23
23
#include <openthread/tasklet.h>
24
+ #include <openthread/logging.h>
24
25
25
26
#include "openthread-system.h"
26
27
#include "app.h"
Original file line number Diff line number Diff line change @@ -549,6 +549,18 @@ def main():
549
549
LOGGER .error ("Defines were unused, aborting: %s" , unused_defines )
550
550
sys .exit (1 )
551
551
552
+ # Fix Gecko SDK bugs
553
+ sl_rail_util_pti_config_h = args .build_dir / "config/sl_rail_util_pti_config.h"
554
+
555
+ # PTI seemingly cannot be excluded, even if it is disabled
556
+ if sl_rail_util_pti_config_h .exists ():
557
+ sl_rail_util_pti_config_h .write_text (
558
+ sl_rail_util_pti_config_h .read_text ().replace (
559
+ '#warning "RAIL PTI peripheral not configured"\n ' ,
560
+ '// #warning "RAIL PTI peripheral not configured"\n ' ,
561
+ )
562
+ )
563
+
552
564
# Remove absolute paths from the build for reproducibility
553
565
extra_compiler_flags = [
554
566
f"-ffile-prefix-map={ str (src .absolute ())} ={ dst } "
@@ -557,7 +569,7 @@ def main():
557
569
args .build_dir : "/src" ,
558
570
toolchain : "/toolchain" ,
559
571
}.items ()
560
- ]
572
+ ] + [ "-Wall" , "-Wextra" , "-Werror" ]
561
573
562
574
output_artifact = (args .build_dir / "build/debug" / base_project_name ).with_suffix (
563
575
".gbl"
You can’t perform that action at this time.
0 commit comments