Difference between revisions of "Zephyr building blocks"

From Wiki at Neela Nurseries
Jump to: navigation, search
m (adding link to article 'untangling C references'.)
Line 4: Line 4:
 
Zephyr RTOS explorations and building blocks
 
Zephyr RTOS explorations and building blocks
  
== USART references ==
+
== [[#top|^]] USART references ==
  
 
*  https://devzone.nordicsemi.com/f/nordic-q-a/44187/how-do-i-configure-uart-send-data-from-nrf52832-to-quectel-module-by-using-zephyr-sdk
 
*  https://devzone.nordicsemi.com/f/nordic-q-a/44187/how-do-i-configure-uart-send-data-from-nrf52832-to-quectel-module-by-using-zephyr-sdk
Line 16: Line 16:
 
   newtmgr -c serial image upload build/zephyr/app_update.bin
 
   newtmgr -c serial image upload build/zephyr/app_update.bin
  
 +
<!-- comment -->
 +
 +
== [[#top|^]] LIS2DH example code ==
 +
 +
<pre>
 +
ted@localhost:~/projects/embedded/ncs/v1.4.1$ grep -nr st_lis2dh ./*
 +
./zephyr/drivers/sensor/lis2dh/lis2dh_spi.c:11:#define DT_DRV_COMPAT st_lis2dh
 +
./zephyr/drivers/sensor/lis2dh/lis2dh_i2c.c:11:#define DT_DRV_COMPAT st_lis2dh
 +
./zephyr/drivers/sensor/lis2dh/lis2dh_trigger.c:7:#define DT_DRV_COMPAT st_lis2dh
 +
./zephyr/drivers/sensor/lis2dh/lis2dh.c:7:#define DT_DRV_COMPAT st_lis2dh
 +
./zephyr/samples/shields/x_nucleo_iks01a2/src/main.c:22: const struct device *lsm303agr_a = device_get_binding(DT_LABEL(DT_INST(0, st_lis2dh)));
 +
./zephyr/samples/sensor/lsm303dlhc/src/main.c:42: DT_LABEL(DT_INST(0, st_lis2dh)));
 +
./zephyr/samples/sensor/lsm303dlhc/src/main.c:48: DT_LABEL(DT_INST(0, st_lis2dh)));
 +
Binary file ./zephyr/samples/sensor/lis2dh/src/.main.c.swp matches
 +
./zephyr/samples/sensor/lis2dh/src/main.c:53: const struct device *sensor = device_get_binding(DT_LABEL(DT_INST(0, st_lis2dh)));
 +
./zephyr/samples/sensor/lis2dh/src/main.c:57:       DT_LABEL(DT_INST(0, st_lis2dh)));
 +
</pre>
  
 
<!-- comment -->
 
<!-- comment -->
  
 
+
== [[#top|^]] References Related and Supporting ==
  
 
<ul>
 
<ul>
 
*  https://medium.com/@bartobri/untangling-complex-c-declarations-9b6a0cf88c96
 
*  https://medium.com/@bartobri/untangling-complex-c-declarations-9b6a0cf88c96
 
</ul>
 
</ul>

Revision as of 04:48, 8 August 2021

2021-08-05 Thursday

- OVERVIEW -
Zephyr RTOS explorations and building blocks

^ USART references

"Hello world" example build command:

 west build -b circuitdojo_feather_nrf9160ns samples/hello_world -p

Programming command:

 newtmgr -c serial image upload build/zephyr/app_update.bin


^ LIS2DH example code

ted@localhost:~/projects/embedded/ncs/v1.4.1$ grep -nr st_lis2dh ./*
./zephyr/drivers/sensor/lis2dh/lis2dh_spi.c:11:#define DT_DRV_COMPAT st_lis2dh
./zephyr/drivers/sensor/lis2dh/lis2dh_i2c.c:11:#define DT_DRV_COMPAT st_lis2dh
./zephyr/drivers/sensor/lis2dh/lis2dh_trigger.c:7:#define DT_DRV_COMPAT st_lis2dh
./zephyr/drivers/sensor/lis2dh/lis2dh.c:7:#define DT_DRV_COMPAT st_lis2dh
./zephyr/samples/shields/x_nucleo_iks01a2/src/main.c:22:	const struct device *lsm303agr_a = device_get_binding(DT_LABEL(DT_INST(0, st_lis2dh)));
./zephyr/samples/sensor/lsm303dlhc/src/main.c:42:						DT_LABEL(DT_INST(0, st_lis2dh)));
./zephyr/samples/sensor/lsm303dlhc/src/main.c:48:				DT_LABEL(DT_INST(0, st_lis2dh)));
Binary file ./zephyr/samples/sensor/lis2dh/src/.main.c.swp matches
./zephyr/samples/sensor/lis2dh/src/main.c:53:	const struct device *sensor = device_get_binding(DT_LABEL(DT_INST(0, st_lis2dh)));
./zephyr/samples/sensor/lis2dh/src/main.c:57:		       DT_LABEL(DT_INST(0, st_lis2dh)));


^ References Related and Supporting