what does the "::" mean?

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

void Delay(unsigned int millisec)
{
// mt, int i did not work in the simulator: int i;
uint8_t i;

while (millisec--) {
for (i=0; i<125; i++) {
asm volatile ("nop"::);
}
}
}

this function comes from butterfly code.
in
asm volatile ("nop"::);

what does :: mean?

thanks :lol:

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

See the GCC User Manual on inline assembly. Or see the avr-libc User Manual on inline assembly.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

tom62 wrote:
void Delay(unsigned int millisec)
{
// mt, int i did not work in the simulator: int i;
uint8_t i;

while (millisec--) {
for (i=0; i<125; i++) {
asm volatile ("nop"::);
}
}
}

Sorry for this off-topic pointer... but if you use the "code" mark around the code you don't end up with :lol:

/Johan