If you need to interact with the GPIO, Hardware interrupts, SPI, I2C, etc. you should use the mbed layer in the SDK. Take a look at the documentation for mbed:
mbed documentation