Skip to content

Conversation

gschorcht
Copy link
Contributor

Contribution description

This PR migrates the atwinc15x0 driver to ztimer.

Testing procedure

CFLAGS='-DWIFI_SSID=\"ssid\" -DWIFI_PASS=\"pass\" \
make BOARD=feather-m0-wifi -C examples/gnrc_networking flash term

should still work.

Issues/PRs references

@gschorcht gschorcht requested a review from aabadie December 11, 2021 08:28
@github-actions github-actions bot added the Area: drivers Area: Device drivers label Dec 11, 2021
@gschorcht gschorcht added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation labels Dec 11, 2021
@aabadie aabadie changed the title drivers/atwinc15x0: mirgate to ztimer drivers/atwinc15x0: migrate to ztimer Dec 11, 2021
#define ATWINC15X0_WAIT_TIMEOUT (20)
#define ATWINC15X0_WAIT_RECONNECT (5 * US_PER_SEC)
#define ATWINC15X0_WAIT_RECONNECT_S (5)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not ms precision here ? This would allow to only have to use ztimer_msec.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought that ztimer_secisn't a problem at all.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, if you only use ztimer_msec you need less resources of course.

Copy link
Contributor

@aabadie aabadie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

@aabadie
Copy link
Contributor

aabadie commented Dec 13, 2021

Please squash!

@aabadie aabadie enabled auto-merge December 13, 2021 12:44
@gschorcht gschorcht force-pushed the drivers/atwinc15x0_migrate_ztimer branch from e5c3c88 to c6874df Compare December 13, 2021 12:59
@aabadie aabadie merged commit e20f3e5 into RIOT-OS:master Dec 13, 2021
@gschorcht
Copy link
Contributor Author

@aabadie Thansks for reviewing and setting the auto-merge option 😉

@gschorcht gschorcht deleted the drivers/atwinc15x0_migrate_ztimer branch December 13, 2021 15:22
@fjmolinas fjmolinas added this to the Release 2022.01 milestone Jan 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: drivers Area: Device drivers CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants