rusEFI
The most advanced open source ECU
|
Data Structures | |
struct | PortConfig |
Port Configuration. More... | |
struct | PALConfig |
Generic I/O ports static initializer. More... | |
Typedefs | |
typedef uint32_t | ioportmask_t |
Digital I/O port sized unsigned type. | |
typedef uint32_t | iomode_t |
Digital I/O modes. | |
typedef uint32_t | ioline_t |
Type of an I/O line. | |
typedef uint32_t | ioeventmode_t |
Type of an event mode. | |
typedef GPIO_TypeDef * | ioportid_t |
Port Identifier. | |
typedef uint32_t | iopadid_t |
Type of an pad identifier. | |
Functions | |
void | dmaInit (void) |
void | _pal_lld_irq_handler (PORT_Type *base) |
PORT_TypeDef * | _pal_lld_get_port_config (ioportid_t port) |
uint8_t | _pal_lld_readpad (ioportid_t port, uint8_t pad) |
Reads a logical state from an I/O pad. | |
void | _pal_lld_writepad (ioportid_t port, uint8_t pad, uint8_t bit) |
Writes a logical state on an output pad. | |
void | _pal_lld_setpadmode (ioportid_t port, uint8_t pad, iomode_t mode) |
Pad mode setup. | |
void | _pal_lld_init (void) |
Kinetis I/O ports configuration. | |
void | _pal_lld_init (const PALConfig *config) |
void | _pal_lld_setgroupmode (ioportid_t port, ioportmask_t mask, iomode_t mode) |
Pads mode setup. | |
void | _pal_lld_enablepadevent (ioportid_t port, iopadid_t pad, ioeventmode_t mode) |
void | _pal_lld_disablepadevent (ioportid_t port, iopadid_t pad) |
Variables | |
palevent_t | _pal_events [KINETIS_GPIO_NUM_LINES] |
Event records for the 16 GPIO EXTI channels. | |
palevent_t | _pal_events [KINETIS_GPIO_NUM_LINES] |
Event records for the 16 GPIO EXTI channels. | |
typedef uint32_t ioeventmode_t |
Type of an event mode.
Definition at line 93 of file hal_pal_lld.h.
typedef uint32_t ioline_t |
Type of an I/O line.
Definition at line 88 of file hal_pal_lld.h.
typedef uint32_t iomode_t |
Digital I/O modes.
Definition at line 83 of file hal_pal_lld.h.
typedef uint32_t iopadid_t |
Type of an pad identifier.
Definition at line 107 of file hal_pal_lld.h.
typedef GPIO_TypeDef* ioportid_t |
Port Identifier.
This type can be a scalar or some kind of pointer, do not make any assumption about it, use the provided macros when populating variables of this type.
Definition at line 102 of file hal_pal_lld.h.
typedef uint32_t ioportmask_t |
Digital I/O port sized unsigned type.
Definition at line 78 of file hal_pal_lld.h.
void _pal_lld_disablepadevent | ( | ioportid_t | port, |
iopadid_t | pad | ||
) |
Definition at line 325 of file hal_pal_lld.c.
void _pal_lld_enablepadevent | ( | ioportid_t | port, |
iopadid_t | pad, | ||
ioeventmode_t | mode | ||
) |
Definition at line 301 of file hal_pal_lld.c.
PORT_TypeDef * _pal_lld_get_port_config | ( | ioportid_t | port | ) |
Definition at line 71 of file hal_pal_lld.c.
Referenced by _pal_lld_disablepadevent(), _pal_lld_enablepadevent(), and _pal_lld_setpadmode().
void _pal_lld_init | ( | const PALConfig * | config | ) |
Definition at line 253 of file hal_pal_lld.c.
void _pal_lld_init | ( | void | ) |
Kinetis I/O ports configuration.
Ports A-E clocks enabled.
[in] | config | the Kinetis ports configuration |
@notapi
Definition at line 238 of file hal_pal_lld.c.
void _pal_lld_irq_handler | ( | PORT_Type * | base | ) |
Definition at line 58 of file hal_pal_lld.c.
uint8_t _pal_lld_readpad | ( | ioportid_t | port, |
uint8_t | pad | ||
) |
Reads a logical state from an I/O pad.
[in] | port | port identifier |
[in] | pad | pad number within the port |
PAL_LOW | low logical state. |
PAL_HIGH | high logical state. |
@notapi
Definition at line 100 of file hal_pal_lld.c.
void _pal_lld_setgroupmode | ( | ioportid_t | port, |
ioportmask_t | mask, | ||
iomode_t | mode | ||
) |
Pads mode setup.
This function programs a pads group belonging to the same port with the specified mode.
[in] | port | the port identifier |
[in] | mask | the group mask |
[in] | mode | the mode |
@notapi
Definition at line 286 of file hal_pal_lld.c.
void _pal_lld_setpadmode | ( | ioportid_t | port, |
uint8_t | pad, | ||
iomode_t | mode | ||
) |
Pad mode setup.
This function programs a pad with the specified mode.
[in] | port | port identifier |
[in] | pad | pad number within the port |
[in] | mode | pad mode |
@notapi
Definition at line 145 of file hal_pal_lld.c.
void _pal_lld_writepad | ( | ioportid_t | port, |
uint8_t | pad, | ||
uint8_t | bit | ||
) |
Writes a logical state on an output pad.
[in] | port | port identifier |
[in] | pad | pad number within the port |
[in] | bit | logical value, the value must be PAL_LOW or PAL_HIGH |
@notapi
Definition at line 121 of file hal_pal_lld.c.
void dmaInit | ( | void | ) |
Definition at line 31 of file kinetis_dma.c.
Referenced by hal_lld_init().
palevent_t _pal_events[KINETIS_GPIO_NUM_LINES] |
Event records for the 16 GPIO EXTI channels.
Definition at line 45 of file hal_pal_lld.c.
|
extern |
Event records for the 16 GPIO EXTI channels.
Definition at line 45 of file hal_pal_lld.c.