-
Couldn't load subscription status.
- Fork 1.8k
drivers:dac:Add support for MAX22007 #2787
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
9e41b68 to
e9b599b
Compare
e9b599b to
478f10d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prior to the in-depth review, please separate your commits into: driver implementation, driver documentation, project implementation, project documentation. Also the crc implementation should be in its own commit.
Example: https://github.com/analogdevicesinc/no-OS/pull/2429/commits
drivers/dac/max22007/max22007.c
Outdated
| no_os_free(dev); | ||
|
|
||
| return 0; | ||
| } No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: new line at the end of the file. check all files for this issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've updated the files to add a new line at the end
| @@ -0,0 +1,7 @@ | |||
| { | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be builds.json. Remove the underscore _ from the filename. Otherwise it won't be parsed by the CI. Unless you have the same issue as here: df789f6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed the file
Add LSB first implementation for populating CRC table Signed-off-by: Janani Sunil <janani.sunil@analog.com>
c31703a to
26f99ce
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks solid overall, minor comments inline.
26f99ce to
f9bcd08
Compare
Add driver support for MAX22007 Signed-off-by: Janani Sunil <janani.sunil@analog.com>
Add driver documentation for MAX22007 Signed-off-by: Janani Sunil <janani.sunil@analog.com>
ccb4baf to
e2c0d9b
Compare
projects/max22007/builds.json
Outdated
| { | ||
| "stm32": { | ||
| "basic_example": { | ||
| "flags" : "EXAMPLE=basic_example HARDWARE=sdp-k1.ioc" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EXAMPLE=basic_example mismatches what's in the makefile. That's most probably what causes the build fail.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EXAMPLE = basic
e2c0d9b to
4ad00bc
Compare
projects/max22007/Makefile
Outdated
| @@ -0,0 +1,12 @@ | |||
| EXAMPLE ?= basic_example | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EXAMPLE ?= basic
projects/max22007/builds.json
Outdated
| { | ||
| "stm32": { | ||
| "basic_example": { | ||
| "flags" : "EXAMPLE=basic_example HARDWARE=sdp-k1.ioc" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EXAMPLE = basic
Add basic example project for MAX22007 Add make based CI build support Signed-off-by: Janani Sunil <janani.sunil@analog.com>
Add documentation for MAX22007 example project Signed-off-by: Janani Sunil <janani.sunil@analog.com>
4ad00bc to
76237b8
Compare
|
|
||
| /* Channel Mode Register Masks */ | ||
| #define MAX22007_CH_MODE_MASK NO_OS_GENMASK(15, 12) | ||
| #define MAX22007_CH_MODE_CH_MASK(channel) (NO_OS_BIT(12) << (channel)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this doesn't look right to me, are you really trying to shift 0x1000 by 0, 1, 2, 3 ?
Added driver, example project and documentation for MAX22007
Added a new API in the no_os_crc.c/.h to populate CRC table with LSB first logic
Pull Request Description
Please replace this with a detailed description and motivation of the changes.
You can tick the checkboxes below with an 'x' between square brackets or just check them after publishing the PR.
If this PR contains a breaking change, list dependent PRs and try to push all related PRs at the same time.
PR Type
PR Checklist
SPI Read Operation

SPI Write Operation
