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

MPU9250 for tiva 123 #2

Open
marcecurti opened this issue Sep 2, 2019 · 1 comment
Open

MPU9250 for tiva 123 #2

marcecurti opened this issue Sep 2, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@marcecurti
Copy link

Hello, I need port your code for a tiva 123. I read your readme and found i have to modify HAL folder files but i don't know how, please help me

@vedranMv
Copy link
Owner

vedranMv commented Oct 5, 2019

Hi, thank you for your question!
The intended way to port the code would be as follows:

  1. Crate a folder in HAL/ (name it e.g. tm4c123)
  2. Copy everything from HAL/tm4c1294 to your new folder HAL/tm4c123
  3. Change macro guards in header files to include the name of the board you're using(e.g. instead of ROVERKERNEL_HAL_TM4C1294_HAL_COMMON_TM4C_H_ use ROVERKERNEL_HAL_TM4C123_HAL_COMMON_TM4C_H_
  4. Change functions in .c files to implement support for TM4C123. Don't rename the functions, make sure they taker the same arguments as now, and return the same data
  5. Edit HAL/hal.h to include headers from your own subfolder
    #include "tm4c123/hal_common_tm4c.h"
    #include "tm4c123/hal_esp_tm4c.h"

Let me know if you have more questions.

@vedranMv vedranMv self-assigned this Oct 5, 2019
@vedranMv vedranMv added the enhancement New feature or request label Oct 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants