Code Monkey home page Code Monkey logo

khoih-prog / nrf52_timerinterrupt Goto Github PK

View Code? Open in Web Editor NEW
18.0 4.0 4.0 364 KB

This library enables you to use Interrupt from Hardware Timers on an nRF52-based board. These nRF52 Hardware Timers, using Interrupt, still work even if other functions are blocking. Moreover, they are much more precise than other software timers using millis() or micros(). Now supports `Sparkfun Pro nRF52840 Mini`

License: MIT License

C++ 79.94% C 20.04% Shell 0.02%
timing device control timer interrupt hardware nrf52 nrf52840 nrf52832 mission-critical

nrf52_timerinterrupt's People

Contributors

khoih-prog avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

nrf52_timerinterrupt's Issues

fatal error: nrf_timer.h: No such file or directory

Cant compile the code that uses this library. I get the following error message:

.pio\libdeps\mers\NRF52_TimerInterrupt\src/NRF52TimerInterrupt.h:81:10: fatal error: nrf_timer.h: No such file or directory

I am using:

  • PlatformIO Core, v5.2.4
  • Platform: nordicnrf52 v9.1.0
  • Arduino Core for nRF52, default for Platformio

How can it be? Looking at SDK v17.1.0, nrf_timer.h seems to be an essential file for this lib

Can't compile in Arduino IDE with Feather Sense board

Describe the bug

Arduino IDE version: 1.8.15
Adafruit_nrf52 version: 0.24.0
Board: Adafruit Feather Sense nrf52840
OS: MacOS Big Sur v11.5

After compiling the TimerInterruptLEDDemo.ino, it gave the following error messages:

/Users/NNL/Library/Arduino15/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: sketch/TimerInterruptLEDDemo.ino.cpp.o: in function setup': /var/folders/4p/g4vjjkm91599mvnrhgf992kw0000gp/T/arduino_modified_sketch_777219/TimerInterruptLEDDemo.ino:126: undefined reference to Adafruit_USBD_CDC::begin(unsigned long)'
/Users/NNL/Library/Arduino15/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: /var/folders/4p/g4vjjkm91599mvnrhgf992kw0000gp/T/arduino_modified_sketch_777219/TimerInterruptLEDDemo.ino:127: undefined reference to Adafruit_USBD_CDC::operator bool()' /Users/NNL/Library/Arduino15/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: /var/folders/4p/g4vjjkm91599mvnrhgf992kw0000gp/T/arduino_modified_sketch_777219/TimerInterruptLEDDemo.ino:153: undefined reference to Serial'
/Users/NNL/Library/Arduino15/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: sketch/TimerInterruptLEDDemo.ino.cpp.o: in function NRF52_ISRTimer::findFirstFreeSlot()': /Users/NNL/Documents/Arduino/libraries/NRF52_TimerInterrupt/src/NRF52_ISR_Timer-Impl.h:141: undefined reference to Serial'
collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board Adafruit Feather nRF52840 Sense.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.