refactor: добавил к инклюдам free_rtos/ для избежания конфликтов имен в коде, который будет использовать данную библиотеку
This commit is contained in:
parent
f6ba839cfd
commit
8234b9d4bb
@ -4,7 +4,7 @@
|
||||
* Created on: 13 ìàð. 2023 ã.
|
||||
* Author: sychev
|
||||
*/
|
||||
#include "clock/clock.hpp"
|
||||
#include "free_rtos/clock/clock.hpp"
|
||||
|
||||
bool free_rtos::Clock::init(uint32_t period_ms, Callback cbk, void * arg)
|
||||
{
|
||||
|
@ -4,9 +4,9 @@
|
||||
* Created on: 9 <EFBFBD><EFBFBD><EFBFBD>. 2023 <EFBFBD>.
|
||||
* Author: sychev
|
||||
*/
|
||||
#include "ethernet/eth.hpp"
|
||||
#include "ethernet/eth_vlan.h"
|
||||
#include "ethernet/eth_ioctl.h"
|
||||
#include "free_rtos/ethernet/eth.hpp"
|
||||
#include "free_rtos/ethernet/eth_vlan.h"
|
||||
#include "free_rtos/ethernet/eth_ioctl.h"
|
||||
|
||||
#include <networking/enet/core/include/core/enet_ioctl.h>
|
||||
#include <kernel/dpl/DebugP.h>
|
||||
|
@ -8,13 +8,13 @@
|
||||
#ifndef FREE_RTOS_ETHERNET_ETH_HPP_
|
||||
#define FREE_RTOS_ETHERNET_ETH_HPP_
|
||||
|
||||
#include "ethernet/eth_task_settings.hpp"
|
||||
#include "ethernet/eth_rx_flow.hpp"
|
||||
#include "ethernet/eth_tx_flow.hpp"
|
||||
#include "free_rtos/ethernet/eth_task_settings.hpp"
|
||||
#include "free_rtos/ethernet/eth_rx_flow.hpp"
|
||||
#include "free_rtos/ethernet/eth_tx_flow.hpp"
|
||||
|
||||
#include "semaphore/semaphore.hpp"
|
||||
#include "ethernet/eth_frame.h"
|
||||
#include "task/task.hpp"
|
||||
#include "free_rtos/semaphore/semaphore.hpp"
|
||||
#include "free_rtos/ethernet/eth_frame.h"
|
||||
#include "free_rtos/task/task.hpp"
|
||||
|
||||
#include <networking/enet/core/include/core/enet_per.h>
|
||||
#include <networking/enet/utils/include/enet_apputils.h>
|
||||
@ -22,9 +22,9 @@
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
|
||||
#include "ethernet/eth_types.h"
|
||||
#include "free_rtos/ethernet/eth_types.h"
|
||||
|
||||
#include "ethernet_ip/eth_stack.hpp"
|
||||
#include "free_rtos/ethernet_ip/eth_stack.hpp"
|
||||
|
||||
namespace free_rtos {
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
* Created on: 10 ìàð. 2023 ã.
|
||||
* Author: sychev
|
||||
*/
|
||||
#include "ethernet/eth_ioctl.h"
|
||||
#include "free_rtos/ethernet/eth_ioctl.h"
|
||||
|
||||
#include <networking/enet/core/include/per/icssg.h>
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
* Created on: 7 <EFBFBD><EFBFBD><EFBFBD>. 2023 <EFBFBD>.
|
||||
* Author: sychev
|
||||
*/
|
||||
#include "ethernet/eth_rx_flow.hpp"
|
||||
#include "free_rtos/ethernet/eth_rx_flow.hpp"
|
||||
|
||||
#include <networking/enet/core/include/core/enet_soc.h>
|
||||
#include <networking/enet/core/include/core/enet_queue.h>
|
||||
|
@ -11,13 +11,13 @@
|
||||
#include <cstdint>
|
||||
#include <networking/enet/core/include/dma/udma/enet_udma.h>
|
||||
|
||||
#include "handler_store/handler_store.hpp"
|
||||
#include "semaphore/semaphore.hpp"
|
||||
#include "task/task.hpp"
|
||||
#include "free_rtos/handler_store/handler_store.hpp"
|
||||
#include "free_rtos/semaphore/semaphore.hpp"
|
||||
#include "free_rtos/task/task.hpp"
|
||||
|
||||
#include "ethernet/eth_task_settings.hpp"
|
||||
#include "ethernet/eth_frame.h"
|
||||
#include "ethernet_ip/eth_stack_iface.hpp"
|
||||
#include "free_rtos/ethernet/eth_task_settings.hpp"
|
||||
#include "free_rtos/ethernet/eth_frame.h"
|
||||
#include "free_rtos/ethernet_ip/eth_stack_iface.hpp"
|
||||
|
||||
namespace free_rtos {
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
#include "task/task.hpp"
|
||||
#include "free_rtos/task/task.hpp"
|
||||
|
||||
namespace free_rtos {
|
||||
static constexpr uint32_t RX_TASK_PRIORITY = Task::TaskPriorityHiest - 2;
|
||||
|
@ -4,7 +4,7 @@
|
||||
* Created on: 7 <EFBFBD><EFBFBD><EFBFBD>. 2023 <EFBFBD>.
|
||||
* Author: sychev
|
||||
*/
|
||||
#include "ethernet/eth_tx_flow.hpp"
|
||||
#include "free_rtos/ethernet/eth_tx_flow.hpp"
|
||||
|
||||
#include <cstring>
|
||||
|
||||
|
@ -11,8 +11,8 @@
|
||||
#include <cstdint>
|
||||
#include <networking/enet/core/include/core/enet_dma.h>
|
||||
|
||||
#include "ethernet/eth_tx_flow_iface.hpp"
|
||||
#include "handler_store/handler_store.hpp"
|
||||
#include "free_rtos/ethernet/eth_tx_flow_iface.hpp"
|
||||
#include "free_rtos/handler_store/handler_store.hpp"
|
||||
|
||||
namespace free_rtos {
|
||||
|
||||
|
@ -9,8 +9,8 @@
|
||||
#define FREE_RTOS_ETHERNET_ETH_TX_FLOW_IFACE_HPP_
|
||||
|
||||
#include <cstdint>
|
||||
#include "ethernet/eth_types.h"
|
||||
#include "handler_store/handler_store.hpp"
|
||||
#include "free_rtos/ethernet/eth_types.h"
|
||||
#include "free_rtos/handler_store/handler_store.hpp"
|
||||
|
||||
class EthTxFlowIface {
|
||||
public:
|
||||
|
@ -4,7 +4,7 @@
|
||||
* Created on: 9 ìàð. 2023 ã.
|
||||
* Author: sychev
|
||||
*/
|
||||
#include "ethernet/eth_vlan.h"
|
||||
#include "free_rtos/ethernet/eth_vlan.h"
|
||||
|
||||
#include <networking/enet/utils/include/enet_apputils.h>
|
||||
#include <networking/enet/core/include/core/enet_ioctl.h>
|
||||
|
@ -8,7 +8,7 @@
|
||||
#ifndef FREE_RTOS_ETHERNET_ETH_VLAN_HPP_
|
||||
#define FREE_RTOS_ETHERNET_ETH_VLAN_HPP_
|
||||
|
||||
//#include "semaphore/semaphore.hpp"
|
||||
//#include "free_rtos/semaphore/semaphore.hpp"
|
||||
|
||||
#include <networking/enet/core/include/core/enet_base.h>
|
||||
//#include <networking/enet/core/include/per/icssg.h>
|
||||
|
@ -5,7 +5,7 @@
|
||||
* Author: algin
|
||||
*/
|
||||
|
||||
#include "ethernet_industry/CoE/eth_ecat_pdo_fmmu.hpp"
|
||||
#include "free_rtos/ethernet_industry/CoE/eth_ecat_pdo_fmmu.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
|
@ -8,11 +8,11 @@
|
||||
#ifndef FREE_RTOS_ETHERNET_INDUSTRY_COE_ETH_ECAT_PDO_FMMU_HPP_
|
||||
#define FREE_RTOS_ETHERNET_INDUSTRY_COE_ETH_ECAT_PDO_FMMU_HPP_
|
||||
|
||||
#include "semaphore/semaphore.hpp"
|
||||
#include "mutex/mutex.hpp"
|
||||
#include "free_rtos/semaphore/semaphore.hpp"
|
||||
#include "free_rtos/mutex/mutex.hpp"
|
||||
|
||||
#include "ethernet_industry/eth_ecat_buffer.hpp"
|
||||
#include "ethernet_industry/eth_ecat_custom_promise.hpp"
|
||||
#include "free_rtos/ethernet_industry/eth_ecat_buffer.hpp"
|
||||
#include "free_rtos/ethernet_industry/eth_ecat_custom_promise.hpp"
|
||||
|
||||
namespace free_rtos {
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
* Author: algin
|
||||
*/
|
||||
|
||||
#include "ethernet_industry/CoE/eth_ecat_sdo_mailbox.hpp"
|
||||
#include "free_rtos/ethernet_industry/CoE/eth_ecat_sdo_mailbox.hpp"
|
||||
|
||||
namespace free_rtos {
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
#ifndef FREE_RTOS_ETHERNET_INDUSTRY_COE_ETH_ECAT_SDO_MAILBOX_HPP_
|
||||
#define FREE_RTOS_ETHERNET_INDUSTRY_COE_ETH_ECAT_SDO_MAILBOX_HPP_
|
||||
|
||||
#include "ethernet_industry/eth_ecat_buffer.hpp"
|
||||
#include "free_rtos/ethernet_industry/eth_ecat_buffer.hpp"
|
||||
|
||||
namespace free_rtos {
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
* Author: sychev
|
||||
*/
|
||||
|
||||
#include "ethernet_industry/eth_ecat.hpp"
|
||||
#include "free_rtos/ethernet_industry/eth_ecat.hpp"
|
||||
|
||||
#include <cstring>
|
||||
#include <kernel/dpl/ClockP.h>
|
||||
|
@ -12,19 +12,19 @@
|
||||
#include <utility>
|
||||
#include <kernel/dpl/ClockP.h>
|
||||
|
||||
#include "handler_store/handler.hpp"
|
||||
#include "ethernet/eth_frame.h"
|
||||
#include "timer/timer.hpp"
|
||||
#include "mutex/mutex.hpp"
|
||||
#include "semaphore/semaphore.hpp"
|
||||
#include "free_rtos/handler_store/handler.hpp"
|
||||
#include "free_rtos/ethernet/eth_frame.h"
|
||||
#include "free_rtos/timer/timer.hpp"
|
||||
#include "free_rtos/mutex/mutex.hpp"
|
||||
#include "free_rtos/semaphore/semaphore.hpp"
|
||||
|
||||
#include "ethernet/eth.hpp"
|
||||
#include "ethernet_industry/ethercattype.hpp"
|
||||
#include "ethernet_industry/eth_ecat_types.h"
|
||||
#include "ethernet_industry/eth_ecat_command.hpp"
|
||||
#include "ethernet_industry/eth_ecat_datagram.hpp"
|
||||
#include "ethernet_industry/eth_ecat_telegram.hpp"
|
||||
#include "ethernet_industry/eth_ecat_eeprom.hpp"
|
||||
#include "free_rtos/ethernet/eth.hpp"
|
||||
#include "free_rtos/ethernet_industry/ethercattype.hpp"
|
||||
#include "free_rtos/ethernet_industry/eth_ecat_types.h"
|
||||
#include "free_rtos/ethernet_industry/eth_ecat_command.hpp"
|
||||
#include "free_rtos/ethernet_industry/eth_ecat_datagram.hpp"
|
||||
#include "free_rtos/ethernet_industry/eth_ecat_telegram.hpp"
|
||||
#include "free_rtos/ethernet_industry/eth_ecat_eeprom.hpp"
|
||||
|
||||
namespace free_rtos {
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
* Author: algin
|
||||
*/
|
||||
|
||||
#include "ethernet_industry/eth_ecat_api.hpp"
|
||||
#include "free_rtos/ethernet_industry/eth_ecat_api.hpp"
|
||||
|
||||
namespace free_rtos {
|
||||
|
||||
|
@ -10,11 +10,11 @@
|
||||
|
||||
#define COMX 1
|
||||
|
||||
#include "ethernet/eth.hpp"
|
||||
#include "ethernet_industry/eth_ecat.hpp"
|
||||
#include "ethernet_industry/eth_ecat_buffer.hpp"
|
||||
#include "ethernet_industry/CoE/eth_ecat_sdo_mailbox.hpp"
|
||||
#include "ethernet_industry/CoE/eth_ecat_pdo_fmmu.hpp"
|
||||
#include "free_rtos/ethernet/eth.hpp"
|
||||
#include "free_rtos/ethernet_industry/eth_ecat.hpp"
|
||||
#include "free_rtos/ethernet_industry/eth_ecat_buffer.hpp"
|
||||
#include "free_rtos/ethernet_industry/CoE/eth_ecat_sdo_mailbox.hpp"
|
||||
#include "free_rtos/ethernet_industry/CoE/eth_ecat_pdo_fmmu.hpp"
|
||||
|
||||
namespace free_rtos {
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
* Author: algin
|
||||
*/
|
||||
|
||||
#include "ethernet_industry/eth_ecat_buffer.hpp"
|
||||
#include "free_rtos/ethernet_industry/eth_ecat_buffer.hpp"
|
||||
|
||||
namespace free_rtos {
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
#include <map>
|
||||
#include <kernel/dpl/ClockP.h>
|
||||
|
||||
#include "ethernet_industry/eth_ecat.hpp"
|
||||
#include "free_rtos/ethernet_industry/eth_ecat.hpp"
|
||||
|
||||
namespace free_rtos {
|
||||
|
||||
|
@ -12,10 +12,10 @@
|
||||
#include <array>
|
||||
#include <type_traits>
|
||||
|
||||
#include "ethernet_industry/ethercattype.hpp"
|
||||
#include "ethernet_industry/eth_ecat_types.h"
|
||||
#include "ethernet_industry/eth_ecat_custom_tuple.hpp"
|
||||
#include "ethernet_industry/eth_ecat_packer.hpp"
|
||||
#include "free_rtos/ethernet_industry/ethercattype.hpp"
|
||||
#include "free_rtos/ethernet_industry/eth_ecat_types.h"
|
||||
#include "free_rtos/ethernet_industry/eth_ecat_custom_tuple.hpp"
|
||||
#include "free_rtos/ethernet_industry/eth_ecat_packer.hpp"
|
||||
|
||||
namespace free_rtos {
|
||||
|
||||
|
@ -10,13 +10,13 @@
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
#include "semaphore/semaphore.hpp"
|
||||
#include "free_rtos/semaphore/semaphore.hpp"
|
||||
|
||||
#include "ethernet_industry/eth_ecat_queue.hpp"
|
||||
#include "ethernet_industry/eth_ecat_datagram.hpp"
|
||||
#include "ethernet_industry/eth_ecat_command.hpp"
|
||||
#include "ethernet_industry/eth_ecat_custom_tuple.hpp"
|
||||
#include "ethernet_industry/eth_ecat_packer.hpp"
|
||||
#include "free_rtos/ethernet_industry/eth_ecat_queue.hpp"
|
||||
#include "free_rtos/ethernet_industry/eth_ecat_datagram.hpp"
|
||||
#include "free_rtos/ethernet_industry/eth_ecat_command.hpp"
|
||||
#include "free_rtos/ethernet_industry/eth_ecat_custom_tuple.hpp"
|
||||
#include "free_rtos/ethernet_industry/eth_ecat_packer.hpp"
|
||||
|
||||
namespace free_rtos {
|
||||
|
||||
|
@ -10,12 +10,12 @@
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
#include "ethernet_industry/ethercattype.hpp"
|
||||
#include "ethernet_industry/eth_ecat_types.h"
|
||||
#include "ethernet_industry/eth_ecat_queue.hpp"
|
||||
#include "ethernet_industry/eth_ecat_custom_tuple.hpp"
|
||||
#include "ethernet_industry/eth_ecat_packer.hpp"
|
||||
#include "ethernet_industry/eth_ecat_command.hpp"
|
||||
#include "free_rtos/ethernet_industry/ethercattype.hpp"
|
||||
#include "free_rtos/ethernet_industry/eth_ecat_types.h"
|
||||
#include "free_rtos/ethernet_industry/eth_ecat_queue.hpp"
|
||||
#include "free_rtos/ethernet_industry/eth_ecat_custom_tuple.hpp"
|
||||
#include "free_rtos/ethernet_industry/eth_ecat_packer.hpp"
|
||||
#include "free_rtos/ethernet_industry/eth_ecat_command.hpp"
|
||||
|
||||
namespace free_rtos {
|
||||
|
||||
|
@ -10,8 +10,8 @@
|
||||
|
||||
#include <kernel/dpl/ClockP.h>
|
||||
|
||||
#include <ethernet_industry/eth_ecat_datagram.hpp>
|
||||
#include "ethernet_industry/eth_ecat_telegram.hpp"
|
||||
#include <free_rtos/ethernet_industry/eth_ecat_datagram.hpp>
|
||||
#include "free_rtos/ethernet_industry/eth_ecat_telegram.hpp"
|
||||
|
||||
namespace free_rtos {
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
* Author: algin
|
||||
*/
|
||||
|
||||
#include "ethernet_industry/eth_ecat_telegram.hpp"
|
||||
#include "free_rtos/ethernet_industry/eth_ecat_telegram.hpp"
|
||||
|
||||
namespace free_rtos {
|
||||
|
||||
@ -42,7 +42,7 @@ uint8_t* EcatTelegram::pack(uint8_t *raw) {
|
||||
TEthFrameHeader *p_eth_hdr = new(raw) TEthFrameHeader{ {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF},
|
||||
{0x01, 0x01, 0x01, 0x01, 0x01, 0x01},
|
||||
ETH_PROT_ECAT_LE };
|
||||
TEcatFrameHeader *p_hdr = new(raw + sizeof(TEthFrameHeader)) TEcatFrameHeader{ .bits{ .length = 0,
|
||||
TEcatFrameHeader *p_hdr = new(raw + sizeof(TEthFrameHeader)) TEcatFrameHeader{ .bits = { .length = 0,
|
||||
.type = static_cast<uint16_t>(ec_network::PROTOCOL_TYPE) } };
|
||||
uint8_t *p_datagram_first = raw + sizeof(TEthFrameHeader) + sizeof(TEcatFrameHeader);
|
||||
uint8_t *p_datagram_last = p_datagram_first;
|
||||
|
@ -8,9 +8,9 @@
|
||||
#ifndef FREE_RTOS_ETHERNET_INDUSTRY_ETH_ECAT_TELEGRAM_HPP_
|
||||
#define FREE_RTOS_ETHERNET_INDUSTRY_ETH_ECAT_TELEGRAM_HPP_
|
||||
|
||||
#include "ethernet/eth.hpp"
|
||||
#include "free_rtos/ethernet/eth.hpp"
|
||||
|
||||
#include "ethernet_industry/eth_ecat_datagram.hpp"
|
||||
#include "free_rtos/ethernet_industry/eth_ecat_datagram.hpp"
|
||||
|
||||
namespace free_rtos {
|
||||
|
||||
|
@ -4,10 +4,10 @@
|
||||
* Created on: 13 <EFBFBD><EFBFBD><EFBFBD>. 2023 <EFBFBD>.
|
||||
* Author: sychev
|
||||
*/
|
||||
#include "ethernet_ip/eth_arp.hpp"
|
||||
#include "ethernet/eth_frame.h"
|
||||
#include "ethernet_ip/eth_prots_id.h"
|
||||
#include "ethernet_ip/eth_ip_types.h"
|
||||
#include "free_rtos/ethernet_ip/eth_arp.hpp"
|
||||
#include "free_rtos/ethernet/eth_frame.h"
|
||||
#include "free_rtos/ethernet_ip/eth_prots_id.h"
|
||||
#include "free_rtos/ethernet_ip/eth_ip_types.h"
|
||||
|
||||
#include <cstring>
|
||||
|
||||
|
@ -10,11 +10,11 @@
|
||||
|
||||
#include <map>
|
||||
#include <cstdint>
|
||||
#include "ethernet_ip/eth_arp_iface.hpp"
|
||||
#include "ethernet_ip/eth_stack_iface.hpp"
|
||||
#include "handler_store/handler.hpp"
|
||||
#include "clock/clock.hpp"
|
||||
#include "timer_sw/timer_sw.hpp"
|
||||
#include "free_rtos/ethernet_ip/eth_arp_iface.hpp"
|
||||
#include "free_rtos/ethernet_ip/eth_stack_iface.hpp"
|
||||
#include "free_rtos/handler_store/handler.hpp"
|
||||
#include "free_rtos/clock/clock.hpp"
|
||||
#include "free_rtos/timer_sw/timer_sw.hpp"
|
||||
|
||||
|
||||
namespace free_rtos {
|
||||
|
@ -4,7 +4,7 @@
|
||||
* Created on: 13 ìàð. 2023 ã.
|
||||
* Author: sychev
|
||||
*/
|
||||
#include "ethernet_ip/eth_checksum.h"
|
||||
#include "free_rtos/ethernet_ip/eth_checksum.h"
|
||||
|
||||
uint16_t eth_calcChksum(uint32_t sum, uint8_t * const data, uint16_t len)
|
||||
{
|
||||
|
@ -4,10 +4,10 @@
|
||||
* Created on: 14 <EFBFBD><EFBFBD><EFBFBD>. 2023 <EFBFBD>.
|
||||
* Author: sychev
|
||||
*/
|
||||
#include "ethernet_ip/eth_icmp.hpp"
|
||||
#include "ethernet_ip/eth_icmp_types.h"
|
||||
#include "ethernet_ip/eth_ip_checksum.h"
|
||||
#include "base/swap.h"
|
||||
#include "free_rtos/ethernet_ip/eth_icmp.hpp"
|
||||
#include "free_rtos/ethernet_ip/eth_icmp_types.h"
|
||||
#include "free_rtos/ethernet_ip/eth_ip_checksum.h"
|
||||
#include "free_rtos/base/swap.h"
|
||||
|
||||
int32_t free_rtos::EthIcmp::Process(uint8_t * p_data, uint32_t len)
|
||||
{
|
||||
|
@ -8,7 +8,7 @@
|
||||
#ifndef FREE_RTOS_ETHERNET_IP_ETH_ICMP_HPP_
|
||||
#define FREE_RTOS_ETHERNET_IP_ETH_ICMP_HPP_
|
||||
|
||||
#include "handler_store/handler.hpp"
|
||||
#include "free_rtos/handler_store/handler.hpp"
|
||||
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
|
@ -4,12 +4,12 @@
|
||||
* Created on: 13 <EFBFBD><EFBFBD><EFBFBD>. 2023 <EFBFBD>.
|
||||
* Author: sychev
|
||||
*/
|
||||
#include "ethernet_ip/eth_ip.hpp"
|
||||
#include "ethernet_ip/eth_ip_types.h"
|
||||
#include "ethernet_ip/eth_checksum.h"
|
||||
#include "free_rtos/ethernet_ip/eth_ip.hpp"
|
||||
#include "free_rtos/ethernet_ip/eth_ip_types.h"
|
||||
#include "free_rtos/ethernet_ip/eth_checksum.h"
|
||||
|
||||
#include "ethernet/eth_frame.h"
|
||||
#include "base/swap.h"
|
||||
#include "free_rtos/ethernet/eth_frame.h"
|
||||
#include "free_rtos/base/swap.h"
|
||||
|
||||
|
||||
#include <cstring>
|
||||
|
@ -8,11 +8,11 @@
|
||||
#ifndef FREE_RTOS_ETHERNET_IP_ETH_IP_HPP_
|
||||
#define FREE_RTOS_ETHERNET_IP_ETH_IP_HPP_
|
||||
|
||||
#include "handler_store/handler_store.hpp"
|
||||
#include "ethernet_ip/eth_stack_iface.hpp"
|
||||
#include "ethernet/eth_frame.h"
|
||||
#include "ethernet_ip/eth_arp_iface.hpp"
|
||||
#include "ethernet_ip/eth_ip_iface.hpp"
|
||||
#include "free_rtos/handler_store/handler_store.hpp"
|
||||
#include "free_rtos/ethernet_ip/eth_stack_iface.hpp"
|
||||
#include "free_rtos/ethernet/eth_frame.h"
|
||||
#include "free_rtos/ethernet_ip/eth_arp_iface.hpp"
|
||||
#include "free_rtos/ethernet_ip/eth_ip_iface.hpp"
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
* Author: sychev
|
||||
*/
|
||||
#include "eth_ip_checksum.h"
|
||||
#include "base/swap.h"
|
||||
#include "free_rtos/base/swap.h"
|
||||
|
||||
uint16_t eth_ip_calcChecksum(uint16_t * const data, uint32_t length)
|
||||
{
|
||||
|
@ -9,8 +9,8 @@
|
||||
#define FREE_RTOS_ETHERNET_IP_ETH_IP_IFACE_HPP_
|
||||
|
||||
#include <cstdint>
|
||||
#include "ethernet/eth_types.h"
|
||||
#include "ethernet/eth_frame.h"
|
||||
#include "free_rtos/ethernet/eth_types.h"
|
||||
#include "free_rtos/ethernet/eth_frame.h"
|
||||
|
||||
class EthIpIface {
|
||||
public:
|
||||
|
@ -4,11 +4,11 @@
|
||||
* Created on: 14 <EFBFBD><EFBFBD><EFBFBD>. 2023 <EFBFBD>.
|
||||
* Author: sychev
|
||||
*/
|
||||
#include "ethernet_ip/eth_stack.hpp"
|
||||
#include "ethernet_ip/eth_prots_id.h"
|
||||
#include "ethernet/eth_frame.h"
|
||||
#include "free_rtos/ethernet_ip/eth_stack.hpp"
|
||||
#include "free_rtos/ethernet_ip/eth_prots_id.h"
|
||||
#include "free_rtos/ethernet/eth_frame.h"
|
||||
|
||||
#include "ethernet_ip/eth_ip_prots_id.h"
|
||||
#include "free_rtos/ethernet_ip/eth_ip_prots_id.h"
|
||||
|
||||
#include <cstring>
|
||||
|
||||
|
@ -8,17 +8,17 @@
|
||||
#ifndef FREE_RTOS_ETHERNET_IP_ETH_STACK_HPP_
|
||||
#define FREE_RTOS_ETHERNET_IP_ETH_STACK_HPP_
|
||||
|
||||
#include "ethernet_ip/eth_arp.hpp"
|
||||
#include "ethernet_ip/eth_ip.hpp"
|
||||
#include "ethernet_ip/eth_icmp.hpp"
|
||||
#include "ethernet_ip/eth_udp_server.hpp"
|
||||
#include "free_rtos/ethernet_ip/eth_arp.hpp"
|
||||
#include "free_rtos/ethernet_ip/eth_ip.hpp"
|
||||
#include "free_rtos/ethernet_ip/eth_icmp.hpp"
|
||||
#include "free_rtos/ethernet_ip/eth_udp_server.hpp"
|
||||
|
||||
#include "ethernet_ip/eth_stack_iface.hpp"
|
||||
#include "handler_store/handler_store.hpp"
|
||||
#include "free_rtos/ethernet_ip/eth_stack_iface.hpp"
|
||||
#include "free_rtos/handler_store/handler_store.hpp"
|
||||
|
||||
#include "ethernet/eth_types.h"
|
||||
#include "free_rtos/ethernet/eth_types.h"
|
||||
|
||||
#include "ethernet/eth_tx_flow_iface.hpp"
|
||||
#include "free_rtos/ethernet/eth_tx_flow_iface.hpp"
|
||||
|
||||
namespace free_rtos {
|
||||
|
||||
|
@ -9,9 +9,9 @@
|
||||
#define FREE_RTOS_ETHERNET_IP_ETH_STACK_IFACE_HPP_
|
||||
|
||||
#include <cstdint>
|
||||
#include "ethernet/eth_types.h"
|
||||
#include "ethernet/eth_frame.h"
|
||||
#include "handler_store/handler.hpp"
|
||||
#include "free_rtos/ethernet/eth_types.h"
|
||||
#include "free_rtos/ethernet/eth_frame.h"
|
||||
#include "free_rtos/handler_store/handler.hpp"
|
||||
|
||||
class EthStackIface {
|
||||
public:
|
||||
|
@ -4,12 +4,12 @@
|
||||
* Created on: 15 ìàð. 2023 ã.
|
||||
* Author: sychev
|
||||
*/
|
||||
#include "ethernet_ip/eth_udp_client.hpp"
|
||||
#include "base/swap.h"
|
||||
#include "ethernet_ip/eth_udp_types.h"
|
||||
#include "ethernet_ip/eth_ip_types.h"
|
||||
#include "ethernet_ip/eth_checksum.h"
|
||||
#include "ethernet_ip/eth_ip_prots_id.h"
|
||||
#include "free_rtos/ethernet_ip/eth_udp_client.hpp"
|
||||
#include "free_rtos/base/swap.h"
|
||||
#include "free_rtos/ethernet_ip/eth_udp_types.h"
|
||||
#include "free_rtos/ethernet_ip/eth_ip_types.h"
|
||||
#include "free_rtos/ethernet_ip/eth_checksum.h"
|
||||
#include "free_rtos/ethernet_ip/eth_ip_prots_id.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstring>
|
||||
|
@ -8,11 +8,11 @@
|
||||
#ifndef FREE_RTOS_ETHERNET_IP_ETH_UDP_CLIENT_HPP_
|
||||
#define FREE_RTOS_ETHERNET_IP_ETH_UDP_CLIENT_HPP_
|
||||
|
||||
#include "semaphore/semaphore.hpp"
|
||||
#include "mutex/mutex.hpp"
|
||||
#include "ethernet/eth_frame.h"
|
||||
#include "ethernet_ip/eth_ip_iface.hpp"
|
||||
#include "ethernet/eth_types.h"
|
||||
#include "free_rtos/semaphore/semaphore.hpp"
|
||||
#include "free_rtos/mutex/mutex.hpp"
|
||||
#include "free_rtos/ethernet/eth_frame.h"
|
||||
#include "free_rtos/ethernet_ip/eth_ip_iface.hpp"
|
||||
#include "free_rtos/ethernet/eth_types.h"
|
||||
|
||||
#include <vector>
|
||||
#include <cstdint>
|
||||
|
@ -4,10 +4,10 @@
|
||||
* Created on: 15 <EFBFBD><EFBFBD><EFBFBD>. 2023 <EFBFBD>.
|
||||
* Author: sychev
|
||||
*/
|
||||
#include "ethernet_ip/eth_udp_server.hpp"
|
||||
#include "ethernet_ip/eth_udp_types.h"
|
||||
#include "ethernet_ip/eth_ip_types.h"
|
||||
#include "base/swap.h"
|
||||
#include "free_rtos/ethernet_ip/eth_udp_server.hpp"
|
||||
#include "free_rtos/ethernet_ip/eth_udp_types.h"
|
||||
#include "free_rtos/ethernet_ip/eth_ip_types.h"
|
||||
#include "free_rtos/base/swap.h"
|
||||
|
||||
|
||||
free_rtos::EthUdpServer::EthUdpServer(EthIpIface& ip_iface) :
|
||||
|
@ -8,10 +8,10 @@
|
||||
#ifndef FREE_RTOS_ETHERNET_IP_ETH_UDP_SERVER_HPP_
|
||||
#define FREE_RTOS_ETHERNET_IP_ETH_UDP_SERVER_HPP_
|
||||
|
||||
#include "handler_store/handler_store.hpp"
|
||||
#include "ethernet_ip/eth_udp_server_iface.hpp"
|
||||
#include "ethernet_ip/eth_ip_iface.hpp"
|
||||
#include "ethernet/eth_types.h"
|
||||
#include "free_rtos/handler_store/handler_store.hpp"
|
||||
#include "free_rtos/ethernet_ip/eth_udp_server_iface.hpp"
|
||||
#include "free_rtos/ethernet_ip/eth_ip_iface.hpp"
|
||||
#include "free_rtos/ethernet/eth_types.h"
|
||||
#include <map>
|
||||
|
||||
namespace free_rtos {
|
||||
|
@ -8,7 +8,7 @@
|
||||
#ifndef FREE_RTOS_ETHERNET_IP_ETH_UDP_SERVER_IFACE_HPP_
|
||||
#define FREE_RTOS_ETHERNET_IP_ETH_UDP_SERVER_IFACE_HPP_
|
||||
|
||||
#include "ethernet_ip/eth_udp_client.hpp"
|
||||
#include "free_rtos/ethernet_ip/eth_udp_client.hpp"
|
||||
|
||||
#include <memory>
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
* Author: sychev
|
||||
*/
|
||||
|
||||
#include "gpio/gpio.hpp"
|
||||
#include "free_rtos/gpio/gpio.hpp"
|
||||
#include <drivers/gpio.h>
|
||||
|
||||
free_rtos::Gpio::Gpio(uint32_t num, Dir dir, uint32_t base_address) :
|
||||
|
@ -4,7 +4,7 @@
|
||||
* Created on: 6 <EFBFBD><EFBFBD><EFBFBD>. 2023 <EFBFBD>.
|
||||
* Author: sychev
|
||||
*/
|
||||
#include "handler_store/handler_store.hpp"
|
||||
#include "free_rtos/handler_store/handler_store.hpp"
|
||||
|
||||
bool HandlerStore::Register(uint32_t prot_id, Handler * p_handler) {
|
||||
if (p_handler == nullptr) {
|
||||
|
@ -12,7 +12,7 @@
|
||||
#include <map>
|
||||
#include <cstdint>
|
||||
|
||||
#include "handler_store/handler.hpp"
|
||||
#include "free_rtos/handler_store/handler.hpp"
|
||||
|
||||
class HandlerStore {
|
||||
public:
|
||||
|
@ -4,7 +4,7 @@
|
||||
* Created on: 26 ñåíò. 2022 ã.
|
||||
* Author: sychev
|
||||
*/
|
||||
#include "mutex/mutex.hpp"
|
||||
#include "free_rtos/mutex/mutex.hpp"
|
||||
#include <kernel/dpl/DebugP.h>
|
||||
|
||||
free_rtos::Mutex::Mutex() {
|
||||
|
@ -4,7 +4,7 @@
|
||||
* Created on: 6 ìàð. 2023 ã.
|
||||
* Author: sychev
|
||||
*/
|
||||
#include "task/task.hpp"
|
||||
#include "free_rtos/task/task.hpp"
|
||||
|
||||
bool free_rtos::Task::Create(std::string name, uint32_t priority, TaskFunction task_fun,
|
||||
void * taskArg, int32_t stack_size_bytes)
|
||||
|
@ -4,7 +4,8 @@
|
||||
* Created on: 10 ìàð. 2023 ã.
|
||||
* Author: sychev
|
||||
*/
|
||||
#include "timer/timer.hpp"
|
||||
#include "free_rtos/timer/timer.hpp"
|
||||
|
||||
#include <kernel/dpl/TimerP.h>
|
||||
#include <drivers/soc.h>
|
||||
#include <kernel/dpl/AddrTranslateP.h>
|
||||
|
@ -4,7 +4,7 @@
|
||||
* Created on: 13 ìàð. 2023 ã.
|
||||
* Author: sychev
|
||||
*/
|
||||
#include "timer_sw/timer_sw.hpp"
|
||||
#include "free_rtos/timer_sw/timer_sw.hpp"
|
||||
|
||||
void TimerSw::start(uint32_t period) {
|
||||
enable_ = true;
|
||||
|
Loading…
Reference in New Issue
Block a user