Re: STM32L051 and LPUART
Uwe Bonnes <bon-1JbLm1bU5j5ZIx36JBfelj3+ndqKAYMe9FMPySWZwLkb1SvskN2V4Q@public.gmane.org> Thu, 20 Oct 2016 15:56:26 +0200
| Newsgroups | gmane.comp.hardware.microcontrollers.ethernut |
|---|---|
| Message-ID | <[email protected]> |
>>>>> "Ulrich" == Ulrich Prinz <ulrich.prinz-gM/[email protected]> writes: Ulrich> Hi! before starting an implementation myself, I wonder if Ulrich> someone already prepared some code to add the STM32L051 series Ulrich> of chips and especially the LPUART device that can be found on Ulrich> all STM32L devices. No, I have not yet worked with the LPUART. Beside custom board for the STM32F3, I have only disco and nucleo boards. To my knowledge, these boards don't bring out the LPUART. So developping for the LPUART is not as handy as for devices used on these boards. If I remember right, at some point you turned away from Nut/OS partly because most drivers at that time used multiple driver instances for multiple device entities inside one MCU. Harald tried a new approach with the usart_cb driver. However this approach queries queue fill level in the device independant code. To not interfere with the IRQ routines, the device independant code can only disable/enable IRQs global and does not work at all with DMA. However I have some approach for a uart driver that does the query in the device dependant code, using a common driver for all entities. I intend to add this code to SVN Head at some point. Find the code appended. LPUART and UART register map look quite similar. So getting LPUART basic functionality should not be too hard. If you need more special functionalty, i would be glad if you consider to implement it in a way that it also will work with my new approach. Cheers -- Uwe Bonnes bon-1JbLm1bU5j5ZIx36JBfelj3+ndqKAYMe9FMPySWZwLkb1SvskN2V4Q@public.gmane.org Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt --------- Tel. 06151 1623569 ------- Fax. 06151 1623305 --------- _______________________________________________ http://lists.egnite.de/mailman/listinfo/en-nut-discussion