diff --git a/libraries/net/eth/lwip-eth/arch/TARGET_RZ_A1H/rza1_emac.c b/libraries/net/eth/lwip-eth/arch/TARGET_RZ_A1H/rza1_emac.c index 761679e3b7..ee72285ce3 100644 --- a/libraries/net/eth/lwip-eth/arch/TARGET_RZ_A1H/rza1_emac.c +++ b/libraries/net/eth/lwip-eth/arch/TARGET_RZ_A1H/rza1_emac.c @@ -24,17 +24,14 @@ static void rza1_recv_task(void *arg) { struct eth_hdr *ethhdr; u16_t recv_size; struct pbuf *p; - struct pbuf *q; while (1) { sys_arch_sem_wait(&recv_ready_sem, 0); recv_size = ethernet_receive(); if (recv_size != 0) { - p = pbuf_alloc(PBUF_RAW, recv_size, PBUF_POOL); + p = pbuf_alloc(PBUF_RAW, recv_size, PBUF_RAM); if (p != NULL) { - for (q = p; q != NULL; q = q->next) { - (void)ethernet_read((char *)q->payload, q->len); - } + (void)ethernet_read((char *)p->payload, p->len); ethhdr = p->payload; switch (htons(ethhdr->type)) { case ETHTYPE_IP: diff --git a/libraries/rpc/Arguments.cpp b/libraries/rpc/Arguments.cpp index b14f0b6957..155d6ae6b1 100644 --- a/libraries/rpc/Arguments.cpp +++ b/libraries/rpc/Arguments.cpp @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +#include "mbed.h" #include "Arguments.h" #include "pinmap.h" diff --git a/libraries/rpc/parse_pins.cpp b/libraries/rpc/parse_pins.cpp index e68471e9ac..2887749b57 100644 --- a/libraries/rpc/parse_pins.cpp +++ b/libraries/rpc/parse_pins.cpp @@ -38,7 +38,7 @@ PinName parse_pins(const char *str) { , NC, NC, NC, NC, NC, NC, NC, NC, p41, p42, p43, p44, p45, p46}; #endif -#if defined(TARGET_LPC1768) || defined(TARGET_LPC11U24) || defined(TARGET_LPC2368) || defined(TARGET_LPC812) || defined(TARGET_LPC4088) || defined(TARGET_LPC4088_DM) || defined(TARGET_LPC1114) +#if defined(TARGET_LPC1768) || defined(TARGET_LPC11U24) || defined(TARGET_LPC2368) || defined(TARGET_LPC812) || defined(TARGET_LPC4088) || defined(TARGET_LPC4088_DM) || defined(TARGET_LPC1114) || defined(TARGET_RZ_A1H) if (str[0] == 'P') { // Pn_n uint32_t port = str[1] - '0'; uint32_t pin = str[3] - '0'; // Pn_n