Skip to content
This repository has been archived by the owner on Dec 6, 2018. It is now read-only.

Added driver for cs43l22 audio DAC #111

Merged
merged 2 commits into from
Jul 14, 2016

Conversation

vadimol
Copy link
Collaborator

@vadimol vadimol commented Jul 11, 2016

No description provided.

@vadimol
Copy link
Collaborator Author

vadimol commented Jul 11, 2016

/cc @forGGe

{
single = 0x40, // Play one beep
multiple = 0x80, // Play beep for on_time, mute for off_time
continuos = 0xC0, // Play continuously
Copy link
Collaborator

Choose a reason for hiding this comment

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

Typo:
continuos -> continuous

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

thanks

@forGGe
Copy link
Collaborator

forGGe commented Jul 12, 2016

Partial review

template < class I2c, class I2s, class Rst_gpio >
ecl::err cs43l22< I2c, I2s, Rst_gpio >::pcm_stream_stop()
{
ecl_assert(m_state & inited);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Here. we need to ensure that pcm_stream_start() is actually called previously and stream wasn't stopped yet.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

@vadimol
Copy link
Collaborator Author

vadimol commented Jul 13, 2016

/cc @forGGe

addressed review comments.

1) Updated description
2) Improved documentation
3) Added asserts
4) Fixed code style issues
@forGGe forGGe merged commit a997501 into theCore-embedded:develop Jul 14, 2016
forGGe added a commit that referenced this pull request Jul 14, 2016
Added driver for cs43l22 audio DAC
@forGGe forGGe mentioned this pull request Jul 14, 2016
@vadimol vadimol deleted the cs43l2_develop branch May 27, 2017 10:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants