Structs

SPI Module initialization and state structure

pin structure

!< list of hooks to be notified

Public IRQ structure

Constants

!< this irq structure was malloced via avr_alloc_irq

!< do not “notify” if “value” is the same as previous raise

!< this ‘pin’/signal is floating

!< this irq hasn’t been used yet

!< change polarity of the IRQ

!< Can be used by irq users

Statics

Functions

! allocates ‘count’ IRQs, initializes their “irq” starting from ‘base’ and increment

reset bitbang sub-module

start bitbang transfer

stop bitbang transfer

! this connects a “source” IRQ to a “destination” IRQ

! init ‘count’ IRQs, initializes their “irq” starting from ‘base’ and increment

! Returns the current IRQ flags

! register a notification ‘hook’ for ‘irq’ – ‘param’ is anything that your want passed back as argument

! Sets this irq’s flags

Accumulates sleep requests (and returns a sleep time of 0) until a minimum count of requested sleep microseconds are reached (low amounts cannot be handled accurately). This function is an utility function for the sleep callbacks

! ‘raise’ an IRQ. Ie call their ‘hooks’, and raise any chained IRQs, and set the new ‘value’

! Same as avr_raise_irq(), but also allow setting the float status

Type Definitions

Logging macros and associated log levels. The current log level is kept in avr->log.

Unions