Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

18 lines
336 B

/*
* Copyright (c) 2023 Google LLC.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/init.h>
#include <zephyr/drivers/sensor.h>
static int sensor_decoders_init(void)
{
STRUCT_SECTION_FOREACH(sensor_decoder_api, api) {
k_object_access_all_grant(api);
}
return 0;
}
SYS_INIT(sensor_decoders_init, POST_KERNEL, 99);