27 #if (HAL_USE_PAL == TRUE) || defined(__DOXYGEN__) 120 #if (PAL_USE_CALLBACKS == TRUE) || defined(__DOXYGEN__) 156 #if (PAL_USE_WAIT == TRUE) || defined(__DOXYGEN__) ioportmask_t mask
Bus mask aligned to port bit 0.
Type of a PAL event record.
uint32_t ioportmask_t
Digital I/O port sized unsigned type.
uint32_t iopadid_t
Type of an pad identifier.
palcallback_t cb
Event callback.
uint32_t ioline_t
Type of an I/O line.
#define PAL_IOPORTS_WIDTH
Width, in bits, of an I/O port.
ioportid_t portid
Port identifier.
#define palReadGroup(port, mask, offset)
Reads a group of bits.
static void osalSysUnlock(void)
Leaves a critical zone from thread context.
msg_t palWaitLineTimeout(ioline_t line, sysinterval_t timeout)
Waits for an edge on the specified line.
msg_t palWaitPadTimeout(ioportid_t port, iopadid_t pad, sysinterval_t timeout)
Waits for an edge on the specified port/pad.
int32_t msg_t
Type of a message.
ioportmask_t palReadBus(const IOBus *bus)
Read from an I/O bus.
uint32_t ioportid_t
Port Identifier.
void palSetLineCallbackI(ioline_t line, palcallback_t cb, void *arg)
Associates a callback to a line.
#define pal_lld_get_pad_event(port, pad)
Returns a PAL event structure associated to a pad.
uint_fast8_t offset
Offset, within the port, of the least significant bit of the bus.
msg_t palWaitPadTimeoutS(ioportid_t port, iopadid_t pad, sysinterval_t timeout)
Waits for an edge on the specified port/pad.
#define osalDbgCheck(c)
Function parameters check.
void * arg
Event callback argument.
uint32_t sysinterval_t
Type of system time interval.
msg_t osalThreadEnqueueTimeoutS(threads_queue_t *tqp, sysinterval_t timeout)
Enqueues the caller thread.
void palSetPadCallbackI(ioportid_t port, iopadid_t pad, palcallback_t cb, void *arg)
Associates a callback to a port/pad.
void palWriteBus(const IOBus *bus, ioportmask_t bits)
Write to an I/O bus.
msg_t palWaitLineTimeoutS(ioline_t line, sysinterval_t timeout)
Waits for an edge on the specified line.
static void osalSysLock(void)
Enters a critical zone from thread context.
void palSetBusMode(const IOBus *bus, iomode_t mode)
Programs a bus with the specified mode.
uint32_t iomode_t
Digital I/O modes.
#define palWriteGroup(port, mask, offset, bits)
Writes a group of bits.
threads_queue_t threads
Threads queued for an event.
#define pal_lld_get_line_event(line)
Returns a PAL event structure associated to a line.
#define palSetGroupMode(port, mask, offset, mode)
Pads group mode setup.
void(* palcallback_t)(void *arg)
Type of a PAL event callback.