Question
Trying to adapt a library, getting a syntax error,
Good day, everyone.
This is the library I'm trying to us with the STM32f103.
https://github.com/rogerdahl/stm32-tm1637
Most all of the work was already done as this IS an stm32 library.
I am however getting this error:
compiling main.c...
..\libraries\stm32-tm1637-master\stm32-tm1637-master\stm32_tm1637.c(143): error: #130: expected a "{"
__asm__ __volatile__("nop\n\t":::"memory");
..\libraries\stm32-tm1637-master\stm32-tm1637-master\stm32_tm1637.c(143): error: #18: expected a ")"The code snippet that this piece is complaining:
void _tm1637DelayUsec(unsigned int i)
{
for (; i>0; i--) {
for (int j = 0; j < 10; ++j) {
__asm__ __volatile__("nop\n\t":::"memory"); // This is LINE 143
}
}
}I'm not sure where exactly those brackets are supposed to go. This is a level of programming outside of my basic understanding of... making an led blink...
