1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

pkg/driver_atwinc15x0: don't be pedantic

This commit is contained in:
Benjamin Valentin 2020-07-21 23:16:06 +02:00
parent aa0e5e7afa
commit 492283898e
3 changed files with 7 additions and 5 deletions

View File

@ -83,7 +83,7 @@ void nm_bsp_register_isr(tpfNmBspIsr pfIsr)
{
assert(atwinc15x0);
DEBUG("%s %p\n", __func__, pfIsr);
DEBUG("%s %p\n", __func__, (void *)(uintptr_t)pfIsr);
atwinc15x0->bsp_isr = pfIsr;
}

View File

@ -345,7 +345,7 @@ static int _atwinc15x0_get(netdev_t *netdev, netopt_t opt, void *val,
assert(dev == atwinc15x0);
DEBUG("%s dev=%p opt=%u val=%p max_len=%u\n", __func__,
netdev, opt, val, max_len);
(void *)netdev, opt, val, max_len);
switch (opt) {
case NETOPT_IS_WIRED:
@ -395,7 +395,7 @@ static int _atwinc15x0_set(netdev_t *netdev, netopt_t opt, const void *val,
assert(val);
DEBUG("%s dev=%p opt=%u val=%p max_len=%u\n", __func__,
netdev, opt, val, max_len);
(void *)netdev, opt, val, max_len);
switch (opt) {
case NETOPT_ADDRESS:
@ -415,7 +415,7 @@ static int _atwinc15x0_init(netdev_t *netdev)
assert(dev);
assert(dev == atwinc15x0);
DEBUG("%s dev=%p\n", __func__, dev);
DEBUG("%s dev=%p\n", __func__, (void *)dev);
atwinc15x0->bsp_isr = NULL;
atwinc15x0->bsp_irq_enabled = true;
@ -492,7 +492,7 @@ static void _atwinc15x0_isr(netdev_t *netdev)
assert(dev);
assert(dev == atwinc15x0);
DEBUG("%s dev=%p\n", __func__, dev);
DEBUG("%s dev=%p\n", __func__, (void *)dev);
/* handle pending ATWINC15x0 module events */
while (m2m_wifi_handle_events(NULL) != M2M_SUCCESS) { }

View File

@ -14,6 +14,8 @@ CFLAGS += -Wno-incompatible-pointer-types-discards-qualifiers
CFLAGS += -DETH_MODE
CFLAGS += -I$(PKG_SOURCE_DIR)/src
CFLAGS += -Wno-pedantic
all:
"$(MAKE)" -C $(PKG_SOURCE_DIR)/src/driver/source -f $(RIOTBASE)/Makefile.base MODULE=driver_atwinc15x0
"$(MAKE)" -C $(PKG_SOURCE_DIR)/src/common/source -f $(RIOTBASE)/Makefile.base MODULE=driver_atwinc15x0_common