RTEMS  5.0.0
Data Structures | Macros | Typedefs | Functions
io.c File Reference

Input and output module. More...

#include <bsp.h>
#include <bsp/io.h>
#include <bsp/start.h>
#include <bsp/system-clocks.h>

Data Structures

struct  lpc24xx_module_entry
 

Macros

#define LPC24XX_PIN_SELECT(index)   ((index) >> 4U)
 
#define LPC24XX_PIN_SELECT_SHIFT(index)   (((index) & 0xfU) << 1U)
 
#define LPC24XX_PIN_SELECT_MASK   0x3U
 
#define LPC24XX_MODULE_ENTRY(mod, pwr, clk, idx)
 

Typedefs

typedef rtems_status_code(* lpc24xx_pin_visitor) (volatile uint32_t *iocon, lpc24xx_pin_range pin_range, volatile uint32_t *fio_dir, uint32_t fio_bit)
 

Functions

rtems_status_code lpc24xx_gpio_config (unsigned index, lpc24xx_gpio_settings settings)
 
rtems_status_code lpc24xx_module_enable (lpc24xx_module module, lpc24xx_module_clock clock)
 
rtems_status_code lpc24xx_module_disable (lpc24xx_module module)
 
bool lpc24xx_module_is_enabled (lpc24xx_module module)
 
BSP_START_TEXT_SECTION rtems_status_code lpc24xx_pin_config (const lpc24xx_pin_range *pins, lpc24xx_pin_action action)
 Performs the action with the pins. More...
 

Detailed Description

Input and output module.

Macro Definition Documentation

◆ LPC24XX_MODULE_ENTRY

#define LPC24XX_MODULE_ENTRY (   mod,
  pwr,
  clk,
  idx 
)
Value:
[mod] = { \
.power = pwr, \
.clock = clk, \
.index = idx \
}