Spresense Pin Initialization and Functions Library in C
-
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?
-
@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