Date   

Re: tinycrypt - mbedtls

Rodriguez, Sergio SF <sergio.sf.rodriguez@...>
 

Hi all,

One of the points was that the crypto algorithms and cyphers of mbedTLS cover the ones required for secure connection protocols (e.g. Thread). The mbedTLS library is more oriented to use by secure connection protocols (TLS, DTLS) and cryptography is not only its main usage.

TinyCrypt provides a minimal set of standard cryptography primitives and does not have TLS/DTLS support.

Regards
Sergio
________________________________________
From: Marcus Shawcroft [marcus.shawcroft(a)gmail.com]
Sent: Friday, December 09, 2016 12:48 AM
To: devel(a)lists.zephyrproject.org
Cc: Heath, Constanza M; Santes, Flavio; Joseph, Jithu; Rodriguez, Sergio SF; Tseng, Kuo-Lang
Subject: Re: tinycrypt - mbedtls

Adding the various maintainers CC...

Your thoughts/views on this would be much appreciated...

On 30 November 2016 at 11:27, Marcus Shawcroft
<marcus.shawcroft(a)gmail.com> wrote:
Hi,

We have two crypto libraries in /ext, tinycrypt and mbedtls. Can
someone help me understand:
- What is the plan / strategy here, are we moving the code base from
one to the other.
- Do we expect both to coexist in the tree long term.
- Where there are overlaps in features/capability are we intending to
prefer one implementation over the other.

?

Cheers
/Marcus


Daily Gerrit Digest

donotreply@...
 

NEW within last 24 hours:
- https://gerrit.zephyrproject.org/r/8945 : sensor: remove SENSOR_VALUE_TYPE_INT
- https://gerrit.zephyrproject.org/r/8949 : samples: zperf: Correct the include files path to eliminate compile errors
- https://gerrit.zephyrproject.org/r/8946 : sensor: use integers for simple value calculations
- https://gerrit.zephyrproject.org/r/8948 : Merge bluetooth branch into master
- https://gerrit.zephyrproject.org/r/8944 : sensor: remove unused Q16_16 value type
- https://gerrit.zephyrproject.org/r/8941 : drivers/flash: add stm32F4xx flash driver
- https://gerrit.zephyrproject.org/r/8942 : boards: stm32f4x: Enable Flash driver
- https://gerrit.zephyrproject.org/r/8947 : sensor: update drivers to not return double values
- https://gerrit.zephyrproject.org/r/8943 : frdm_k64f: Setup PTC12 pin as GPIO
- https://gerrit.zephyrproject.org/r/8937 : drivers: eth_ksdk: There is a unique L2 driver
- https://gerrit.zephyrproject.org/r/8936 : drivers: eth_ksdk: Theres is no longer 'ETHERNET' Kconfig option
- https://gerrit.zephyrproject.org/r/8931 : kernel: Refactor remaining time evaluation for timeouts
- https://gerrit.zephyrproject.org/r/8932 : kernel: Introduce new k_delayed_work_remaining_get API
- https://gerrit.zephyrproject.org/r/8929 : samples: sensor: fxos8700: Check sample fetch return value
- https://gerrit.zephyrproject.org/r/8921 : samples/logger-hook: Initialize variable to 0
- https://gerrit.zephyrproject.org/r/8923 : tests/iot/http: Initialize parser struct
- https://gerrit.zephyrproject.org/r/8919 : tests/tcp: Initialize buffer to NULL
- https://gerrit.zephyrproject.org/r/8926 : kernel: introduce single-threaded kernel
- https://gerrit.zephyrproject.org/r/8930 : subsys: disk: Refactor disk_access stuff into a directory
- https://gerrit.zephyrproject.org/r/8928 : driver: pwm: give arc the access to pwm
- https://gerrit.zephyrproject.org/r/8927 : samples: gpio: use correct gpio driver name
- https://gerrit.zephyrproject.org/r/8925 : cc3200: Ensure UART can wake up Zephyr after wfi in idle
- https://gerrit.zephyrproject.org/r/8913 : drivers: timers: remove unneeded include path addition
- https://gerrit.zephyrproject.org/r/8914 : drivers: slip: remove unneeded include path addition
- https://gerrit.zephyrproject.org/r/8920 : samples/logger-hook: Increase main stack size
- https://gerrit.zephyrproject.org/r/8924 : arm: Fix irq offload inline asm memory ordering.
- https://gerrit.zephyrproject.org/r/8917 : net: tcp: Select correct source address for SYNACK packets
- https://gerrit.zephyrproject.org/r/8922 : scripts: Add device tree parser script
- https://gerrit.zephyrproject.org/r/8912 : drivers: usb: remove unneeded include path additions
- https://gerrit.zephyrproject.org/r/8916 : jira: install jira pip package locally

UPDATED within last 24 hours:
- https://gerrit.zephyrproject.org/r/7612 : Bluetooth: AVDTP: Add AV-Stream data structure
- https://gerrit.zephyrproject.org/r/4358 : net: samples: Revamp QEMU-QEMU networking in echo_server & echo_client
- https://gerrit.zephyrproject.org/r/8714 : [DO NOT SUBMIT] RFC: Bluetooth: SDP client API user concept draft
- https://gerrit.zephyrproject.org/r/7263 : Bluetooth: HFP HF: Implement missing callback for indicators
- https://gerrit.zephyrproject.org/r/7076 : Bluetooth: AT: Change API name skip_whitespace to skip_space
- https://gerrit.zephyrproject.org/r/7030 : Bluetooth: HFP HF: SLC Connection send/parse CIND
- https://gerrit.zephyrproject.org/r/7077 : Bluetooth: HFP HF: SLC query indicators present value
- https://gerrit.zephyrproject.org/r/7029 : Bluetooth: AT: Command parsing for range of values
- https://gerrit.zephyrproject.org/r/7028 : Bluetooth: AT: Improve API() to work with buffer increment
- https://gerrit.zephyrproject.org/r/6291 : Bluetooth: SDP: Initial SDP client interface API
- https://gerrit.zephyrproject.org/r/8826 : pinmux: Introduce new ksdk pinmux driver
- https://gerrit.zephyrproject.org/r/8830 : pinmux: Deprecate the k64 pinmux driver
- https://gerrit.zephyrproject.org/r/8829 : k64: Change the default pinmux driver to the ksdk one
- https://gerrit.zephyrproject.org/r/8827 : frdm_k64f: Add pin init using ksdk pinmux driver
- https://gerrit.zephyrproject.org/r/8823 : drivers: spi_k64: Fix slave select
- https://gerrit.zephyrproject.org/r/8824 : drivers: spi_k64: Set PCS as activ low and continuous per default
- https://gerrit.zephyrproject.org/r/8893 : drivers: spi_k64: Fix premature shutdown of SPI
- https://gerrit.zephyrproject.org/r/7103 : defconfig: 96b_carbon: Enable the SPI driver by default
- https://gerrit.zephyrproject.org/r/7107 : tests: Add spi_masterslave test program
- https://gerrit.zephyrproject.org/r/7106 : boards: 96b_carbon_nrf51: add support for 96Boards Carbon nRF51 chip
- https://gerrit.zephyrproject.org/r/7102 : defconfig: nucleo_f401re: Enable the SPI driver by default
- https://gerrit.zephyrproject.org/r/7104 : drivers: spi: Add nRF5 SPI slave driver
- https://gerrit.zephyrproject.org/r/7101 : drivers: spi: Add STM32f4 SPI driver
- https://gerrit.zephyrproject.org/r/7098 : pinmux: stm32f4: Setup SPI pins
- https://gerrit.zephyrproject.org/r/8902 : defconfig: 96b_nitrogen: Enable the SPI slave driver by default
- https://gerrit.zephyrproject.org/r/5604 : drivers: spi: Add SPI_SLAVE flag to allow platform drivers to switch to slave mode
- https://gerrit.zephyrproject.org/r/7099 : pinmux: nucleo_f401re: Setup SPI pins on the board
- https://gerrit.zephyrproject.org/r/7100 : pinmux: 96b_carbon: Setup SPI pins on the board
- https://gerrit.zephyrproject.org/r/8894 : tests: spi_test: refactor and add support for the k64
- https://gerrit.zephyrproject.org/r/8886 : iot/dns: Introduce the dns_context structure
- https://gerrit.zephyrproject.org/r/8871 : random: Restructure RANDOM Kconfig
- https://gerrit.zephyrproject.org/r/6149 : Test: Ignore, just for testing purposes.
- https://gerrit.zephyrproject.org/r/8897 : samples/zoap-client: Fix using wrong addresses
- https://gerrit.zephyrproject.org/r/8887 : iot/dns: Update DNS client private routines
- https://gerrit.zephyrproject.org/r/8888 : iot/dns: Use a k_timer for the DNS rx routine
- https://gerrit.zephyrproject.org/r/8889 : iot/dns: Update sample application
- https://gerrit.zephyrproject.org/r/7217 : meta-zephyr-sdk: disable MIPS

MERGED within last 24 hours:
- https://gerrit.zephyrproject.org/r/8933 : samples: echo apps: Use Kconfig options to setup IPv6 on cc2520 config
- https://gerrit.zephyrproject.org/r/8910 : net: echo_client: Enable Bluetooth support
- https://gerrit.zephyrproject.org/r/8939 : samples: wpanusb: Removing legacy left-over
- https://gerrit.zephyrproject.org/r/8940 : Bluetooth: Fix stack overhead amount when debug is enabled
- https://gerrit.zephyrproject.org/r/8935 : Bluetooth: Fix left-over printf usage
- https://gerrit.zephyrproject.org/r/8934 : Bluetooth: Fix BT_STACK_DEBUG_EXTRA for BLUETOOTH_DEBUG_LOG
- https://gerrit.zephyrproject.org/r/8918 : drivers: bluetooth: nble: remove unneeded include path additions
- https://gerrit.zephyrproject.org/r/8907 : Bluetooth: L2CAP: Fix uninitialized pointer
- https://gerrit.zephyrproject.org/r/8906 : boards: nrf51_pca10028: Add button and LED definitions
- https://gerrit.zephyrproject.org/r/8908 : boards: nrf52_pca10040: Add button and LED definitions
- https://gerrit.zephyrproject.org/r/8909 : boards: nrf52840_pca10056: Add button and LED definitions
- https://gerrit.zephyrproject.org/r/8911 : boards: bbc_microbit: Add button and LED definitions
- https://gerrit.zephyrproject.org/r/8715 : samples: net: echo apps: Add cc2520 configuration for frdm_k64f
- https://gerrit.zephyrproject.org/r/6305 : net: echo_server: Enable Bluetooth support
- https://gerrit.zephyrproject.org/r/8744 : Bluetooth: shell: Add support for RFCOMM Disconnect
- https://gerrit.zephyrproject.org/r/8743 : Bluetooth: RFCOMM: Implement Disconnect API
- https://gerrit.zephyrproject.org/r/8905 : boards: arm: Refactor the GPIO and UART dependencies
- https://gerrit.zephyrproject.org/r/8761 : kernel: Disable interrupts after tick calculation in k_sleep()


Re: tinycrypt - mbedtls

Marcus Shawcroft <marcus.shawcroft@...>
 

Adding the various maintainers CC...

Your thoughts/views on this would be much appreciated...

On 30 November 2016 at 11:27, Marcus Shawcroft
<marcus.shawcroft(a)gmail.com> wrote:
Hi,

We have two crypto libraries in /ext, tinycrypt and mbedtls. Can
someone help me understand:
- What is the plan / strategy here, are we moving the code base from
one to the other.
- Do we expect both to coexist in the tree long term.
- Where there are overlaps in features/capability are we intending to
prefer one implementation over the other.

?

Cheers
/Marcus


Re: Reg: Zephyr 1.6 GPIO Mask and Unmask gpio interrupts

Tomasz Bursztyka
 

Hi,

Have a look at samples/basic/button/src/main.c for instance.

Zephyr GPIO API first requires to configure it through gpio_pin_configure()
and then to setup a callback and enabled/disable the relevant pin for
that callback (you can do it by port directly,
if you need multiples pins at once). We don't expose the mask/unmask
logic directly.

Tomasz

Hi tomasz and mahendra

what #define to be used in gpio_pin_configure to mask and unmask gpio
interrupt ?
can you help me with an example ?

On Thu, Dec 8, 2016 at 8:20 PM, Tomasz Bursztyka
<tomasz.bursztyka(a)linux.intel.com
<mailto:tomasz.bursztyka(a)linux.intel.com>> wrote:

Hi,

So from the application level to mask and unmask gpio interrupts
can I use QM_IR_MASK_INTERRUPTS & QM_IR_UNMASK_INTERRUPTS functions

(Or) should I use settings in gpio_pin_configure function ??
The second one. Always use the Zephyr GPIO API, so include/gpio.h

Tomasz


Re: k_timer

Flavio Santes <flavio.santes@...>
 

Hello Johan,

I was thinking on adding an additional parameter to the callbacks as seen in some cb's that receive the "user_data" parameter. So, it seems the best way to solve this is with CONTAINER_OF. Thanks for the feedback!

Regards,
Flavio


Re: k_timer

Johan Hedberg
 

Hi Flavio,

On Thu, Dec 08, 2016, Flavio Santes wrote:
After playing a bit with k_timer and the expiry and stop callbacks, I
realize that there is no way to manipulate application specific data
inside the callbacks. These routines are implemented by the user so it
makes sense that user-provided data can be manipulated inside expiry
and stop routines. What do you think?
At least I'm using CONTAINER_OF() to accomplish this. I think that's the
main idea of how these APIs are designed (same with k_work as well). So
you embed these objects in your "user data" struct and the get back your
own struct in the callback with the help of CONTAINER_OF.

Johan


Using/misusing k_sem_init()

Piotr MieĊ„kowski <piotr.mienkowski at gmail.com...>
 

Hi all,

I'm reviewing my new code for Atmel SAM low level Ethernet driver and
there is one place where I have a troubling use of k_sem_init()
function. Very shortly my situation:

As is typically the case Atmel's Ethernet MAC module is using a so
called descriptor list to define a linked list of transmission and
reception buffers. These shared buffers are then used to pass data
between MAC module and low level Ethernet driver.

Let's focus on the transmit path. Assuming we have two transmission
buffers and each buffer can store one full Ethernet frame the Ethernet
driver can send up to two frames to the MAC module but to send a third
frame it has to wait until a free buffer becomes available. This is a
perfect case for using counting semaphores.

During driver initialization phase we would call

k_sem_init(&tx_sem, 2, 2);

to initialize semaphores and then k_sem_take() in transmit thread every
time we send a frame and k_sem_give() in IRQ handler every time the MAC
module has read all the data from the transmit buffer. So far so good.
However, now we can have a situation where the driver (transmit thread)
has sent two frames, stopped on k_sem_take() call when trying to send a
third one and at that moment an unrecoverable transmission error
happens. At this point I would like to reinitialize the descriptor list
and also reinitialize the semaphores, i.e. I would like to call
k_sem_init() while there is a thread waiting for the very semaphore to
become available.

Would that be OK, is there a better solution?

Thanks and regards,
Piotr


k_timer

Flavio Santes <flavio.santes@...>
 

Hello,

After playing a bit with k_timer and the expiry and stop callbacks, I realize that there is no way to manipulate application specific data inside the callbacks. These routines are implemented by the user so it makes sense that user-provided data can be manipulated inside expiry and stop routines. What do you think?

Regards,
Flavio


Re: Reg: Zephyr 1.6 GPIO Mask and Unmask gpio interrupts

vishnuvaradan vishnuvaradan
 

Hi tomasz and mahendra

what #define to be used in gpio_pin_configure to mask and unmask gpio
interrupt ?
can you help me with an example ?

On Thu, Dec 8, 2016 at 8:20 PM, Tomasz Bursztyka <
tomasz.bursztyka(a)linux.intel.com> wrote:

Hi,

So from the application level to mask and unmask gpio interrupts can I use
QM_IR_MASK_INTERRUPTS & QM_IR_UNMASK_INTERRUPTS functions

(Or) should I use settings in gpio_pin_configure function ??


The second one. Always use the Zephyr GPIO API, so include/gpio.h

Tomasz


Daily Gerrit Digest

donotreply@...
 

NEW within last 24 hours:
- https://gerrit.zephyrproject.org/r/8905 : boards: arm: Refactor the GPIO and UART dependencies
- https://gerrit.zephyrproject.org/r/8894 : tests: spi_test: refactor and add support for the k64
- https://gerrit.zephyrproject.org/r/8893 : drivers: spi_k64: Fix premature shutdown of SPI
- https://gerrit.zephyrproject.org/r/8904 : frdm_k64f: Increase RX stack size for CC2520 driver
- https://gerrit.zephyrproject.org/r/8902 : defconfig: 96b_nitrogen: Enable the SPI slave driver by default
- https://gerrit.zephyrproject.org/r/8903 : net: Fix incorrect logging format specifiers
- https://gerrit.zephyrproject.org/r/8900 : tests: add gpio driver test case
- https://gerrit.zephyrproject.org/r/8901 : tests: add rtc driver test case
- https://gerrit.zephyrproject.org/r/8889 : iot/dns: Update sample application
- https://gerrit.zephyrproject.org/r/8887 : iot/dns: Update DNS client private routines
- https://gerrit.zephyrproject.org/r/8888 : iot/dns: Use a k_timer for the DNS rx routine
- https://gerrit.zephyrproject.org/r/8886 : iot/dns: Introduce the dns_context structure
- https://gerrit.zephyrproject.org/r/8897 : samples/zoap-client: Fix using wrong addresses
- https://gerrit.zephyrproject.org/r/8899 : samples: i2c_fram: update some comments
- https://gerrit.zephyrproject.org/r/8898 : samples: spi_fram: correct syntax error and update comments

UPDATED within last 24 hours:
- https://gerrit.zephyrproject.org/r/8761 : kernel: Disable interrupts after tick calculation in k_sleep()
- https://gerrit.zephyrproject.org/r/6305 : net: echo_server: Add Bluetooth support
- https://gerrit.zephyrproject.org/r/8715 : samples: net: echo apps: Add cc2520 configuration for frdm_k64f
- https://gerrit.zephyrproject.org/r/6291 : Bluetooth: SDP: Initial SDP client interface API
- https://gerrit.zephyrproject.org/r/7612 : Bluetooth: AVDTP: Add AV-Stream data structure
- https://gerrit.zephyrproject.org/r/7102 : defconfig: nucleo_f401re: Enable the SPI driver by default
- https://gerrit.zephyrproject.org/r/7104 : drivers: spi: Add nRF5 SPI slave driver
- https://gerrit.zephyrproject.org/r/7106 : boards: 96b_carbon_nrf51: add support for 96Boards Carbon nRF51 chip
- https://gerrit.zephyrproject.org/r/7107 : tests: Add spi_masterslave test program
- https://gerrit.zephyrproject.org/r/7101 : drivers: spi: Add STM32f4 SPI driver
- https://gerrit.zephyrproject.org/r/7103 : defconfig: 96b_carbon: Enable the SPI driver by default
- https://gerrit.zephyrproject.org/r/7098 : pinmux: stm32f4: Setup SPI pins
- https://gerrit.zephyrproject.org/r/7100 : pinmux: 96b_carbon: Setup SPI pins on the board
- https://gerrit.zephyrproject.org/r/5604 : drivers: spi: Add SPI_SLAVE flag to allow platform drivers to switch to slave mode
- https://gerrit.zephyrproject.org/r/7099 : pinmux: nucleo_f401re: Setup SPI pins on the board
- https://gerrit.zephyrproject.org/r/8837 : drivers: ethernet: Push DW specific Kconfig options to its own file
- https://gerrit.zephyrproject.org/r/8805 : samples: Add thermometer
- https://gerrit.zephyrproject.org/r/7660 : sensor: Add nRF5 temperature driver.
- https://gerrit.zephyrproject.org/r/8744 : Bluetooth: shell: Add support for RFCOMM Disconnect
- https://gerrit.zephyrproject.org/r/8743 : Bluetooth: RFCOMM: Implement Disconnect API
- https://gerrit.zephyrproject.org/r/5504 : dma: Introduce STM32F4x DMA driver
- https://gerrit.zephyrproject.org/r/7217 : meta-zephyr-sdk: disable MIPS
- https://gerrit.zephyrproject.org/r/8871 : random: Restructure RANDOM Kconfig
- https://gerrit.zephyrproject.org/r/8869 : Remove application calls to sys_rand32_init.
- https://gerrit.zephyrproject.org/r/8870 : random: Rewrite sys_rand32_init() with SYS_INIT()
- https://gerrit.zephyrproject.org/r/8868 : drivers: adc: replace device sync APIs with semaphores
- https://gerrit.zephyrproject.org/r/8873 : drivers: i2c: replace device sync APIs with semaphores
- https://gerrit.zephyrproject.org/r/8874 : driver: ethernet: Fix typo on enc28j60 driver Kconfig
- https://gerrit.zephyrproject.org/r/6149 : Test: Ignore, just for testing purposes.
- https://gerrit.zephyrproject.org/r/8783 : drivers: adc108s102: use unified kernel
- https://gerrit.zephyrproject.org/r/8831 : include: device: add deprecated attribute to device sync APIs
- https://gerrit.zephyrproject.org/r/7496 : soc/stm32f1: Add the new type of SoC STM32F107
- https://gerrit.zephyrproject.org/r/7614 : boards: add initial support for Nucleo-64 with Soc STM32F334
- https://gerrit.zephyrproject.org/r/7615 : boards: add initial support for STM32373C-EVAL with SoC STM32F373VC
- https://gerrit.zephyrproject.org/r/7611 : boards: add initial support for STM3210C-EVAL board with SoC STM32F107VC
- https://gerrit.zephyrproject.org/r/7626 : flash/stm32: flash driver for STM32F3x series microcontrollers
- https://gerrit.zephyrproject.org/r/7613 : soc/stm32: add initial support for STM32F3X series
- https://gerrit.zephyrproject.org/r/7625 : exti/stm32: add support for F334 & F373 MCUs
- https://gerrit.zephyrproject.org/r/7623 : clock/stm32: add STM32F3X reset and clock control
- https://gerrit.zephyrproject.org/r/7090 : arc: Define _arc_v2_irq_unit device
- https://gerrit.zephyrproject.org/r/6913 : power: Add ARC core suspend and resume support
- https://gerrit.zephyrproject.org/r/7622 : clock/stm32: add STM32F107 reset and clock control
- https://gerrit.zephyrproject.org/r/8835 : net: l2: ethernet: Handle Ethernet II full frame relevantly
- https://gerrit.zephyrproject.org/r/8802 : board: boards: add initial support for Nucleo-64 with Soc STM32F411RE

MERGED within last 24 hours:
- https://gerrit.zephyrproject.org/r/8891 : drivers/ethernet: Fix SYS_LOG_DBG format specifier for MAC
- https://gerrit.zephyrproject.org/r/8895 : Bluetooth: Fine-tune debug-based stack size increase
- https://gerrit.zephyrproject.org/r/8896 : Revert "CI: implement ccache for sanity."
- https://gerrit.zephyrproject.org/r/8892 : Bluetooth: L2CAP: Fix format specifier for hex uint16_t
- https://gerrit.zephyrproject.org/r/8890 : Bluetooth: Fix format specifier in address helpers
- https://gerrit.zephyrproject.org/r/8876 : net: Update TODO list on L2 and 15.4 tasks
- https://gerrit.zephyrproject.org/r/7587 : cc3200: Add generic definitions for LEDs and switches
- https://gerrit.zephyrproject.org/r/7586 : cc3200: Add a GPIO driver for the TI CC3200 LaunchXL
- https://gerrit.zephyrproject.org/r/7585 : cc3200: Add pinmux initialization for GPIO Ports
- https://gerrit.zephyrproject.org/r/7644 : CI: implement ccache for sanity.
- https://gerrit.zephyrproject.org/r/8860 : ext: Update Nordic MDK header files
- https://gerrit.zephyrproject.org/r/8858 : Bluetooth: controller: Use SERIES config instead of NRF52
- https://gerrit.zephyrproject.org/r/8859 : drivers: serial: nrf5: Undefine MDK macros to avoid conflict
- https://gerrit.zephyrproject.org/r/8861 : boards: nrf52: Specify nRF52832 IC in default config
- https://gerrit.zephyrproject.org/r/8862 : arch: arm: Add support for the Nordic nRF52840 IC
- https://gerrit.zephyrproject.org/r/8863 : boards: arm: Add support for the Nordic pca10056 PDK
- https://gerrit.zephyrproject.org/r/8882 : arch: arm: Refactor and cleanup nRF52 series arch code


Re: Reg: Zephyr 1.6 GPIO Mask and Unmask gpio interrupts

Tomasz Bursztyka
 

Hi,

So from the application level to mask and unmask gpio interrupts can I
use QM_IR_MASK_INTERRUPTS & QM_IR_UNMASK_INTERRUPTS functions

(Or) should I use settings in gpio_pin_configure function ??
The second one. Always use the Zephyr GPIO API, so include/gpio.h

Tomasz


Reg: Zephyr 1.6 GPIO Mask and Unmask gpio interrupts

Mahendravarman Rajarao (RBEI/EAA3) <Mahendravarman.Rajarao@...>
 

Hi

In our project we have connected a gpio line as interrupt from a peripheral to the quark controller.

In zephyr 1.6

So from the application level to mask and unmask gpio interrupts can I use QM_IR_MASK_INTERRUPTS & QM_IR_UNMASK_INTERRUPTS functions
(Or) should I use settings in gpio_pin_configure function ??

Please suggest

Mahendra


Daily Gerrit Digest

donotreply@...
 

NEW within last 24 hours:
- https://gerrit.zephyrproject.org/r/8879 : iot/dns: Update DNS client private routines
- https://gerrit.zephyrproject.org/r/8878 : iot/dns: Introduce the dns_context structure
- https://gerrit.zephyrproject.org/r/8881 : iot/dns: Update sample application
- https://gerrit.zephyrproject.org/r/8880 : iot/dns: Use a k_timer for the DNS rx routine
- https://gerrit.zephyrproject.org/r/8862 : arch: arm: Add support for the Nordic nRF52840 IC
- https://gerrit.zephyrproject.org/r/8863 : boards: arm: Add support for the Nordic pca10056 PDK
- https://gerrit.zephyrproject.org/r/8882 : arch: arm: Refactor and cleanup nRF52 series arch code
- https://gerrit.zephyrproject.org/r/8866 : 0001-armv7m-support-basepri-primask-interrupt-locking.patch: removed
- https://gerrit.zephyrproject.org/r/8877 : Bluetooth: Fix left-over printf use in h5.c
- https://gerrit.zephyrproject.org/r/8861 : boards: nrf52: Specify nRF52832 IC in default config
- https://gerrit.zephyrproject.org/r/8859 : drivers: serial: nrf5: Undefine MDK macros to avoid conflict
- https://gerrit.zephyrproject.org/r/8858 : Bluetooth: controller: Use SERIES config instead of NRF52
- https://gerrit.zephyrproject.org/r/8860 : ext: Update Nordic MDK header files
- https://gerrit.zephyrproject.org/r/8876 : net: Update TODO list on L2 and 15.4 tasks
- https://gerrit.zephyrproject.org/r/8875 : kernel/timer: Allow passing user-provided data to timer callbacks
- https://gerrit.zephyrproject.org/r/8874 : driver: ethernet: Fix typo on enc28j60 driver Kconfig
- https://gerrit.zephyrproject.org/r/8871 : random: Restructure RANDOM Kconfig
- https://gerrit.zephyrproject.org/r/8870 : random: Rewrite sys_rand32_init() with SYS_INIT()
- https://gerrit.zephyrproject.org/r/8869 : Remove application calls to sys_rand32_init.
- https://gerrit.zephyrproject.org/r/8873 : drivers: i2c: replace device sync APIs with semaphores
- https://gerrit.zephyrproject.org/r/8868 : drivers: adc: replace device sync APIs with semaphores

UPDATED within last 24 hours:
- https://gerrit.zephyrproject.org/r/6291 : Bluetooth: SDP: Initial SDP client interface API
- https://gerrit.zephyrproject.org/r/8824 : drivers: spi_k64: Set PCS as activ low and continuous per default
- https://gerrit.zephyrproject.org/r/8823 : drivers: spi_k64: Fix slave select
- https://gerrit.zephyrproject.org/r/8712 : serial: added support for the riscv-qemu UART driver
- https://gerrit.zephyrproject.org/r/7612 : Bluetooth: AVDTP: Add AV-Stream data structure
- https://gerrit.zephyrproject.org/r/7492 : Bluetooth: A2DP: Added Preset Structure
- https://gerrit.zephyrproject.org/r/6719 : Bluetooth: A2DP: Stream End Point Structure
- https://gerrit.zephyrproject.org/r/6717 : Bluetooth: A2DP: A2DP sink service record registration
- https://gerrit.zephyrproject.org/r/6720 : Bluetooth: A2DP: Stream End Point Registration
- https://gerrit.zephyrproject.org/r/4871 : util.h: Add DEFINED() macro for expresion-legal ifdef-checking
- https://gerrit.zephyrproject.org/r/4623 : eth: Adjust ENC28J60 transmission/reception return codes.
- https://gerrit.zephyrproject.org/r/7647 : net_buf: fixes an issue with frames in multiple fragments
- https://gerrit.zephyrproject.org/r/6384 : stm32lx: spi add SPI driver for STM32Lx family
- https://gerrit.zephyrproject.org/r/8841 : drivers: ethernet: enc25j60: Fix one tiny naming issue
- https://gerrit.zephyrproject.org/r/8854 : samples: net: mbedtls: Let's enable fastest enc28j60 speed on a101
- https://gerrit.zephyrproject.org/r/8836 : drivers: ethernet: enc28j60 provides a full frame to upper layers
- https://gerrit.zephyrproject.org/r/8843 : drivers: ethernet: Add logging to enc28j60 driver
- https://gerrit.zephyrproject.org/r/8838 : drivers: ethernet: Enable sys log levels depending on NET_ETHERNET_L2
- https://gerrit.zephyrproject.org/r/8855 : drivers: ethernet: Removing useless legacy enc28j60 driver
- https://gerrit.zephyrproject.org/r/8839 : drivers: ethernet: Fix a tiny style issue in enc28j60
- https://gerrit.zephyrproject.org/r/8844 : drivers: ethernet: Expose enc28j60 RX thread stack size and prio config
- https://gerrit.zephyrproject.org/r/8840 : drivers: ethernet: Fix a Kconfig comment for enc28j60
- https://gerrit.zephyrproject.org/r/8846 : samples: net: Add Arduino 101 dedicated config for dhcpv4_client
- https://gerrit.zephyrproject.org/r/8842 : drivers: ethernet: There is a unique L2 driver for enc28j60
- https://gerrit.zephyrproject.org/r/8835 : net: l2: ethernet: Handle Ethernet II full frame relevantly
- https://gerrit.zephyrproject.org/r/8845 : samples: net: Remove useless prj.mdef from dhcpv4_client
- https://gerrit.zephyrproject.org/r/8837 : drivers: ethernet: Push DW specific Kconfig options to its own file
- https://gerrit.zephyrproject.org/r/7660 : sensor: Add nRF5 temperature driver.
- https://gerrit.zephyrproject.org/r/8813 : driver: ethernet: adds reset signal to enc28j60 driver
- https://gerrit.zephyrproject.org/r/8805 : samples: Add thermometer
- https://gerrit.zephyrproject.org/r/7644 : CI: implement ccache for sanity.
- https://gerrit.zephyrproject.org/r/8833 : net: if: Move and document net_if_api structure
- https://gerrit.zephyrproject.org/r/7064 : arch: added support for the riscv32 architecture
- https://gerrit.zephyrproject.org/r/8819 : arc: Add cc to clobber list for sleep instruction
- https://gerrit.zephyrproject.org/r/7635 : net: ieee802154: Add PAN association request
- https://gerrit.zephyrproject.org/r/7633 : net: ieee802154: Integrate beacon frame handling
- https://gerrit.zephyrproject.org/r/7638 : net: ieee802154: Add PAN disassociation request
- https://gerrit.zephyrproject.org/r/7639 : net: ieee802154: Handle disassocation notification from PAN coordinator
- https://gerrit.zephyrproject.org/r/7640 : samples: ieee802154: Let's proceed with an active scan
- https://gerrit.zephyrproject.org/r/7634 : samples: net: ieee802154: Once cc2520 is up, let's initiate a scan
- https://gerrit.zephyrproject.org/r/7636 : net: ieee802154: Integrate MAC Command frames handling
- https://gerrit.zephyrproject.org/r/7637 : net: ieee80215: Add Active Scan request
- https://gerrit.zephyrproject.org/r/7632 : net: ieee802154: Add grounds for passive scan

MERGED within last 24 hours:
- https://gerrit.zephyrproject.org/r/8864 : net: Fix incorrect logging format specifiers
- https://gerrit.zephyrproject.org/r/8865 : Bluetooth: Fix incorrect logging format specifiers
- https://gerrit.zephyrproject.org/r/8867 : Bluetooth: Switch from printf to printk functions
- https://gerrit.zephyrproject.org/r/8857 : Merge remote-tracking branch 'origin/arm'
- https://gerrit.zephyrproject.org/r/8848 : sys_log: Remove option of mapping to printf
- https://gerrit.zephyrproject.org/r/8818 : doc: adapt source tree for new structure
- https://gerrit.zephyrproject.org/r/8648 : Bluetooth: GATT: Update CCC addresses
- https://gerrit.zephyrproject.org/r/8647 : Bluetooth: GATT: Fix using bt_addr_le_cmp with destination address
- https://gerrit.zephyrproject.org/r/8646 : Bluetooth: Fix bt_conn_lookup*
- https://gerrit.zephyrproject.org/r/8698 : meta-zephyr-sdk-build.sh: Build riscv32 toolchain


Daily Gerrit Digest

donotreply@...
 

NEW within last 24 hours:
- https://gerrit.zephyrproject.org/r/8835 : net: l2: ethernet: Handle Ethernet II full frame relevantly
- https://gerrit.zephyrproject.org/r/8852 : arch: arm: Add support for the Nordic nRF52840 IC
- https://gerrit.zephyrproject.org/r/8848 : sys_log: Remove option of mapping to printf
- https://gerrit.zephyrproject.org/r/8849 : Bluetooth: controller: Use SERIES config instead of NRF52
- https://gerrit.zephyrproject.org/r/8853 : boards: arm: Add support for the Nordic pca10056 PDK
- https://gerrit.zephyrproject.org/r/8850 : drivers: serial: nrf5: Undefine MDK macros to avoid conflict
- https://gerrit.zephyrproject.org/r/8851 : boards: nrf52: Specify nRF52832 IC in default config
- https://gerrit.zephyrproject.org/r/8847 : ext: Update Nordic MDK header files
- https://gerrit.zephyrproject.org/r/8855 : drivers: ethernet: Removing useless legacy enc28j60 driver
- https://gerrit.zephyrproject.org/r/8846 : samples: net: Add Arduino 101 dedicated config for dhcpv4_client
- https://gerrit.zephyrproject.org/r/8854 : samples: net: mbedtls: Let's enable fastest enc28j60 speed on a101
- https://gerrit.zephyrproject.org/r/8845 : samples: net: Remove useless prj.mdef from dhcpv4_client
- https://gerrit.zephyrproject.org/r/8844 : drivers: ethernet: Expose enc28j60 RX thread stack size and prio config
- https://gerrit.zephyrproject.org/r/8843 : drivers: ethernet: Add logging to enc28j60 driver
- https://gerrit.zephyrproject.org/r/8842 : drivers: ethernet: There is a unique L2 driver for enc28j60
- https://gerrit.zephyrproject.org/r/8841 : drivers: ethernet: enc25j60: Fix one tiny naming issue
- https://gerrit.zephyrproject.org/r/8840 : drivers: ethernet: Fix a Kconfig comment for enc28j60
- https://gerrit.zephyrproject.org/r/8839 : drivers: ethernet: Fix a tiny style issue in enc28j60
- https://gerrit.zephyrproject.org/r/8838 : drivers: ethernet: Enable sys log levels depending on NET_ETHERNET_L2
- https://gerrit.zephyrproject.org/r/8837 : drivers: ethernet: Push DW specific Kconfig options to its own file
- https://gerrit.zephyrproject.org/r/8836 : drivers: ethernet: enc28j60 provides a full frame to upper layers
- https://gerrit.zephyrproject.org/r/8833 : net: if: Move and document net_if_api structure
- https://gerrit.zephyrproject.org/r/8834 : net: if: Add a dedicated place holder for device specific attributes
- https://gerrit.zephyrproject.org/r/8831 : include: device: add deprecated attribute to device sync APIs
- https://gerrit.zephyrproject.org/r/8832 : drivers: spi: replace device sync APIs with semaphores
- https://gerrit.zephyrproject.org/r/8830 : pinmux: Deprecate the k64 pinmux driver
- https://gerrit.zephyrproject.org/r/8829 : k64: Change the default pinmux driver to the ksdk one
- https://gerrit.zephyrproject.org/r/8828 : hexiwear_k64: Add pin init using ksdk pinmux driver
- https://gerrit.zephyrproject.org/r/8827 : frdm_k64f: Add pin init using ksdk pinmux driver
- https://gerrit.zephyrproject.org/r/8826 : pinmux: Introduce new ksdk pinmux driver
- https://gerrit.zephyrproject.org/r/8824 : drivers: spi_k64: Set PCS as activ low and continuous per default
- https://gerrit.zephyrproject.org/r/8823 : drivers: spi_k64: Fix slave select

UPDATED within last 24 hours:
- https://gerrit.zephyrproject.org/r/6291 : Bluetooth: SDP: Initial SDP client interface API
- https://gerrit.zephyrproject.org/r/7660 : sensor: Add nRF5 temperature driver.
- https://gerrit.zephyrproject.org/r/8805 : samples: Add thermometer
- https://gerrit.zephyrproject.org/r/7632 : net: ieee802154: Add grounds for passive scan
- https://gerrit.zephyrproject.org/r/7640 : samples: ieee802154: Let's proceed with an active scan
- https://gerrit.zephyrproject.org/r/7639 : net: ieee802154: Handle disassocation notification from PAN coordinator
- https://gerrit.zephyrproject.org/r/7638 : net: ieee802154: Add PAN disassociation request
- https://gerrit.zephyrproject.org/r/7637 : net: ieee80215: Add Active Scan request
- https://gerrit.zephyrproject.org/r/7636 : net: ieee802154: Integrate MAC Command frames handling
- https://gerrit.zephyrproject.org/r/7635 : net: ieee802154: Add PAN association request
- https://gerrit.zephyrproject.org/r/7634 : samples: net: ieee802154: Once cc2520 is up, let's initiate a scan
- https://gerrit.zephyrproject.org/r/7633 : net: ieee802154: Integrate beacon frame handling
- https://gerrit.zephyrproject.org/r/6911 : arcv2_irq: Add power management suspend/resume
- https://gerrit.zephyrproject.org/r/6913 : power: Add ARC core suspend and resume support
- https://gerrit.zephyrproject.org/r/7090 : arc: Define _arc_v2_irq_unit device
- https://gerrit.zephyrproject.org/r/8819 : arc: Add cc to clobber list for sleep instruction
- https://gerrit.zephyrproject.org/r/8761 : kernel: Disable interrupts after tick calculation in k_sleep()
- https://gerrit.zephyrproject.org/r/7263 : Bluetooth: HFP HF: Implement missing callback for indicators
- https://gerrit.zephyrproject.org/r/7028 : Bluetooth: AT: Improve API() to work with buffer increment
- https://gerrit.zephyrproject.org/r/7077 : Bluetooth: HFP HF: SLC query indicators present value
- https://gerrit.zephyrproject.org/r/7076 : Bluetooth: AT: Change API name skip_whitespace to skip_space
- https://gerrit.zephyrproject.org/r/7029 : Bluetooth: AT: Command parsing for range of values
- https://gerrit.zephyrproject.org/r/7030 : Bluetooth: HFP HF: SLC Connection send/parse CIND
- https://gerrit.zephyrproject.org/r/8714 : [DO NOT SUBMIT] Bluetooth: SDP: SDP client API user
- https://gerrit.zephyrproject.org/r/6912 : arcv2_timer0: Add suspend and resume support
- https://gerrit.zephyrproject.org/r/8726 : kernel: legacy: Fix int overflow in nano_stack_init
- https://gerrit.zephyrproject.org/r/7612 : Bluetooth: AVDTP: Add AV-Stream data structure
- https://gerrit.zephyrproject.org/r/8793 : samples/mbedtls_dtlsclient: Using semaphore for rx
- https://gerrit.zephyrproject.org/r/7644 : CI: implement ccache for sanity.
- https://gerrit.zephyrproject.org/r/8712 : serial: added support for the riscv-qemu UART driver
- https://gerrit.zephyrproject.org/r/8802 : board: boards: add initial support for Nucleo-64 with Soc STM32F411RE
- https://gerrit.zephyrproject.org/r/8818 : doc: adapt source tree for new structure
- https://gerrit.zephyrproject.org/r/7064 : arch: added support for the riscv32 architecture
- https://gerrit.zephyrproject.org/r/7066 : unified: added _MOVE_INSTR for RISCV32 architecture
- https://gerrit.zephyrproject.org/r/8711 : timer: added support for the riscv-qemu timer driver
- https://gerrit.zephyrproject.org/r/8709 : riscv32: added support for the pulpino soc
- https://gerrit.zephyrproject.org/r/8710 : riscv32: added support for the riscv32-qemu soc
- https://gerrit.zephyrproject.org/r/7068 : boards: added support for the zedboard_pulpino board
- https://gerrit.zephyrproject.org/r/7067 : timer: added timer driver for the pulpino SOC
- https://gerrit.zephyrproject.org/r/8713 : boards: added support for the qemu_riscv32 board
- https://gerrit.zephyrproject.org/r/7063 : scripts: added Makefile to handle an external riscv32 toolchain
- https://gerrit.zephyrproject.org/r/7065 : kernel: updated default IDLE_STACK_SIZE to 512 for RISCV32
- https://gerrit.zephyrproject.org/r/6129 : compare footprint: add sanity args files
- https://gerrit.zephyrproject.org/r/7626 : flash/stm32: flash driver for STM32F3x series microcontrollers
- https://gerrit.zephyrproject.org/r/7769 : sanitycheck: add --log-file to log everything to a file too
- https://gerrit.zephyrproject.org/r/7622 : clock/stm32: add STM32F107 reset and clock control
- https://gerrit.zephyrproject.org/r/7623 : clock/stm32: add STM32F3X reset and clock control

MERGED within last 24 hours:
- https://gerrit.zephyrproject.org/r/8825 : Revert "Enable shallow clone of all checkouts"
- https://gerrit.zephyrproject.org/r/8822 : tests: net: exclude quark_d2000_crb
- https://gerrit.zephyrproject.org/r/8820 : samples: net: Leds demo needs GPIO on all platform
- https://gerrit.zephyrproject.org/r/7697 : printk: Add APIs to print into strings instead of default output
- https://gerrit.zephyrproject.org/r/7696 : printk: Refactor to allow passing a parsing context around
- https://gerrit.zephyrproject.org/r/8698 : meta-zephyr-sdk-build.sh: Build riscv32 toolchain
- https://gerrit.zephyrproject.org/r/8817 : scripts: fix meta-zephyr-sdk-clone.sh to use the correct patch directory
- https://gerrit.zephyrproject.org/r/8775 : binutils (riscv32): added patch to account for old eret opcode
- https://gerrit.zephyrproject.org/r/7648 : Merge net branch into master


Early support for Nordic's nRF52840 pushed to gerrit

Carles Cufi
 

Hi all,

Today a new IC by Nordic Semiconductor, the nRF52840, has been announced. We also pushed preliminary support for both the IC and the Preview Development Kit (PDK PCA10056) to gerrit in preparation for further development.

More about the IC:
http://www.nordicsemi.com/eng/Products/nRF52840

Main gerrit patch:
https://gerrit.zephyrproject.org/r/#/c/8852/

Regards,

Carles


Re: Zephyr versioning (1.6.0 or 0.1.6?)

Jon Trulson
 

On Mon, 5 Dec 2016, Jon Trulson wrote:

Hi,

I noticed that a new Zephyr version was tagged, 1.6.0. I am confused a
little bit by the version number though:

Is it really Version 1.6.0? Or 0.1.6?

If you look at (and I tested this with a simple example) the results of
the version macros (SYS_KERNEL_VER_MAJOR(), et. al.) and the kernel
version (KERNEL_VERSION_NUMBER), I get the following results:

SYS_KERNEL_VER_MAJOR(KERNEL_VERSION_NUMBER) == 0
SYS_KERNEL_VER_MINOR(KERNEL_VERSION_NUMBER) == 1
SYS_KERNEL_VER_PATCHLEVEL(KERNEL_VERSION_NUMBER) == 6

So, this implies the "real" version is 0.1.6. Am I missing something?
Responding to my own post - clearly KERNEL_VERSION_NUMBER is the wrong
macro. It seems like KERNELVERSION is supposed to be the correct one
for these macros? A little confusing.

Anyway, I just decided to use KERNEL_VERSION_MAJOR,
KERNEL_VERSION_MINOR, and KERNEL_PATCHLEVEL directly. This works
fine.

Sorry for the noise.

--
Jon Trulson

"If we can hit that bull's-eye, the rest of the dominoes will fall
like a house of cards... Checkmate."
-- Zapp Brannigan


Zephyr versioning (1.6.0 or 0.1.6?)

Jon Trulson
 

Hi,

I noticed that a new Zephyr version was tagged, 1.6.0. I am confused a
little bit by the version number though:

Is it really Version 1.6.0? Or 0.1.6?

If you look at (and I tested this with a simple example) the results of
the version macros (SYS_KERNEL_VER_MAJOR(), et. al.) and the kernel
version (KERNEL_VERSION_NUMBER), I get the following results:

SYS_KERNEL_VER_MAJOR(KERNEL_VERSION_NUMBER) == 0
SYS_KERNEL_VER_MINOR(KERNEL_VERSION_NUMBER) == 1
SYS_KERNEL_VER_PATCHLEVEL(KERNEL_VERSION_NUMBER) == 6

So, this implies the "real" version is 0.1.6. Am I missing something?

Thanks!


--
Jon Trulson

"If we can hit that bull's-eye, the rest of the dominoes will fall
like a house of cards... Checkmate."
-- Zapp Brannigan


Re: reg: zephyr 1.6 => samples\usb\console

Joseph, Jithu
 

Noticed a typo in my earlier reply, corrected inline

Thanks
Jithu

From: Joseph, Jithu [mailto:jithu.joseph(a)intel.com]
Sent: Monday, December 5, 2016 10:49 AM
To: Mahendravarman Rajarao (RBEI/EAA3) <Mahendravarman.Rajarao(a)in.bosch.com>; devel(a)lists.zephyrproject.org
Subject: [devel] Re: reg: zephyr 1.6 => samples\usb\console

Please find the answers below :

Device binding is not needed for console display ?
No - application code need not do that. It is enough that the apps define CONFIG_UART_CONSOLE_ON_DEV_NAME if they want to override the default console device


Console output devices are opened from uart_console_init() ( drivers/console/uart_console.c ) as

uart_console_dev = device_get_binding(CONFIG_UART_CONSOLE_ON_DEV_NAME);


If CONFIG_USB_UART console
[Joseph, Jithu] ] if CONFIG_USB_UART_CONSOLE
is defined, CONFIG_UART_CONSOLE_ON_DEV_NAME defaults to "CDC_ACM" via (arch/x86/soc/intel_quark/quark_se/Kconfig.defconfig.series)


What the difference between the samples\usb\cdc_acm and samples\usb\console codes ?

The first one implements an echo type console on usb UART, wherein whatever character you type in minicom comes to the zephyr device and is echoed back to minicom. (While the debug prints still get routed to the actual physical uart). So in the sample app code you would see this logic.



In the second case, the config options cause the effect that all the debug prints come out via minicom on the host via the USB UART . The logic is mostly in the console driver (to plumb all the printks to USB UART) and the sample is meant to show config options as called out in README.



Hope that helps.

Thanks
Jithu

From: Mahendravarman Rajarao (RBEI/EAA3) [mailto:Mahendravarman.Rajarao(a)in.bosch.com]
Sent: Monday, December 5, 2016 5:18 AM
To: devel(a)lists.zephyrproject.org<mailto:devel(a)lists.zephyrproject.org>
Subject: [devel] reg: zephyr 1.6 => samples\usb\console

Hi

Please help on the following

In the latest zephyr 1.6 release , under samples\usb\console folder, the example is given to show the console output coming to USB UART.

dev = device_get_binding(CONFIG_CDC_ACM_PORT_NAME); is missing in this console example
Device binding is not needed for console display ?


What the difference between the samples\usb\cdc_acm and samples\usb\console codes ?

Best regards
Mahendravarman


Re: reg: zephyr 1.6 => samples\usb\console

Joseph, Jithu
 

Please find the answers below :

Device binding is not needed for console display ?
No - application code need not do that. It is enough that the apps define CONFIG_UART_CONSOLE_ON_DEV_NAME if they want to override the default console device


Console output devices are opened from uart_console_init() ( drivers/console/uart_console.c ) as

uart_console_dev = device_get_binding(CONFIG_UART_CONSOLE_ON_DEV_NAME);


If CONFIG_USB_UART console is defined, CONFIG_UART_CONSOLE_ON_DEV_NAME defaults to "CDC_ACM" via (arch/x86/soc/intel_quark/quark_se/Kconfig.defconfig.series)


What the difference between the samples\usb\cdc_acm and samples\usb\console codes ?

The first one implements an echo type console on usb UART, wherein whatever character you type in minicom comes to the zephyr device and is echoed back to minicom. (While the debug prints still get routed to the actual physical uart). So in the sample app code you would see this logic.



In the second case, the config options cause the effect that all the debug prints come out via minicom on the host via the USB UART . The logic is mostly in the console driver (to plumb all the printks to USB UART) and the sample is meant to show config options as called out in README.



Hope that helps.

Thanks
Jithu

From: Mahendravarman Rajarao (RBEI/EAA3) [mailto:Mahendravarman.Rajarao(a)in.bosch.com]
Sent: Monday, December 5, 2016 5:18 AM
To: devel(a)lists.zephyrproject.org
Subject: [devel] reg: zephyr 1.6 => samples\usb\console

Hi

Please help on the following

In the latest zephyr 1.6 release , under samples\usb\console folder, the example is given to show the console output coming to USB UART.

dev = device_get_binding(CONFIG_CDC_ACM_PORT_NAME); is missing in this console example
Device binding is not needed for console display ?


What the difference between the samples\usb\cdc_acm and samples\usb\console codes ?

Best regards
Mahendravarman


Daily Gerrit Digest

donotreply@...
 

NEW within last 24 hours:
- https://gerrit.zephyrproject.org/r/8819 : arc: Add cc to clobber list for sleep instruction
- https://gerrit.zephyrproject.org/r/8818 : doc: adapt source tree for new structure
- https://gerrit.zephyrproject.org/r/8817 : scripts: fix meta-zephyr-sdk-clone.sh to use the correct patch directory

UPDATED within last 24 hours:
- https://gerrit.zephyrproject.org/r/7648 : Merge net branch into master
- https://gerrit.zephyrproject.org/r/7263 : Bluetooth: HFP HF: Implement missing callback for indicators
- https://gerrit.zephyrproject.org/r/7077 : Bluetooth: HFP HF: SLC query indicators present value
- https://gerrit.zephyrproject.org/r/7030 : Bluetooth: HFP HF: SLC Connection send/parse CIND
- https://gerrit.zephyrproject.org/r/7076 : Bluetooth: AT: Change API name skip_whitespace to skip_space
- https://gerrit.zephyrproject.org/r/7028 : Bluetooth: AT: Improve API() to work with buffer increment
- https://gerrit.zephyrproject.org/r/7029 : Bluetooth: AT: Command parsing for range of values
- https://gerrit.zephyrproject.org/r/7623 : clock/stm32: add STM32F3X reset and clock control
- https://gerrit.zephyrproject.org/r/7622 : clock/stm32: add STM32F107 reset and clock control
- https://gerrit.zephyrproject.org/r/7626 : flash/stm32: flash driver for STM32F3x series microcontrollers
- https://gerrit.zephyrproject.org/r/7625 : exti/stm32: add support for F334 & F373 MCUs
- https://gerrit.zephyrproject.org/r/7615 : boards: add initial support for STM32373C-EVAL with SoC STM32F373VC
- https://gerrit.zephyrproject.org/r/7614 : boards: add initial support for Nucleo-64 with Soc STM32F334
- https://gerrit.zephyrproject.org/r/7613 : soc/stm32: add initial support for STM32F3X series
- https://gerrit.zephyrproject.org/r/8805 : samples: Add thermometer
- https://gerrit.zephyrproject.org/r/7660 : sensor: Add nRF5 temperature driver.
- https://gerrit.zephyrproject.org/r/7104 : drivers: spi: Add nRF5 SPI slave driver
- https://gerrit.zephyrproject.org/r/7611 : boards: add initial support for STM3210C-EVAL board with SoC STM32F107VC
- https://gerrit.zephyrproject.org/r/6291 : Bluetooth: SDP: Initial SDP client interface API
- https://gerrit.zephyrproject.org/r/8714 : [DO NOT SUBMIT] Bluetooth: SDP: SDP client API user
- https://gerrit.zephyrproject.org/r/7496 : soc/stm32f1: Add the new type of SoC STM32F107
- https://gerrit.zephyrproject.org/r/8761 : kernel: Disable interrupts after tick calculation in k_sleep()
- https://gerrit.zephyrproject.org/r/8743 : Bluetooth: RFCOMM: Implement Disconnect API
- https://gerrit.zephyrproject.org/r/8744 : Bluetooth: shell: Add support for RFCOMM Disconnect
- https://gerrit.zephyrproject.org/r/8698 : meta-zephyr-sdk-build.sh: Build riscv32 toolchain

MERGED within last 24 hours:
- https://gerrit.zephyrproject.org/r/8815 : fs/disk: Improve code readability
- https://gerrit.zephyrproject.org/r/8816 : drivers: Remove legacy nanokernel.h include
- https://gerrit.zephyrproject.org/r/8781 : kernel: Fix CC clobber in cortex_m4 irq_lock()
- https://gerrit.zephyrproject.org/r/8784 : arm: Refactor cortex-m4 irq_lock tmp handling.
- https://gerrit.zephyrproject.org/r/8785 : arm: Refactor irq_lock inline asm formatting.
- https://gerrit.zephyrproject.org/r/7698 : Bluetooth: Extend advertising parameters with optional own address
- https://gerrit.zephyrproject.org/r/8674 : uart: Enable clock control in CMSDK APB UART driver
- https://gerrit.zephyrproject.org/r/8655 : Bluetooth: Make LE random address helpers public
- https://gerrit.zephyrproject.org/r/8753 : Blueooth: AVDTP: Fix Coding style

5821 - 5840 of 7817