Skip to content

Commit

Permalink
Update CHANGELOG to describe Sequence migration
Browse files Browse the repository at this point in the history
  • Loading branch information
mciantyre committed Nov 15, 2020
1 parent 35dddb9 commit 068cd1e
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,38 @@

## [Unreleased] - YYYY-MM-DD

### Added

- Added `SequenceBuilder` to support `Sequence` allocation. `SequenceBuilder`
requires fewer lines of code to define the same FlexSPI LUT sequence, and it
catches errors at compile time.

### Removed

- Removed the `Sequence` public interface. Users should change their `Sequence`
definitions to use `SequenceBuilder`. The example below compares the old
`Sequence` API with the new `SequenceBuilder` API:

```rust
// Old API:
const SEQ_READ: Sequence = Sequence([
Instr::new(CMD, Pads::One, 0xEB),
Instr::new(READ, Pads::Four, 0x04),
STOP,
STOP,
STOP,
STOP,
STOP,
STOP,
]);

// New API:
const SEQ_READ: Sequence = SequenceBuilder::new()
.instr(Instr::new(CMD, Pads::One, 0xEB))
.instr(Instr::new(READ, Pads::Four, 0x04))
.build();
```

## [0.1.0] - 2020-04-07

First release
Expand Down

0 comments on commit 068cd1e

Please sign in to comment.