Skip to content

Conversation

@rbudai98
Copy link
Contributor

@rbudai98 rbudai98 commented Oct 2, 2025

  • drivers: maxim_delay.c: include lvgl comulsory callback function
  • add button implementation for BACk, NEXT and ENTER
  • added blank screen upon en_latch off
  • buttons implemented
  • print out real-time VIN0 and VIN1 from adc
  • custom initializaiton process
  • added tinyIIOD for vin0 vin1, vrmsf, vrmsr channels, with global attrbutes for impedance and frequency
  • modified general screen llgic to work in parallel with iiod
  • added m24512 memory init and test
  • TODO: add lookup table and use that to calc P0 and P1

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

  • Bug fix (change that fixes an issue)
  • New feature (change that adds new functionality)
  • Breaking change (has dependencies in other repos or will cause CI to fail)

PR Checklist

  • I have followed the Coding style guidelines
  • I have complied with the Submission Checklist
  • I have performed a self-review of the changes
  • I have commented my code, at least hard-to-understand parts
  • I have build all projects affected by the changes in this PR
  • I have tested in hardware affected projects, at the relevant boards
  • I have signed off all commits from this PR
  • I have updated the documentation (wiki pages, ReadMe etc), if applies

static int m24512_write_raw(struct m24512_dev *dev, uint16_t addr,
const uint8_t *data, uint16_t len);

/******************************************************************************/
Copy link
Contributor

Choose a reason for hiding this comment

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

please use a recursive tool to remove all these delimiters, see an example here:
88083db

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will solve this in a different PR, as soon this driver will be accepted, I will drop these files from this project

return -EINVAL;

ret = no_os_i2c_write(dev->i2c_desc, &reg_addr, 1, 1);
ret = no_os_i2c_write(dev->i2c_desc, &reg_addr, 1, 0);
Copy link
Contributor

Choose a reason for hiding this comment

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

put the driver changes in a separate commit

#include "no_os_util.h"
#include "mxc_delay.h"
#include "mxc_sys.h"
#include "lvgl.h"
Copy link
Contributor

Choose a reason for hiding this comment

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

put these maxim_delay changes in a separate commit

Copy link
Contributor

Choose a reason for hiding this comment

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

This doesn't look good. You're making the maxim delay driver dependent on an external library. I think the proper way of implementing this is to allow the user to register a function which will be called in the systick handler.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

these are just some preliminary solutions, just for a working project... anything outside the project file will be dropped upon converting this into PR

@buha
Copy link
Contributor

buha commented Oct 2, 2025

the rest looks good to me but run astyle and fix the documentation

@rbudai98 rbudai98 changed the title EVAL_POWRMS: IIO and screen for rev-B: [Draft] EVAL_POWRMS: IIO and screen for rev-B: Oct 2, 2025
- drivers: maxim_delay.c: include lvgl comulsory callback function
- add button implementation for BACk, NEXT and ENTER
- added blank screen upon en_latch off
- buttons implemented
- print out real-time VIN0 and VIN1 from adc
- custom initializaiton process
- added tinyIIOD for vin0 vin1, vrmsf, vrmsr channels, with global attrbutes for impedance and frequency
- modified general screen llgic to work in parallel with iiod
- added m24512 memory init and test
- TODO: add lookup table and use that to calc P0 and P1

Signed-off-by: rbudai98 <robert.budai@analog.com>
@rbudai98 rbudai98 force-pushed the staging/eval-powrms branch from 5eb66f6 to b72d301 Compare October 3, 2025 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants