Author Topic: [Solved][Ndless] Hardware timers on the CX  (Read 3767 times)

0 Members and 1 Guest are viewing this topic.

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
[Solved][Ndless] Hardware timers on the CX
« on: July 05, 2014, 05:37:20 am »
Hmmm. I've been struggling with these all day long yesterday. I got them to work eventually but now I'm facing a problem now. Thing is, it seems to be zero and non zero at the same time. O.O

Code : https://github.com/Streetwalrus/tetris
n2DLib required to compile : https://github.com/n2DLib/n2DLib

I looked at the sleep() code and I'm doing exactly the same thing (that's what I did by reading only the datasheet too :/).
So if you guys have an idea I'd be grateful.
« Last Edit: July 05, 2014, 07:27:00 am by Streetwalrus »

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: [Ndless] Hardware timers on the CX
« Reply #1 on: July 05, 2014, 05:46:09 am »
Quote
Thing is, it seems to be zero and non zero at the same time.
The Nspire uses qubits? O.O
background: http://en.wikipedia.org/wiki/Qubit
I'm not a nerd but I pretend:

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: [Ndless] Hardware timers on the CX
« Reply #2 on: July 05, 2014, 05:48:34 am »
Lol no. I tried to set the timer to zero. The test would be true whether I did *timer_value == 0 or !=.

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: [Ndless] Hardware timers on the CX
« Reply #3 on: July 05, 2014, 05:51:09 am »
That's really weird. O.o
I'm not a nerd but I pretend:

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: [Ndless] Hardware timers on the CX
« Reply #4 on: July 05, 2014, 07:26:42 am »
Holy cow it works now. O.O Apparently it was an n2DLib bug. Problem solved.