ARMEBS4  revision-26.06.2015
Functions
AsmCalls
Collaboration diagram for AsmCalls:

Functions

void waitMs (uint32_t time_ms)
 Wait a given time in miliseconds. More...
 
void writeLed (uint32_t ledNr, uint32_t ledState)
 Turn a led on or off. More...
 
void writeLedPwm (uint32_t ledNr, uint32_t ledLevel)
 Set a led intensity. More...
 
uint32_t readButton (uint32_t buttonNr)
 Read a button. More...
 
void decOut (uint32_t value)
 Display a decimal value on the terminal. More...
 
void hexOut (uint32_t value)
 Display an hexadecimal value on the terminal. More...
 
void strOut (uint8_t *strPtr)
 Display a string on the terminal. More...
 
uint32_t decIn (void)
 Read a decimal value from the terminal. More...
 
uint32_t hexIn (void)
 Read an hexadecimal value from the terminal. More...
 
void strIn (uint8_t *strPtr, uint32_t maxLength)
 Read a string from the terminal. More...
 

Detailed Description

Function Documentation

void waitMs ( uint32_t  time_ms)

Wait a given time in miliseconds.

Parameters
time_msTime to wait in miliseconds (in r0)
void writeLed ( uint32_t  ledNr,
uint32_t  ledState 
)

Turn a led on or off.

Parameters
ledNrThe selected led number (0 to 3) in register r0
ledStateThe led status (0=off, else on) in register r1
void writeLedPwm ( uint32_t  ledNr,
uint32_t  ledLevel 
)

Set a led intensity.

Parameters
ledNrThe selected led number (0 to 3) in register r0
ledLevelThe led level (0=off to 100=100%) in register r1
uint32_t readButton ( uint32_t  buttonNr)

Read a button.

Parameters
buttonNrThe selected button number to read (0 to 3) in register r0
Returns
The button status in register r0 (0 = not pressed)
void decOut ( uint32_t  value)

Display a decimal value on the terminal.

Parameters
valueThe value to display on the terminal in register r0

Use USE_STDIO_NOBUF 1 in config.h to print direclty the value on the serial port.

void hexOut ( uint32_t  value)

Display an hexadecimal value on the terminal.

Parameters
valueThe value to display on the terminal in register r0

Use USE_STDIO_NOBUF 1 in config.h to print direclty the value on the serial port.

void strOut ( uint8_t *  strPtr)

Display a string on the terminal.

Parameters
strPtrThe string pointer in register r0

The string has to finish with a NULL character Use USE_STDIO_NOBUF 1 in config.h to print direclty the string on the serial port.

uint32_t decIn ( void  )

Read a decimal value from the terminal.

Returns
The value read in register r0

The value has to finish with a CR character Use USE_STDIO_ECHO 1 in config.h to have an echo on the serial port when typing.

uint32_t hexIn ( void  )

Read an hexadecimal value from the terminal.

Returns
The value read in register r0

The value has to finish with a CR character Use USE_STDIO_ECHO 1 in config.h to have an echo on the serial port when typing.

void strIn ( uint8_t *  strPtr,
uint32_t  maxLength 
)

Read a string from the terminal.

Parameters
strPtrThe string pointer in register r0
maxLengthThe maximum string length in register r1

The string ends with a CR Use USE_STDIO_ECHO 1 in config.h to have an echo on the serial port when typing.