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

missing clock prescaler setting for ATmega1281 (iris) #366

Open
miri-in opened this issue Feb 3, 2016 · 0 comments
Open

missing clock prescaler setting for ATmega1281 (iris) #366

miri-in opened this issue Feb 3, 2016 · 0 comments

Comments

@miri-in
Copy link
Contributor

miri-in commented Feb 3, 2016

Hi,

while playing around with iris nodes I observed that
I could not physically change the clock frequency via
CFLAGS += -DMHZ=
(see also tos/platforms/iris/MicaTimer.h).

Interestingly, and if I am not mistaken, there is no access to register CLKPR
within the TinyOS code for iris nodes --- I expected something like

atomic {
// enable write
CLKPR = 1 << CLKPCE;
// set clock division factor
CLKPR =
}

for example in
tos/platforms/iris/MeasureClockC.nc

analogously to
systemClockInit() from
tos/chips/atm128rfa1/McuInitP.nc

Am I missing something or is this a serious issue?

Best regards,
Michael

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

No branches or pull requests

1 participant