Corrected IAR compilation and removed compiler warnings

pull/3721/head
Mika Leppänen 2017-02-15 15:09:53 +02:00
parent 30b6d2304d
commit 90db9c0cb4
2 changed files with 3 additions and 21 deletions

View File

@ -296,7 +296,7 @@ err_t k64f_etharp_output_ipv6(struct netif *netif, struct pbuf *q, const ip6_add
* \param[in] action * \param[in] action
* \return ERR_OK or error code * \return ERR_OK or error code
*/ */
err_t igmp_mac_filter(struct netif *netif, const ip4_addr_t *group, u8_t action) err_t igmp_mac_filter(struct netif *netif, const ip4_addr_t *group, enum netif_mac_filter_action action)
{ {
switch (action) { switch (action) {
case NETIF_ADD_MAC_FILTER: case NETIF_ADD_MAC_FILTER:
@ -330,7 +330,7 @@ err_t igmp_mac_filter(struct netif *netif, const ip4_addr_t *group, u8_t action)
* \param[in] action * \param[in] action
* \return ERR_OK or error code * \return ERR_OK or error code
*/ */
err_t mld_mac_filter(struct netif *netif, const ip6_addr_t *group, u8_t action) err_t mld_mac_filter(struct netif *netif, const ip6_addr_t *group, enum netif_mac_filter_action action)
{ {
switch (action) { switch (action) {
case NETIF_ADD_MAC_FILTER: case NETIF_ADD_MAC_FILTER:

View File

@ -35,24 +35,6 @@
#include <stdint.h> #include <stdint.h>
#include <stddef.h> /* for size_t */ #include <stddef.h> /* for size_t */
/* Types based on stdint.h */
typedef uint8_t u8_t;
typedef int8_t s8_t;
typedef uint16_t u16_t;
typedef int16_t s16_t;
typedef uint32_t u32_t;
typedef int32_t s32_t;
typedef uintptr_t mem_ptr_t;
/* Define (sn)printf formatters for these lwIP types */
#define U16_F "hu"
#define S16_F "hd"
#define X16_F "hx"
#define U32_F "lu"
#define S32_F "ld"
#define X32_F "lx"
#define SZT_F "uz"
/* ARM/LPC17xx is little endian only */ /* ARM/LPC17xx is little endian only */
#if !defined(BYTE_ORDER) || (BYTE_ORDER != LITTLE_ENDIAN && BYTE_ORDER != BIG_ENDIAN) #if !defined(BYTE_ORDER) || (BYTE_ORDER != LITTLE_ENDIAN && BYTE_ORDER != BIG_ENDIAN)
#ifdef BYTE_ORDER #ifdef BYTE_ORDER
@ -97,7 +79,7 @@ typedef uintptr_t mem_ptr_t;
#define LWIP_CHKSUM_ALGORITHM 0 #define LWIP_CHKSUM_ALGORITHM 0
void* thumb2_memcpy(void* pDest, const void* pSource, size_t length); void* thumb2_memcpy(void* pDest, const void* pSource, size_t length);
u16_t thumb2_checksum(const void* pData, int length); uint16_t thumb2_checksum(const void* pData, int length);
#else #else
/* Used with IP headers only */ /* Used with IP headers only */
#define LWIP_CHKSUM_ALGORITHM 1 #define LWIP_CHKSUM_ALGORITHM 1