Skip to content

Commit

Permalink
fixup! tests: modify driver_at86rf2xx for pure netdev2
Browse files Browse the repository at this point in the history
[ci skip]

[ci skip]

[ci skip]
  • Loading branch information
miri64 committed Mar 18, 2016
1 parent 2cebc86 commit e542240
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/driver_at86rf2xx/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,13 @@ int main(void)

for (unsigned i = 0; i < AT86RF2XX_NUM; i++) {
const at86rf2xx_params_t *p = &at86rf2xx_params[i];
netdev2_t *dev = (netdev2_t *)(&devs[i]);

printf("Initializing AT86RF2xx radio at SPI_%d\n", p->spi);
at86rf2xx_setup(&devs[i], p->spi, p->spi_speed, p->cs_pin,
p->int_pin, p->sleep_pin, p->reset_pin);
devs[i].driver->init((netdev2_t *)&devs[i]);
devs[i].event_callback = _event_cb;
dev->driver->init(dev);
dev->event_callback = _event_cb;
}

_recv_pid = thread_create(stack, sizeof(stack), THREAD_PRIORITY_MAIN - 1,
Expand Down

0 comments on commit e542240

Please sign in to comment.