Skip to content
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

Fix issue 129; check RTC clock source and set prescaler value #201

Merged
merged 2 commits into from
Jul 19, 2019

Conversation

chwon64
Copy link
Collaborator

@chwon64 chwon64 commented Jul 19, 2019

This is #129 fix.

@chwon64 chwon64 added the bug label Jul 19, 2019
@chwon64 chwon64 self-assigned this Jul 19, 2019
}
else
{
/* use HSE clock -- not defined HSE input clock value */
Copy link
Member

Choose a reason for hiding this comment

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

Can we figure out what's needed for HSE so we don't have a dangling path? Is this needed for anything?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Currently HSE clock (PH0_OSC_IN) is connected with TCXO_OUT pin.
I am not sure what's clock rate of TCXO_OUT pin.
It looks for me we can't use HSE clock as RTC clock.

Copy link
Member

Choose a reason for hiding this comment

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

  1. This should be in a comment: we don't support use of HSE as RTC because it's connected to TCXO_OUT, and that's controlled by the LoRaWAN software.
  2. I think we should use gLog.printf(), not use Serial directly. Serial.print will hang if there's no USB and there's not even rudimentary debug logging control.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I updated comment as suggested and use gLog.printf().

@chwon64 chwon64 merged commit 39121ae into master Jul 19, 2019
@chwon64 chwon64 deleted the issue129 branch July 19, 2019 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants