اطلاعیه

Collapse
No announcement yet.

چرا این ارور رو میده؟ uart1 - lpc1768

Collapse
X
 
  • فیلتر
  • زمان
  • Show
Clear All
new posts

    چرا این ارور رو میده؟ uart1 - lpc1768

    سلام
    سوال اول این دستور چکار میکنه؟
    UART_GetIntId)(
    .
    .
    .
    این جوابشه
    Get Interrupt Identification value.

    Parameters:
    [in] UARTx UART peripheral selected, should be:
    LPC_UART0: UART0 peripheral
    LPC_UART1: UART1 peripheral
    LPC_UART2: UART2 peripheral
    LPC_UART3: UART3 peripheral


    Returns:
    Current value of UART UIIR register in UART peripheral.


    خوب پس من میام میگم
    intsrc = UART_GetIntId(LPC_UART1);

    که این ارور رو دارم!
    ..\error: #167: argument of type "LPC_UART1_TypeDef *" is incompatible with parameter of type "LPC_UART_TypeDef *"

    یعنی مردیکه اومدی میگی LPC_UART1_TypeDef بعد میخای بریزیش تو LPC_UART_TypeDef

    بله همونطور متوجه شدین نوع ها بهم نمیخورن که همونطور بالا میبینین برای تعریف دستور نوشته

    [in] UARTx UART peripheral selected, should be:
    LPC_UART0: UART0 peripheral
    LPC_UART1: UART1 peripheral
    LPC_UART2: UART2 peripheral
    LPC_UART3: UART3 peripheral

    خوب من نوشتم uart1 ارور میگیره !
    کسی میدونه چرا؟
    انجام پروژه هاي برنامه نويسي اندرويد
    [glow=red,2,300]نرم افزار نقشه هاي پاور کامپيوتر اندوريد[/glow]
    http://cafebazaar.ir/app/?id=com.atxdroid
لطفا صبر کنید...
X