Re: Byte to int32/big and little endian

2023-02-26 Thread Karel Kočí
Excerpts from Tim Hardisty's message of February 26, 2023 12:17 pm: > > On 25/02/2023, 11:47, "Karel Kočí" mailto:cyn...@email.cz>> > wrote: > >>I would use union (that is host ordering) and to convert to specific ordering >>you can use functions like htobe32 (big endian) and htole32 (little en

Re: W25Nx NAND flash support

2023-02-26 Thread Nathan Hartman
On Sat, Feb 25, 2023 at 8:53 AM Gregory Nutt wrote: > > > Maybe LittleFS or SmartFS could be extended to handle NAND. > > I believe that LittleFS has been used with NAND with a NAND FLASH > translation layer. I am not sure of the state of that work, but I know > that people have tried it. Googl

Re: Byte to int32/big and little endian

2023-02-26 Thread Tim Hardisty
On 26/02/2023, 12:37, "spudaneco" mailto:spudan...@gmail.com>> wrote: > I can find no references in the NuttX code base to changing > endian-ness?Search for CONFIG_ENDIAN_BIG Could have sworn I searched for that as had come across that CONFIG option. Search fail...sorry. I will look at what th

Re: Byte to int32/big and little endian

2023-02-26 Thread spudaneco
 > I can find no references in the NuttX code base to changing endian-ness?Search for CONFIG_ENDIAN_BIG

Re: Byte to int32/big and little endian

2023-02-26 Thread Tim Hardisty
On 25/02/2023, 11:47, "Karel Kočí" mailto:cyn...@email.cz>> wrote: >I would use union (that is host ordering) and to convert to specific ordering >you can use functions like htobe32 (big endian) and htole32 (little endian), > those are available. > Excerpts from Tim Hardisty's message of Febr