Hi Simon,

I think the sleep pin should be used in a more generic way, for instance,
you can use the NuttX Power Management subsystem to control the CAN sleep
pin.

BR,

Alan

On Wednesday, October 6, 2021, Simon Filgis <[email protected]>
wrote:

> Dear all,
>
> I have two LIN transceivers on my board with a dedicated sleep pin. I want
> to use the sleep functionality in my app.
>
> I tried the following:
> 1. have sam_serial.c be aware of a *board_init() and a *board_disable(bool
> disable) for every uartX
> 2. call *bard_init() in setup
> 3. make *board_disable(bool disable) available via ioctl
> 4. have board implementation of  *bard_init() and *board_disable(bool
> disable) for every used uartX
>
> https://github.com/SimonFilgis/incubator-nuttx/commit/
> 0cdc16192970b14397a02e886c9187a55ca77604
>
> What do you think? Does anybody have a better idea, or is there maybe
> already a solution?
>
> Regards,
>
> Simon
>
> ** untested in HW as I'm in home office - will be tested tomorrow
>

Reply via email to