Home > other >  Excuse me keil version 5, how to use inline assembly statement
Excuse me keil version 5, how to use inline assembly statement

Time:09-15

Recently in learning Chinese official freertos practical tutorial, in binary semaphore unit, I ran the document for instance, found the __asm (0 x82) this paragraph how also pass the compilation, whether keil version 5 inserted into the assembly code need what Settings? Please inform me, once,
 
The static void vPeriodicTask (void * pvParameters)
{
For (;; )
{
VTaskDelay (500/portTICK_RATE_MS);
SEGGER_RTT_printf (0, "periodic task - About to generate an interrupt. \ r \ n");
The __asm {int 0 x82};
SEGGER_RTT_printf (0, "periddic task - Interrupt the generate. \ r \ n \ r \ n \ r \ n");
}
}

He gave the error is as follows:
. \ Main \ the Main c (20) : error: # 2901: Expected an inline assembly instruction
The __asm {int 0 x82};
. \ Main \ the Main c (20) : error: # 3081: expected the end of the line or a ";"
The __asm {int 0 x82};

This kind of situation is there something I can not directly use the __asm {} such a statement? Or what other mistakes, I have the hope, let us know, thank you

CodePudding user response:

The original poster hello, I have encountered the same problem, a delay of inline assembly function, error, can you solve it

CodePudding user response:

KEIL5 does not support inline assembly
  • Related