subsys/logging/event_logger.c
/**
 * @brief Send an event message to the logger with a non preemptible
 * behavior.
 *
 * @details Add an event message to the ring buffer and signal the sync
 * semaphore using the internal function _sem_give_non_preemptible to inform
 * that there are event messages available, avoiding the preemptible
 * behavior when the function is called from a task. This function
 * should be only used for special cases where the sys_event_logger_put
 * does not satisfy the needs.
 *
 * @param logger     Pointer to the event logger used.
 * @param event_id   The identification of the profiler event.
 * @param data       Pointer to the data of the message.
 * @param data_size  Size of the buffer in 32-bit words.
 *
 * @return No return value.
 */
@brief Send an event message to the logger with a non preemptible
behavior.

@details Add an event message to the ring buffer and signal the sync
semaphore using the internal function _sem_give_non_preemptible to inform
that there are event messages available, avoiding the preemptible
behavior when the function is called from a task. This function
should be only used for special cases where the sys_event_logger_put
does not satisfy the needs.

@param logger     Pointer to the event logger used.
@param event_id   The identification of the profiler event.
@param data       Pointer to the data of the message.
@param data_size  Size of the buffer in 32-bit words.

@return No return value.
@brief Send an event message to the logger with a non preemptible behavior . @details Add an event message to the ring buffer and signal the sync semaphore using the internal function _sem_give_non_preemptible to inform that there are event messages available avoiding the preemptible behavior when the function is called from a task . This function should be only used for special cases where the sys_event_logger_put does not satisfy the needs . @param logger Pointer to the event logger used . @param event_id The identification of the profiler event . @param data Pointer to the data of the message . @param data_size Size of the buffer in 32 - bit words . @return No return value .
void _sys_event_logger_put_non_preemptible(struct event_logger *logger,
					   u16_t event_id, u32_t *event_data, u8_t data_size)
{
	extern void _sem_give_non_preemptible(struct k_sem *sem);
	event_logger_put(logger, event_id, event_data, data_size,
			 _sem_give_non_preemptible);
}
void _sys_event_logger_put_non_preemptible ( struct event_logger * logger , u16_t event_id , u32_t * event_data , u8_t data_size ) { extern void _sem_give_non_preemptible ( struct k_sem * sem ) ; event_logger_put ( logger , event_id , event_data , data_size , _sem_give_non_preemptible ) ; }
@brief Send an event message to the logger with a non preemptible
 behavior.
@brief Send an event message to the logger with a non preemptible behavior .