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

Restore EVB-2 project for SPI testing #579

Open
wants to merge 20 commits into
base: develop
Choose a base branch
from

Conversation

waltjohnson
Copy link
Contributor

@waltjohnson waltjohnson commented Mar 24, 2024

This adds the EVB-2 project back so we have a way to test SPI on the IMX with the v2 protocol.

@waltjohnson waltjohnson self-assigned this Mar 24, 2024
Copy link
Contributor

@kylemallory kylemallory left a comment

Choose a reason for hiding this comment

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

I think I misunderstood our discussion about this yesterday. While adding this all to the SDK seems... straight-forward? I don't think we want this in the SDK. Being that this is the public repo, I don't think we want this visible. Maybe, but I'd probably need to be convinced.

I'm more keen to move all this into a new EVB-2 repo, that builds off of is-common and SDK, like GPX does. Is that possible?

@waltjohnson
Copy link
Contributor Author

I think I misunderstood our discussion about this yesterday. While adding this all to the SDK seems... straight-forward? I don't think we want this in the SDK. Being that this is the public repo, I don't think we want this visible. Maybe, but I'd probably need to be convinced.

I'm more keen to move all this into a new EVB-2 repo, that builds off of is-common and SDK, like GPX does. Is that possible?

I think it is alright having it in the SDK for a few reasons:

  1. Customers need hardware in order to use the EVB-2 project. We've never had customers asking how to use this project. Although it is not ideal to have in our public SDK, I don't see it cause any problems for us or customers.
  2. There may be some corner cases for customers using SPI where we want to loan them an EVB-2 as a SPI dev kit.
  3. It's less work for us.

@waltjohnson waltjohnson requested a review from kylemallory April 22, 2024 16:31
Copy link
Contributor

@kylemallory kylemallory left a comment

Choose a reason for hiding this comment

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

Mostly minor things, but still worth a second glance.

@@ -462,7 +462,7 @@ namespace ISFileManager {
std::string CurrentWorkingDirectory()
{
char curdir[256] = { 0 };
if (_GETCWD(curdir, sizeof(curdir)) != nullptr)
if (_GETCWD(curdir, sizeof(curdir)) != 0)
Copy link
Contributor

Choose a reason for hiding this comment

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

Was there a reason to change this from nullptr? Technically, nullptr is correct, since this may result in warnings about type casting.

@@ -26,7 +26,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
#endif

#if PLATFORM_IS_EMBEDDED
#include "drivers/d_time.h"
#include "d_time.h"
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this using a different d_time.h? We should be including "drivers/d_time.h", since this removes ambiguity in the source file, and simplified the CMakeLists.txt. Changing this back to just "d_time.h" may actually break builds elsewhere.

@@ -183,7 +183,7 @@
typedef uint32_t pthread_t;
typedef uint32_t pthread_mutex_t;
typedef int lock_t;
typedef int DIR;
// typedef int DIR;
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure the importance of DIR, but why would bringing back in the EVB source would need this removed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants