-
Notifications
You must be signed in to change notification settings - Fork 1.7k
drivers: meter: ade9153a : Add README documentation for ADE9153a #2563
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
Signed-off-by: mc-so <michelleclaire.so@analog.com> This adds the rst readme document for the ADE9153a driver. Also modified the sphinx driver doc to add the corresponding source for this new readme.
return ret; | ||
} | ||
|
||
|
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.
the lines from here down shouldn't be here
int main() | ||
{ | ||
struct ade9153a_dev *ade9153a_dev; | ||
struct ade9153a_init_param ade9153a_ip; |
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.
initialize ade9153a_ip with actual values
// Burst mode disable | ||
ade9153a_dev->burst_en = 0; | ||
|
||
no_os_mdelay(RESET_TIME); |
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.
define RESET_TIME
goto free_dev; | ||
|
||
// Burst mode disable | ||
ade9153a_dev->burst_en = 0; |
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 is bad in my opinion, maybe the driver needs to be modified, the user shouldn't need to modify descriptor members like this, but through the driver API
|
||
while (1) { | ||
// Time delay between readings | ||
no_os_mdelay(READ_INTERVAL); |
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.
define READ_INTERVAL
remove_uart: | ||
no_os_uart_remove(uart_desc); | ||
remove_irq: | ||
no_os_irq_ctrl_remove(ade9153a_nvic_desc); |
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 am not sure what's with all these remove calls here, only remove what you initialize
Signed-off-by: mc-so michelleclaire.so@analog.com
This adds the rst readme document for the ADE9153a driver.
Also modified the sphinx driver doc to add the corresponding source for this new readme.
PR Type
PR Checklist