ProfinetConnector/libs/include/pnal_config.h
Vadim Sychev 3c9774a173 dev(UML-981): Решение некоторых проблем и документирование кода
1. Выделение разделяемой памяти учитывает количество требуемой памяти
2. Выложил собранные библиотеки pnet и osal
3. Добавил общее описание в readme.md
2022-08-05 14:58:37 +03:00

55 lines
1.1 KiB
C

/*********************************************************************
* _ _ _
* _ __ | |_ _ | | __ _ | |__ ___
* | '__|| __|(_)| | / _` || '_ \ / __|
* | | | |_ _ | || (_| || |_) |\__ \
* |_| \__|(_)|_| \__,_||_.__/ |___/
*
* www.rt-labs.com
* Copyright 2021 rt-labs AB, Sweden.
*
* This software is dual-licensed under GPLv3 and a commercial
* license. See the file LICENSE.md distributed with this software for
* full license information.
********************************************************************/
/**
* @file
* @brief PNAL-specific configuration
*
* This file contains definitions of configuration settings for the
* PNAL layer.
*/
#ifndef PNAL_CONFIG_H
#define PNAL_CONFIG_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
#include <stddef.h>
/**
* Thread priority and stack size
*/
typedef struct pnal_thread_cfg
{
uint32_t prio;
size_t stack_size;
} pnal_thread_cfg_t;
typedef struct pnal_cfg
{
pnal_thread_cfg_t snmp_thread;
pnal_thread_cfg_t eth_recv_thread;
pnal_thread_cfg_t bg_worker_thread;
} pnal_cfg_t;
#ifdef __cplusplus
}
#endif
#endif /* PNAL_CONFIG_H */