Feature #594
Revise periphAL
| Status: | Resolved | Start date: | 2019-03-14 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | 2019-05-31 | |
| Assignee: | % Done: | 100% | ||
| Category: | - | Estimated time: | 8.00 hours | |
| Target version: | - |
Description
The periphery abstraction layer (periphAL) should be revised and optimized:
- All
enumshould be replaced by a combination of#defineand optimal fundamental types (e.g.typedef uint16_t apalExitStatus_t) for best code efficiency. apalGpioActive_tshould be extended by two further states:APAL_GPIO_ACTIVE_NONEandAPAL_GPIO_ACTIVE_ANYapalGpioEdge_tdocumentation s´must clearly state that values refer to physical (not logical!) signal edges.apalGpioMeta_tneeds to be updated accordingly (i.e. two bits for theapalGpioActive_tmember).- The
edgemember ofapalGpioMeta_tcan also apply to output signals, so wherever this struct is used, comments must be updated accordingly (right now the definitions in allmodule.cfiles state it as "interrupt edge", which just one of many ways how the edge information can be interpreted).
History
#1
Updated by Thomas Schöpping about 6 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
- Estimated time changed from 4.00 to 8.00
The structure of periphAL was heavily revised.
In addition to the requested enhancements, the interface header is now a fixed component of AMiRo-LLD, thus it is not required that the using OS implements this header.