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

Nosig armv7 #306

Merged
merged 5 commits into from
Jun 8, 2017
Merged

Nosig armv7 #306

merged 5 commits into from
Jun 8, 2017

Conversation

ccollins476ad
Copy link
Contributor

The rationale for this change is summarized in https://issues.apache.org/jira/browse/MYNEWT-770

Regarding implementation, I decided on the following:

  • Create a new package: @apache-mynewt-core/kernel/sim. This package contains the "signals" and "no-signals" implementations of the simulator.
  • Create two new BSPs: native-armv7 and native-mips
  • BSPs which use the simulator depend on the kernel/sim package. This set currently consists of three BSPs: native, native-armv7, and native-mips.

This solution comes with a few annoyances:

  • Duplicate code and scripts in the new native BSPs.
  • Wrapper functions in all the kernel/os/src/arch/sim.../os_arch.c files. These functions just call into functions defined in the kernel/sim package.

I still think this is the right approach. Conceptually, each of these platforms is indeed a different BSP. The wrapper functions are a bit annoying, but I think it is good to keep the sim implementation as a separate module rather than finding a way to force shared code into architecture-specific source directories. However, I am definitely open to comments or suggestions.

#define LED_BLINK_PIN (0x1)

/* UART info */
#define CONSOLE_UART "uart0"
Copy link
Contributor

Choose a reason for hiding this comment

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

Dont' forget to remove this line, and the other one in native-mips bsp when pull request #314 gets merged.

@ccollins476ad ccollins476ad merged commit bc8278e into apache:master Jun 8, 2017
ccollins476ad added a commit that referenced this pull request Jun 8, 2017
Merge remote-tracking branch 'ccollins476ad/nosig-armv7'

* ccollins476ad/nosig-armv7:
  native-*: Remove obsolete CONSOLE_UART definitions
  MYNEWT-770 Use sim package in native-mips BSP.
  MYNEWT-770 Use sim package in native-armv7 BSP.
  MYNEWT-770 Use sim package in native BSP.
  MYNEWT-770 Separate sim package.
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.

None yet

2 participants