diff options
| author | Jeffrey Bailey <wb.jeffrey@gmail.com> | 2020-08-20 22:08:12 (GMT) |
|---|---|---|
| committer | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-09-27 13:26:29 (GMT) |
| commit | f924bb64142fc0771c705971dd43452ec3778342 (patch) | |
| tree | 482e8322dad5367b30fc5667bba33d8a5f21c78c /wasp/boards/k9 | |
| parent | 7075f5689eacbf586324495b1fda3cc1baf03173 (diff) | |
boards: Remove flash wake up commands
Wake from deep power down is now handled in the driver. Remove attempt
to wake the board files.
Signed-off-by: Jeffrey Bailey <wb.jeffrey@gmail.com>
[daniel@redfelineninja.org.uk: Update commit message, simplify
slightly, extended to all boards with spinor flash and update
gitmodules to bring in the flash driver updates.]
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
Diffstat (limited to 'wasp/boards/k9')
| -rw-r--r-- | wasp/boards/k9/watch.py.in | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/wasp/boards/k9/watch.py.in b/wasp/boards/k9/watch.py.in index da9d9a2..78dff3c 100644 --- a/wasp/boards/k9/watch.py.in +++ b/wasp/boards/k9/watch.py.in @@ -106,16 +106,9 @@ try: boot_msg("Init motor") vibrator = Vibrator(Pin('MOTOR', Pin.OUT, value=0), active_low=True) - # Release flash from deep power-down - boot_msg("Wake SPINOR") - nor_cs = Pin('NOR_CS', Pin.OUT, value=1) - nor_cs(0) - spi.write('\xAB') - nor_cs(1) - # Mount the filesystem boot_msg("Init SPINOR") - flash = FLASH(spi, (nor_cs,)) + flash = FLASH(spi, (Pin('NOR_CS', Pin.OUT, value=1),)) try: boot_msg("Mount FS") os.mount(flash, '/flash') |
