Sony's Developer World forum

    • Home
    • Forum guidelines

    Spresense Pin Initialization and Functions Library in C

    Spresense
    2
    2
    853
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      Benediction 1 2 last edited by

      Hello, I am trying to work on my Spresense board and I do not want to use Arduino, but Visual Studio Code, are there any library files that have pin initializations for the board or functions for pin cofigurations, if not, where do I find the data sheet that has the descriptions to functions that have been pre-written for the board. I am a little confused on how to configure pins for this specific board. Do I have to write everything from scratch at register level?

      J 1 Reply Last reply Reply Quote
      • J
        jens6151 0 1 1 @Benediction 1 2 last edited by

        @Simeons-1-2
        ... a search on the code.
        Looks like there is a pin configuration here
        https://github.com/sonydevworld/spresense-nuttx/blob/new-master/boards/arm/cxd56xx/spresense/include/board.h
        There are some higher level functions here for the LED
        https://github.com/sonydevworld/spresense-nuttx/blob/new-master/boards/arm/cxd56xx/spresense/src/cxd56_userleds.c

        ... according to the documentation
        https://developer.sony.com/develop/spresense/docs/sdk_developer_guide_en.html#_pin_list
        https://github.com/sonydevworld/spresense-nuttx/blob/new-master/arch/arm/include/cxd56xx/pin.h

        1 Reply Last reply Reply Quote
        • First post
          Last post
        Developer World
        Copyright © 2021 Sony Group Corporation. All rights reserved.
        • Contact us
        • Legal