|
Re: C-lib status
Hey Paul,
time() was just the first thing I tried to see how well newlib works,
and the results was it doesn't. And that it compiles without warning and
than hangs in an endless loop sounds like a
Hey Paul,
time() was just the first thing I tried to see how well newlib works,
and the results was it doesn't. And that it compiles without warning and
than hangs in an endless loop sounds like a
|
By
Erwin Rol
·
#638
·
|
|
STM32F4 I2C driver
Hello,
I am developing an I2C driver based on the stm32cube LL API.
The driver can be found here: https://github.com/ydamigos/zephyr/tree/i2c_ll_stm32f4
The driver supports both polling and
Hello,
I am developing an I2C driver based on the stm32cube LL API.
The driver can be found here: https://github.com/ydamigos/zephyr/tree/i2c_ll_stm32f4
The driver supports both polling and
|
By
Yannis Damigos
·
#637
·
|
|
Re: RFC on STM32 Ethernet driver
Hey All,
I rewrote it by using CONTAINER_OF() and it works fine and is lot
cleaner. Tanks for the hint.
- Erwin
Hey All,
I rewrote it by using CONTAINER_OF() and it works fine and is lot
cleaner. Tanks for the hint.
- Erwin
|
By
Erwin Rol
·
#636
·
|
|
Re: [RFC] Mezzanine/Hat/Extension/Shield board support
Hi Andy, Erwan, Anas,
I will send an RFC when I have some free time for it and thanks for the hints.
Neil
Hi Andy, Erwan, Anas,
I will send an RFC when I have some free time for it and thanks for the hints.
Neil
|
By
Neil Armstrong
·
#635
·
|
|
Re: C-lib status
Hello Erwin,
Erwin Rol <mailinglists@...> wrote:
When you want time(NULL), what are your expectations? Because as you
know, what it's supposed to do is to return number of seconds
Hello Erwin,
Erwin Rol <mailinglists@...> wrote:
When you want time(NULL), what are your expectations? Because as you
know, what it's supposed to do is to return number of seconds
|
By
Paul Sokolovsky
·
#634
·
|
|
C-lib status
Hey all (yeah there he is again),
I was wondering what the status and planning is for the C-library? I
tried a simple example and I guess I directly hit a problem. The
"buildin" mini C-lib doesn't
Hey all (yeah there he is again),
I was wondering what the status and planning is for the C-library? I
tried a simple example and I guess I directly hit a problem. The
"buildin" mini C-lib doesn't
|
By
Erwin Rol
·
#633
·
|
|
Re: RFC on STM32 Ethernet driver
No problem, I understand it is not easy to jump in. And agreed we
might miss some material to make all this clear.
Great! We look forward to see it upstreamed
Seems right!
No problem, I understand it is not easy to jump in. And agreed we
might miss some material to make all this clear.
Great! We look forward to see it upstreamed
Seems right!
|
By
Erwan Gouriou
·
#632
·
|
|
Re: RFC on STM32 Ethernet driver
Hey Neil, Erwan,
thanks for the infos. I guess the confusions are largely because Zephyr
is still such a young project. Under Linux there are so many drivers to
look at as examples and if 10 use HAL
Hey Neil, Erwan,
thanks for the infos. I guess the confusions are largely because Zephyr
is still such a young project. Under Linux there are so many drivers to
look at as examples and if 10 use HAL
|
By
Erwin Rol
·
#631
·
|
|
Re: RFC on STM32 Ethernet driver
Indeed, for the little story I was trying to test the sensor (to upstream support for it) on
the stm32f4discovery board, but when I hoocked up everything (driver, ...) to test the driver,
I realized
Indeed, for the little story I was trying to test the sensor (to upstream support for it) on
the stm32f4discovery board, but when I hoocked up everything (driver, ...) to test the driver,
I realized
|
By
Neil Armstrong
·
#630
·
|
|
Re: RFC on STM32 Ethernet driver
Hi Erwin,
LL based version was initiated without knowing Neil had a HAL based driver,
and from what I am aware of (unless I missed this information), Neil never
proposed to upstream it. I let him
Hi Erwin,
LL based version was initiated without knowing Neil had a HAL based driver,
and from what I am aware of (unless I missed this information), Neil never
proposed to upstream it. I let him
|
By
Erwan Gouriou
·
#629
·
|
|
Re: RFC on STM32 Ethernet driver
Hey Erwan,
Yes, I will rewrite it to use CONTRAINER_OF.
So the I2C driver is being rewritten even though there is a working
version (I assume Neil's HAL version is working)? Now you are making
Hey Erwan,
Yes, I will rewrite it to use CONTRAINER_OF.
So the I2C driver is being rewritten even though there is a working
version (I assume Neil's HAL version is working)? Now you are making
|
By
Erwin Rol
·
#628
·
|
|
Re: RFC on STM32 Ethernet driver
Hi Erwin,
As mentioned by Neil, CONTAINER_OF is a good solution that is used in other projects using STM32Cube.
About your last point:
There won't be any branching from STM32Cube for Zephyr.
Generic
Hi Erwin,
As mentioned by Neil, CONTAINER_OF is a good solution that is used in other projects using STM32Cube.
About your last point:
There won't be any branching from STM32Cube for Zephyr.
Generic
|
By
Erwan Gouriou
·
#627
·
|
|
Re: DMA driver API, source_burst_length, dest_burst_length
Hi Baohong,
thanks for the clarification. I suppose:
source_transfer_width should be source_data_size ?
dest_transfer_width should be dest_data_size ?
It is a little redundant, what is the
Hi Baohong,
thanks for the clarification. I suppose:
source_transfer_width should be source_data_size ?
dest_transfer_width should be dest_data_size ?
It is a little redundant, what is the
|
By
Johann Fischer
·
#626
·
|
|
Re: RFC on STM32 Ethernet driver
Hey Neil,
Thanks, somehow just didn't think about that. Will rewrite the eth
driver to use the CONTAINER_OF() construct.
BTW is that i2c driver going to be included in mainline? :-)
- Erwin
Hey Neil,
Thanks, somehow just didn't think about that. Will rewrite the eth
driver to use the CONTAINER_OF() construct.
BTW is that i2c driver going to be included in mainline? :-)
- Erwin
|
By
Erwin Rol
·
#625
·
|
|
Re: RFC on STM32 Ethernet driver
Hi Erwin,
You can use CONTAINER_OF() to get the parent structure like
https://github.com/superna9999/zephyr/blob/stm32f4_i2c/drivers/i2c/i2c_stm32.c#L93
Neil
Hi Erwin,
You can use CONTAINER_OF() to get the parent structure like
https://github.com/superna9999/zephyr/blob/stm32f4_i2c/drivers/i2c/i2c_stm32.c#L93
Neil
|
By
Neil Armstrong
·
#624
·
|
|
Re: RFC on STM32 Ethernet driver
Hey Erwan,
like you say some things are subjective when it comes to HAL's, but
somethings really bother me with the STM32 HAL.
The most important is how to deal with IRQ's. In Zephyr I have to
Hey Erwan,
like you say some things are subjective when it comes to HAL's, but
somethings really bother me with the STM32 HAL.
The most important is how to deal with IRQ's. In Zephyr I have to
|
By
Erwin Rol
·
#623
·
|
|
Re: Include directory
Hi Prasad,
Mostly driver dedicated public functions used by the system or by some specific board configuration.
Just talking about those I know:
Console ones for
Hi Prasad,
Mostly driver dedicated public functions used by the system or by some specific board configuration.
Just talking about those I know:
Console ones for
|
By
Tomasz Bursztyka
·
#622
·
|
|
Include directory
Folks,
Could you please tell me why “include” directory is organized like this? I mean to say there is “drivers” folder and driver API header files are outside this directory(e.g. dma.h,
Folks,
Could you please tell me why “include” directory is organized like this? I mean to say there is “drivers” folder and driver API header files are outside this directory(e.g. dma.h,
|
By
Prasad Hegde
·
#621
·
|
|
Re: DMA driver API, source_burst_length, dest_burst_length
By
Liu, Baohong
·
#620
·
|
|
DMA driver API, source_burst_length, dest_burst_length
Hi,
The DMA API describes the source_burst_length and dest_burst_length of the struct dma_config as:
...
* source_burst_length [ 0 : 15 ] - number of source data units
*
Hi,
The DMA API describes the source_burst_length and dest_burst_length of the struct dma_config as:
...
* source_burst_length [ 0 : 15 ] - number of source data units
*
|
By
Johann Fischer
·
#619
·
|