Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: GlasgowEmbedded/glasgow
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 79fd7c57cccb
Choose a base ref
...
head repository: GlasgowEmbedded/glasgow
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4d19c9a5ba75
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Jan 25, 2020

  1. applet.radio.nrf24l01: flush applet FIFO before pulsing CE.

    We really need to get the SERDES+sideband design working.
    whitequark committed Jan 25, 2020
    Copy the full SHA
    4d19c9a View commit details
Showing with 6 additions and 0 deletions.
  1. +6 −0 software/glasgow/applet/radio/nrf24l01/__init__.py
6 changes: 6 additions & 0 deletions software/glasgow/applet/radio/nrf24l01/__init__.py
Original file line number Diff line number Diff line change
@@ -28,7 +28,13 @@ def __init__(self, interface, logger, device, addr_dut_ce):
def _log(self, message, *args):
self._logger.log(self._level, "nRF24L01: " + message, *args)

async def sync(self):
self._log("sync")
await self.lower.write([OP_NOP])
await self.lower.read(1)

async def enable(self):
await self.sync()
self._log("enable rf")
await self._device.write_register(self._addr_dut_ce, 1)