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

millis() kutsu testiluupin sisällä aiheuttaa ongelmia #1

Open
fador opened this issue Jan 24, 2019 · 0 comments
Open

millis() kutsu testiluupin sisällä aiheuttaa ongelmia #1

fador opened this issue Jan 24, 2019 · 0 comments

Comments

@fador
Copy link

fador commented Jan 24, 2019

long j=(long)millis();

Arduino toteutus ESP8266 kontrollerille tekee huomattavan kasan temppuja millis() funktiossa, toisin kuin perus atmega tai vastaavat, jotka nappaavat arvon suoraan jostain valmiina.

Sanoisin että tästä syystä mikrobitissä 1/2019 olleissa testeissä Wemos D1 on niin hidas.

ESP8266 toteutus:
https://github.com/esp8266/Arduino/blob/bff3a6d963f8f67470fc1dfbfcd93ac5682fe079/cores/esp8266/core_esp8266_wiring.c#L161

SAM3X prosessoriperheelle:
https://github.com/arduino/ArduinoCore-sam/blob/3394937e5df00636abc5823446ecba5aa6940e42/cores/arduino/wiring.c#L25
https://github.com/arduino/ArduinoCore-sam/blob/3394937e5df00636abc5823446ecba5aa6940e42/system/libsam/source/timetick.c#L76

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