Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers: misc fixes for encx24j600 #5255

Merged
merged 3 commits into from
Apr 11, 2016

Conversation

kaspar030
Copy link
Contributor

The driver didn't compile for a while, so this PR

  • fixes the compile issues
  • prefixes its constants, fixing compilation for msp430
  • adds a test application so compile errors don't show up in the future

The test application is basically a copy of tests/driver_enc28j60.

@kaspar030 kaspar030 added Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) Area: drivers Area: Device drivers labels Apr 6, 2016
@kaspar030 kaspar030 added this to the Release 2016.04 milestone Apr 6, 2016
@kaspar030 kaspar030 added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Apr 10, 2016
@@ -96,12 +96,13 @@ void encx24j600_setup(encx24j600_t *dev, const encx24j600_params_t *params)
static void encx24j600_isr(void *arg)
{
encx24j600_t *dev = (encx24j600_t *) arg;
netdev2_t *netdev = (netdev2_t *) arg;
Copy link
Contributor

Choose a reason for hiding this comment

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

wouldn't it be simpler, if you cast arg only to netdev2_t * and use that instead of dev->netdev. below?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no time to fix

Copy link
Contributor

Choose a reason for hiding this comment

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

ok, it's only cosmetic anyway.

@haukepetersen
Copy link
Contributor

changes look good, ACK once my comment has been addressed.

@haukepetersen
Copy link
Contributor

Murdock is happy -> go

@haukepetersen haukepetersen merged commit 3ae9fd9 into RIOT-OS:master Apr 11, 2016
@kaspar030 kaspar030 deleted the fix_encx24j600 branch February 7, 2017 22:10
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: bug The issue reports a bug / The PR fixes a bug (including spelling errors)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants