Skip to content
Andreas Gwilt edited this page Oct 30, 2015 · 16 revisions

General information:

  • r0 and r1 are outputs
  • r0 .. r3 are arguments
  • r4 .. r12 are preserved

Status: Completed

GPIO

gpio_blink:

  • Blink a pin for a given duration
  • Inputs:
    • r0 is the pin number
    • r1 is the duration in microseconds
  • Outputs: none
  • Registers not conserved: r0, r1, r2, r3

gpio_output:

  • Toggle a pin's output
  • Inputs:
    • r0 is the pin number
    • r1 is the state (1:set, 0:clr)
  • Outputs: none
  • Registers not conserved: r0, r1, r2

gpio_set_function:

  • Select function for a GPIO pin
  • Inputs:
    • r0 is the pin number
    • r1 is the function (either GPIO_IN or GPIO_OUT)
  • Outputs: none
  • Registers not conserved: r0, r1, r2, r3

System Timer

st_sleep:

  • Wait for r0 microseconds
  • Inputs:
    • r0 is the number of microseconds to sleep
  • Registers not conserved: r0, r1, r2

st_get_timestamp:

  • Get the current timestamp (from ST_CS) and put it in r0 and r1
  • Inputs: none
  • Outputs: timestamp in r0 and r1
  • Registers not conserved: r0, r1

Status: Planned

Clone this wiki locally