[PATCH 5/6] dev: Use C11 mutex for SPI framework

2016-12-14 Thread Sebastian Huber
Update #2776. --- cpukit/dev/include/dev/spi/spi.h | 6 +++-- cpukit/dev/spi/spi-bus.c | 54 ++-- testsuites/libtests/spi01/init.c | 2 -- 3 files changed, 22 insertions(+), 40 deletions(-) diff --git a/cpukit/dev/include/dev/spi/spi.h b/cpukit/dev/in

[PATCH 2/6] termios: Add TERMIOS_IRQ_SERVER_DRIVEN

2016-12-14 Thread Sebastian Huber
From: Alexander Krutwig Add a new interrupt server driven Termios mode (TERMIOS_IRQ_DRIVEN). This mode is identical to the interrupt driven mode except that a mutex is used for device level locking. The intended use case for this mode are device drivers that use the interrupt server, e.g. SPI or

[PATCH 4/6] termios: Use C11 mutex for global state

2016-12-14 Thread Sebastian Huber
Update #2840. --- cpukit/libcsupport/include/rtems/libio.h| 5 +++- cpukit/libcsupport/include/rtems/termiostypes.h | 2 ++ cpukit/libcsupport/src/termios.c| 36 ++--- cpukit/libcsupport/src/termiosinitialize.c | 32 ++ cpukit/

[PATCH 3/6] termios: Use C11 mutex for input/output

2016-12-14 Thread Sebastian Huber
Use C11 mutexes instead of Classic semaphores as a performance optimization and to simplify the application configuration. A performance of Classic semaphores vs. C11 mutexes was measured on the arm/atsam BSP. A NXP SC16IS752 was connected via SPI. The RTEMS application used one task to read from

[PATCH 1/6] termios: Use mutex for task driven mode

2016-12-14 Thread Sebastian Huber
Termios has a task driven mode (TERMIOS_TASK_DRIVEN). This mode aims to avoid long sections with disabled interrupts. This is only partly implemented since the device level state is still protected by disabled interrupts. Use a mutex to protect the device level state in task driven mode to fix this

[PATCH 6/6] dev: Use C11 mutex for I2C framework

2016-12-14 Thread Sebastian Huber
--- cpukit/dev/i2c/i2c-bus.c | 54 +--- cpukit/dev/include/dev/i2c/i2c.h | 4 ++- testsuites/libtests/i2c01/init.c | 2 -- 3 files changed, 20 insertions(+), 40 deletions(-) diff --git a/cpukit/dev/i2c/i2c-bus.c b/cpukit/dev/i2c/i2c-bus.c index 0f27d0

Re: Update Atsam BSP Support

2016-12-14 Thread Sebastian Huber
I would like to refresh this topic. On 05/10/16 16:17, Gedare Bloom wrote: That makes sense. On Wed, Oct 5, 2016 at 1:17 AM, Sebastian Huber wrote: >One way to keep this in sync would be to simply write the README of each BSP >in a certain format, e.g. trac wiki and then simply include the c

[PATCH] dev: Add NXP SC16IS752 serial device driver

2016-12-14 Thread Sebastian Huber
From: Alexander Krutwig Update #2841. --- cpukit/dev/Makefile.am| 7 + cpukit/dev/include/dev/serial/nxp-sc16is752.h | 165 + cpukit/dev/preinstall.am | 9 + cpukit/dev/serial/nxp-sc16is752-regs.h| 108 +++ cpukit/d

C11 Re: [PATCH 3/6] termios: Use C11 mutex for input/output

2016-12-14 Thread Chris Johns
On 15/12/2016 00:39, Sebastian Huber wrote: Use C11 mutexes instead of Classic semaphores as a performance optimization and to simplify the application configuration. The use of C11 mutexes has not been agreed too and we need to discuss this in more detail before we allow use within RTEMS. I w

Re: C11 Re: [PATCH 3/6] termios: Use C11 mutex for input/output

2016-12-14 Thread Peter Dufault
Can someone help clarify the issue? Is this a “required compiler to build RTEMS” question? That is, are the compilers currently required to build the RTEMS Sebastian modified guaranteed to support C11 mutexes, and is it desirable to be more conservative about what compiler is needed? If C11 m

Re: [PATCH] dev: Add NXP SC16IS752 serial device driver

2016-12-14 Thread Chris Johns
On 15/12/2016 01:23, Sebastian Huber wrote: From: Alexander Krutwig Update #2841. --- cpukit/dev/Makefile.am| 7 + cpukit/dev/include/dev/serial/nxp-sc16is752.h | 165 + cpukit/dev/preinstall.am | 9 + cpukit/dev/serial/nxp-s

Re: Update Atsam BSP Support

2016-12-14 Thread Chris Johns
On 15/12/2016 00:54, Sebastian Huber wrote: I would like to refresh this topic. On 05/10/16 16:17, Gedare Bloom wrote: That makes sense. On Wed, Oct 5, 2016 at 1:17 AM, Sebastian Huber wrote: >One way to keep this in sync would be to simply write the README of each BSP >in a certain format,

Re: Update Atsam BSP Support

2016-12-14 Thread Sebastian Huber
On 15/12/16 01:24, Chris Johns wrote: On 15/12/2016 00:54, Sebastian Huber wrote: I would like to refresh this topic. On 05/10/16 16:17, Gedare Bloom wrote: That makes sense. On Wed, Oct 5, 2016 at 1:17 AM, Sebastian Huber wrote: >One way to keep this in sync would be to simply write the

Re: [PATCH] dev: Add NXP SC16IS752 serial device driver

2016-12-14 Thread Sebastian Huber
On 14/12/16 22:59, Chris Johns wrote: On 15/12/2016 01:23, Sebastian Huber wrote: From: Alexander Krutwig Update #2841. --- cpukit/dev/Makefile.am| 7 + cpukit/dev/include/dev/serial/nxp-sc16is752.h | 165 + cpukit/dev/preinstall.am

Re: C11 Re: [PATCH 3/6] termios: Use C11 mutex for input/output

2016-12-14 Thread Sebastian Huber
On 14/12/16 22:43, Peter Dufault wrote: Can someone help clarify the issue? Is this a “required compiler to build RTEMS” question? That is, are the compilers currently required to build the RTEMS Sebastian modified guaranteed to support C11 mutexes, and is it desirable to be more conservativ

Re: C11 Re: [PATCH 3/6] termios: Use C11 mutex for input/output

2016-12-14 Thread Sebastian Huber
On 14/12/16 22:15, Chris Johns wrote: On 15/12/2016 00:39, Sebastian Huber wrote: Use C11 mutexes instead of Classic semaphores as a performance optimization and to simplify the application configuration. The use of C11 mutexes has not been agreed too and we need to discuss this in more detai