About disable default component in IDF
-
- Posts: 53
- Joined: Sun Aug 29, 2021 1:50 pm
About disable default component in IDF
Hi. If I need to disable default component in IDF (\esp\esp-idf\components\hal\i2c_hal.c) and replace with my own components. Is it possiable to disable the hal at cmake and replace it with my own?
-
- Posts: 1725
- Joined: Mon Oct 17, 2022 7:38 pm
- Location: Europe, Germany
Re: About disable default component in IDF
One quick and easy way is to copy any components you want to modify from the IDF into your project's components directory. While building, project-local components will be given preference over external components of the same name.
-
- Posts: 53
- Joined: Sun Aug 29, 2021 1:50 pm
Re: About disable default component in IDF
yes, you are correct. Just copy whole compoent to the project file will be ok.
Who is online
Users browsing this forum: Bing [Bot], MicroController and 94 guests