Skip to content

如何让 VSCODE cpptools 支持 C51 (How to make VSCODE cpptools support C51) #1821

Closed

Description

@VSCODE-C51
  1. 中断函数会提示报错
    (interrupt function display error)
    image

  2. IO 定义会报错
    (MCU IO define display error)
    image

Activity

  1. bobbrow commented on Apr 12, 2018

    @bobbrow
    Contributor
    1. It doesn't look like valid syntax. Is "interrupt" supposed to be an attribute? You can edit c_cpp_properties.json and add "interrupt=" and "INT_VECTOR_T0=" to the "defines" array.

    2. Can you tell me what sfr and sbit are? Those are not types I recognize.

  2. VSCODE-C51 commented on Apr 13, 2018

    @VSCODE-C51
    Author
    1. interrupt= 加入 "defines" 可以的,但 "INT_VECTOR_T0=" 还是不行。
      ( interrupt is OK,but "INT_VECTOR_T0=" not support.)
      image
      image

    2. sfr 和 sbit 已经在 "defines" 中,所以不显示错误。
      (Because it was added before, so no error is displayed.)
      image

  3. changed the title [-]如何让 VSCODE cpptools 支持 C51[/-] [+]如何让 VSCODE cpptools 支持 C51 (How to make VSCODE cpptools support C51)[/+] on Apr 13, 2018
  4. VSCODE-C51 commented on Apr 13, 2018

    @VSCODE-C51
    Author

    Thank you for replying me. Bob Brown (@bobbrow)
    Sorry, My English is poor, but I will study hard.

  5. bobbrow commented on Apr 13, 2018

    @bobbrow
    Contributor
    1. I should have noticed sooner. C51 has some language extensions that our vscode extension does not support. I found it here: http://www.keil.com/support/man/docs/c51/c51_le_funcdecls.htm

    2. Does this compile for you in C51? It is not valid syntax in C.

  6. VSCODE-C51 commented on Apr 14, 2018

    @VSCODE-C51
    Author

    Thank you.

    I used Keil compiled C51 Code.

  7. bobbrow commented on Apr 16, 2018

    @bobbrow
    Contributor

    Unfortunately, we have no plans to support C51 extensions at this time.

  8. heartacker commented on Jun 29, 2020

    @heartacker
    Contributor

    FYI, this keil assistant will be helpful for c51,
    https://marketplace.visualstudio.com/items?itemName=CL.keil-assistant

  9. locked and limited conversation to collaborators on Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions