Skip to content

fby3.5: cl: Add ADC sensor reading#18

Closed
GoldenBug wants to merge 1 commit into
gh/goldenbug/8/basefrom
gh/goldenbug/8/head
Closed

fby3.5: cl: Add ADC sensor reading#18
GoldenBug wants to merge 1 commit into
gh/goldenbug/8/basefrom
gh/goldenbug/8/head

Conversation

@GoldenBug

Copy link
Copy Markdown
Contributor

Stack from ghstack:

  • (to be filled)

Summary:

  • Add ADC init and voltage reading function.

known issue:

  • GPIO initial fail making GPIO status set fail.
  • Battery voltage require GPIO status controlling to get correct voltage.

Test plan:
-Build code: Pass
-Sensor read: Pass
Test gpio direction initial setting pass , sensor P3V_BAT voltage is correct.

Log:
P12V_STBY Vol (0x20) : 12.54 | (ok)
P3V_BAT Vol (0x21) : 0.61 | (ok)
P3V3_STBY Vol (0x22) : 3.33 | (ok)
P1V8_STBY Vol (0x24) : 1.80 | (ok)
P1V05_PCH Vol (0x23) : 1.06 | (ok)

Summary:
- Add ADC init and voltage reading function.

known issue:
- GPIO initial fail making GPIO status set fail.
- Battery voltage require GPIO status controlling to get correct voltage.

Test plan:
-Build code: Pass
-Sensor read: Pass
Test gpio direction initial setting pass , sensor P3V_BAT voltage is correct.

Log:
P12V_STBY Vol                (0x20) :   12.54       | (ok)
P3V_BAT Vol                  (0x21) :    0.61       | (ok)
P3V3_STBY Vol                (0x22) :    3.33       | (ok)
P1V8_STBY Vol                (0x24) :    1.80       | (ok)
P1V05_PCH Vol                (0x23) :    1.06       | (ok)

[ghstack-poisoned]
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 21, 2021
@GoldenBug GoldenBug closed this Oct 21, 2021
@GoldenBug GoldenBug deleted the gh/goldenbug/8/head branch October 21, 2021 09:26
HungYi-Li pushed a commit to HungYi-Li/OpenBIC that referenced this pull request May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

2 participants