rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Data Structures | Typedefs | Functions | Variables
hal_pal_lld.h File Reference

Detailed Description

PAL subsystem low level driver header.

Author
andreika prome.nosp@m.theu.nosp@m.s.pcb.nosp@m.@gma.nosp@m.il.co.nosp@m.m

Definition in file hal_pal_lld.h.

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 _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_setpadmode (ioportid_t port, uint8_t pad, iomode_t mode)
 Pad mode setup.
 
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_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.
 

Go to the source code of this file.