Skip to content

Commit 2d83463

Browse files
authored
Merge pull request #5813 from TomoYamanaka/master
Revise the structure in RZ_A1 related directory
2 parents debca1f + 3fddcc1 commit 2d83463

File tree

213 files changed

+1854
-7608
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

213 files changed

+1854
-7608
lines changed

features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_RZ_A1H/lwipopts_conf.h renamed to features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_RZ_A1XX/lwipopts_conf.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,11 @@
2323

2424
#define MEM_SIZE (1600 * 16)
2525

26+
#define MEMP_NUM_TCP_SEG 32
27+
#define TCP_MSS 1460
28+
#define PBUF_POOL_SIZE 16
29+
#define TCP_SND_BUF (8 * TCP_MSS)
30+
#define TCP_WND (TCP_MSS * 8)
31+
#define PBUF_POOL_BUFSIZE 1600
32+
2633
#endif

features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_RZ_A1H/rza1_emac.c renamed to features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_RZ_A1XX/rza1_emac.c

Lines changed: 64 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,73 @@
55
#include "mbed_interface.h"
66
#include "ethernet_api.h"
77
#include "ethernetext_api.h"
8+
#include "platform/mbed_toolchain.h"
89

910
#define RECV_TASK_PRI (osPriorityNormal)
1011
#define PHY_TASK_PRI (osPriorityNormal)
1112
#define PHY_TASK_WAIT (200)
1213

14+
WEAK int ethernetext_init(ethernet_cfg_t *p_ethcfg)
15+
{
16+
return -1;
17+
}
18+
19+
WEAK void ethernetext_start_stop(int32_t mode)
20+
{
21+
}
22+
23+
WEAK int ethernetext_chk_link_mode(void)
24+
{
25+
return NEGO_FAIL;
26+
}
27+
28+
WEAK void ethernetext_set_link_mode(int32_t link)
29+
{
30+
}
31+
32+
WEAK int ethernet_init(void)
33+
{
34+
return -1;
35+
}
36+
37+
WEAK void ethernet_free(void)
38+
{
39+
}
40+
41+
WEAK int ethernet_write(const char *data, int size)
42+
{
43+
return 0;
44+
}
45+
46+
WEAK int ethernet_send(void)
47+
{
48+
return 0;
49+
}
50+
51+
WEAK int ethernet_receive(void)
52+
{
53+
return 0;
54+
}
55+
56+
WEAK int ethernet_read(char *data, int size)
57+
{
58+
return 0;
59+
}
60+
61+
WEAK void ethernet_address(char *mac)
62+
{
63+
}
64+
65+
WEAK int ethernet_link(void)
66+
{
67+
return 0;
68+
}
69+
70+
WEAK void ethernet_set_link(int speed, int duplex)
71+
{
72+
}
73+
74+
1375
/* memory */
1476
static sys_sem_t recv_ready_sem; /* receive ready semaphore */
1577

@@ -195,8 +257,8 @@ err_t eth_arch_enetif_init(struct netif *netif)
195257
sys_sem_new(&recv_ready_sem, 0);
196258

197259
/* task */
198-
sys_thread_new("rza1_emac_rx_thread", rza1_recv_task, netif, DEFAULT_THREAD_STACKSIZE, RECV_TASK_PRI);
199-
sys_thread_new("rza1_emac_phy_thread", rza1_phy_task, netif, DEFAULT_THREAD_STACKSIZE, PHY_TASK_PRI);
260+
sys_thread_new("rza1_recv_task", rza1_recv_task, netif, DEFAULT_THREAD_STACKSIZE, RECV_TASK_PRI);
261+
sys_thread_new("rza1_phy_task", rza1_phy_task, netif, DEFAULT_THREAD_STACKSIZE, PHY_TASK_PRI);
200262

201263
return ERR_OK;
202264
}

features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_VK_RZ_A1H/lwipopts_conf.h

Lines changed: 0 additions & 26 deletions
This file was deleted.

features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_VK_RZ_A1H/rza1_emac.c

Lines changed: 0 additions & 210 deletions
This file was deleted.

0 commit comments

Comments
 (0)