Skip to content

Conversation

@SeppoTakalo
Copy link

TODO: Not ready.

  • Refactor to use just Zephyr GPIO API
  • Use Devicetree to define pins
  • Refactor DTR UP/DOWN events to ASSERT/DEASSERT
  • Logic level 1 is asserted, use DT to change 0/1 level of that.
  • Remove support of DTE device, that is separate driver

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
gpio_pin_set_dt(&get_dev_config(get_dev(data))->ri_gpio, 1);
gpio_pin_set_dt(&get_dev_config(get_dev(data))->ri_gpio, 0);

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there an actual reason for not using nrf_gpio_cfg_sense_set?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have to use level triggered interrupts to achieve < 4uA sleeps.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When would this be utilized? With AT#XSLEEP?

@SeppoTakalo SeppoTakalo force-pushed the slm-dtr-ri branch 2 times, most recently from 0d0bee2 to 0aab192 Compare September 12, 2025 14:59
Work in progress: Not ready.

* Refactor to use just Zephyr GPIO API
* Use Devicetree to define pins
* Refactor DTR UP/DOWN events to ASSERT/DEASSERT
* Logic level 1 is asserted, use DT to change 0/1 level of that.
* Remove support of DTE device, that is separate driver

TODO:
* sw_dtr should not keep RX buffers. Instead when RX is enabled, feed
  buffer to UART from application call.
* When buffer is needed, make a callback to app to request a buffer.
* When UART is powered down because of DTR, block RX_STOP and RX_DISABLE
  events going to application, so app thinks the UART keeps on going.


Signed-off-by: Seppo Takalo <[email protected]>
@MarkusLassila MarkusLassila merged commit 87d0449 into MarkusLassila:slm-dtr-ri Sep 17, 2025
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants