Feature #594

Revise periphAL

Added by Thomas Schöpping 7 months ago.

Status:NewStart date:2019-03-14
Priority:NormalDue date:2019-05-31
Assignee:Thomas Schöpping% Done:


Category:-Estimated time:4.00 hours
Target version:-


The periphery abstraction layer (periphAL) should be revised and optimized:

  • All enum should be replaced by a combination of #define and optimal fundamental types (e.g. typedef uint16_t apalExitStatus_t) for best code efficiency.
  • apalGpioActive_t should be extended by two further states: APAL_GPIO_ACTIVE_NONE and APAL_GPIO_ACTIVE_ANY
  • apalGpioEdge_t documentation s´must clearly state that values refer to physical (not logical!) signal edges.
  • apalGpioMeta_t needs to be updated accordingly (i.e. two bits for the apalGpioActive_t member).
  • The edge member of apalGpioMeta_t can also apply to output signals, so wherever this struct is used, comments must be updated accordingly (right now the definitions in all module.c files state it as "interrupt edge", which just one of many ways how the edge information can be interpreted).

Also available in: Atom PDF