<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>implicit declaration of function</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25277/implicit-declaration-of-function</link><description>i have project app_ble_uart and i want add to it functin read from mpu6050 i add to Makefile Makefile pathes and add #include &amp;quot;mpu6050.h&amp;quot; and InitMPU6050(0x68); into main main.c but i have error 
 ./../../main.c: In function &amp;#39;main&amp;#39;:
../../../main.c</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 18 Sep 2017 19:18:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25277/implicit-declaration-of-function" /><item><title>RE: implicit declaration of function</title><link>https://devzone.nordicsemi.com/thread/99609?ContentTypeID=1</link><pubDate>Mon, 18 Sep 2017 19:18:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fa9f329-8dea-48a9-afee-bf49b915c5f0</guid><dc:creator>serzh</dc:creator><description>&lt;p&gt;ok thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: implicit declaration of function</title><link>https://devzone.nordicsemi.com/thread/99608?ContentTypeID=1</link><pubDate>Mon, 18 Sep 2017 18:39:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2ad2fe5-d1f4-4e6a-9dd0-d236733eec90</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Sorry, I did not know that the MPU6050 driver did use a deprecated TWI driver. I do not recommend using this. Please have a look at &lt;a href="https://devzone.nordicsemi.com/question/90200/nrf_twi1-power-no-number-named-power-in-nrf_twi_type/"&gt;this thread&lt;/a&gt;. You should be able to rewrite the driver to work with the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.0.0/hardware_driver_twi.html?cp=4_0_0_2_16"&gt;standard TWI master driver&lt;/a&gt;, without too many changes. I would also recommend you to take a look at &lt;a href="https://github.com/Martinsbl/nrf5-mpu-examples"&gt;this GitHub repository&lt;/a&gt; by Martin, which contains drivers and examples for various MPU models.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: implicit declaration of function</title><link>https://devzone.nordicsemi.com/thread/99611?ContentTypeID=1</link><pubDate>Mon, 18 Sep 2017 18:05:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79cdaffb-20d0-48d7-9516-0d71144285cd</guid><dc:creator>serzh</dc:creator><description>&lt;p&gt;but i fix it and add new patchs into  Makefile&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;  $(SDK_ROOT)/components/drivers_ext/mpu6050/mpu6050.c \
  $(SDK_ROOT)/components/drivers_nrf/twi_master/deprecated/twi_hw_master.c \
  $(SDK_ROOT)/components/drivers_nrf/twi_master/deprecated/twi_sw_master.c \
  $(SDK_ROOT)/components/libraries/uart/app_uart_fifo.c \
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;  $(SDK_ROOT)/components/drivers_nrf/twi_master/deprecated/config \
  $(SDK_ROOT)/components/drivers_nrf/twi_master/deprecated \
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and i have error&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;../../../../../../components/drivers_nrf/twi_master/deprecated/twi_hw_master.c: In function &amp;#39;twi_master_write&amp;#39;:
../../../../../../components/drivers_nrf/twi_master/deprecated/twi_hw_master.c:81:21: error: &amp;#39;NRF_TWI_Type {aka struct &amp;lt;anonymous&amp;gt;}&amp;#39; has no member named &amp;#39;POWER&amp;#39;
             NRF_TWI1-&amp;gt;POWER        = 0;
                     ^~
../../../../../../components/drivers_nrf/twi_master/deprecated/twi_hw_master.c:83:21: error: &amp;#39;NRF_TWI_Type {aka struct &amp;lt;anonymous&amp;gt;}&amp;#39; has no member named &amp;#39;POWER&amp;#39;
             NRF_TWI1-&amp;gt;POWER        = 1;
                     ^~
../../../../../../components/drivers_nrf/twi_master/deprecated/twi_hw_master.c: In function &amp;#39;twi_master_read&amp;#39;:
../../../../../../components/drivers_nrf/twi_master/deprecated/twi_hw_master.c:154:21: error: &amp;#39;NRF_TWI_Type {aka struct &amp;lt;anonymous&amp;gt;}&amp;#39; has no member named &amp;#39;POWER&amp;#39;
             NRF_TWI1-&amp;gt;POWER        = 0;
                     ^~
../../../../../../components/drivers_nrf/twi_master/deprecated/twi_hw_master.c:156:21: error: &amp;#39;NRF_TWI_Type {aka struct &amp;lt;anonymous&amp;gt;}&amp;#39; has no member named &amp;#39;POWER&amp;#39;
             NRF_TWI1-&amp;gt;POWER        = 1;
                     ^~
../../../../../../components/toolchain/gcc/Makefile.common:134: recipe for target &amp;#39;_build/nrf52832_xxaa_twi_hw_master.c.o&amp;#39; failed
make: *** [_build/nrf52832_xxaa_twi_hw_master.c.o] Error 1
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;what i neуd to do?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: implicit declaration of function</title><link>https://devzone.nordicsemi.com/thread/99610?ContentTypeID=1</link><pubDate>Mon, 18 Sep 2017 18:02:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffab3608-6632-48ed-85b5-3e623e67a991</guid><dc:creator>serzh</dc:creator><description>&lt;p&gt;ok it is my error&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: implicit declaration of function</title><link>https://devzone.nordicsemi.com/thread/99607?ContentTypeID=1</link><pubDate>Mon, 18 Sep 2017 17:32:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9142d6dc-f017-402c-938c-9d502be08c2b</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you trying to include the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.0.0/group__nrf__drivers__mpu6050.html?cp=4_0_0_6_5_4"&gt;MPU6050 driver&lt;/a&gt; that is present in the SDK? This driver does not have any functions with the name &lt;code&gt;InitMPU6050&lt;/code&gt;. Try with &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.0.0/group__nrf__drivers__mpu6050.html#ga69d0fa94f347b662e7312e313595773e"&gt;&lt;code&gt;mpu6050_init(0x68)&lt;/code&gt;&lt;/a&gt; instead.&lt;/p&gt;
&lt;p&gt;If you are trying to add another MPU6050 library, you need to include the path to the correct header files in your Makefile.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>