Hello Team,
I want to create a custom class for various peripherals like gpio,i2c,spi.
What should be the steps need to follow.
create a custom cpp class for various peripherals example gpio
Moderators: RoccoMarco, barthess
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: create a custom cpp class for various peripherals example gpio
Hi,
Hard to answer, it depends on what you want to achieve.
You could use the RT wrapper as an example, see under /os/various/cpp_wrappers
Giovanni
Hard to answer, it depends on what you want to achieve.
You could use the RT wrapper as an example, see under /os/various/cpp_wrappers
Giovanni
Re: create a custom cpp class for various peripherals example gpio
Dear Giovanni,
I have tried to make a sample cpp class and added its path into makefile in the section of CPPSRC value.
I got the error "undefined reference __dso_handle ". My code has compiled but this error came out.
I have tried to make a sample cpp class and added its path into makefile in the section of CPPSRC value.
I got the error "undefined reference __dso_handle ". My code has compiled but this error came out.
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: create a custom cpp class for various peripherals example gpio
Hi,
Google it, you are using some C++ feature requiring it:
https://stackoverflow.com/questions/343 ... le-defined
Giovanni
Google it, you are using some C++ feature requiring it:
https://stackoverflow.com/questions/343 ... le-defined
Giovanni
Who is online
Users browsing this forum: No registered users and 17 guests