RTEMS 6.1-rc2
Loading...
Searching...
No Matches
Modules | Files | Macros | Functions
NXP LPC17XX, LPC23XX, LPC24XX and LPC40XX

NXP LPC17XX, LPC23XX, LPC24XX and LPC40XX Board Support Package. More...

Modules

 DMA Support
 DMA support.
 
 DMA Support
 Direct memory access (DMA) support.
 
 EMC Support
 EMC Support.
 
 I2C Driver
 
 I2S Support
 I2S support.
 
 IO Support and Configuration
 Input and output module.
 
 LCD Support
 LCD support.
 
 Register Definitions
 Register definitions.
 
 SSP Driver
 
 System Clocks
 System clocks.
 
 Timer Support
 Timer support.
 

Files

file  console-config.c
 Console configuration.
 
file  uart-probe-1.c
 UART 1 probe.
 
file  uart-probe-2.c
 UART 2 probe.
 
file  uart-probe-3.c
 UART 3 probe.
 
file  bsp.h
 Global BSP definitions.
 
file  lpc-clock-config.h
 Clock driver configuration.
 
file  lpc-ethernet-config.h
 Ethernet driver configuration.
 
file  start-config.h
 BSP start configuration.
 
file  rtc-config.c
 RTC configuration.
 
file  bspidle.c
 Idle task.
 
file  bspreset-armv4.c
 Reset code.
 
file  bspstart.c
 Startup code.
 
file  bspstarthooks.c
 Startup code.
 
file  restart.c
 Restart implementation.
 
file  start-config-emc-dynamic.c
 BSP start EMC dynamic memory configuration.
 
file  start-config-emc-static.c
 BSP start EMC static memory configuration.
 
file  start-config-mpu.c
 BSP start MPU configuration.
 
file  start-config-pinsel.c
 BSP start pin selection configuration.
 
file  timer.c
 Benchmark timer support.
 

Macros

#define BSP_FEATURE_IRQ_EXTENSION
 
#define LPC24XX_PCLK   (LPC24XX_CCLK / LPC24XX_PCLKDIV)
 
#define LPC24XX_EMCCLK   (LPC24XX_CCLK / LPC24XX_EMCCLKDIV)
 
#define LPC24XX_MPU_REGION_COUNT   8
 
#define BSP_ARMV7M_IRQ_PRIORITY_DEFAULT   (29 << 3)
 
#define BSP_ARMV7M_SYSTICK_PRIORITY   (30 << 3)
 
#define BSP_ARMV7M_SYSTICK_FREQUENCY   LPC24XX_CCLK
 
#define RTEMS_BSP_NETWORK_DRIVER_ATTACH   lpc_eth_attach_detach
 Standard network driver attach and detach function.
 
#define RTEMS_BSP_NETWORK_DRIVER_NAME   "eth0"
 Standard network driver name.
 
#define BSP_CONSOLE_UART_BASE   0x4000c000
 

Functions

int lpc_eth_attach_detach (struct rtems_bsdnet_ifconfig *config, int attaching)
 Network driver attach and detach function.
 
void * bsp_idle_thread (uintptr_t ignored)
 Optimized idle task.
 
void bsp_restart (void *addr)
 
bool lpc24xx_uart_probe_1 (struct rtems_termios_device_context *context)
 
bool lpc24xx_uart_probe_2 (struct rtems_termios_device_context *context)
 
bool lpc24xx_uart_probe_3 (struct rtems_termios_device_context *context)
 

Detailed Description

NXP LPC17XX, LPC23XX, LPC24XX and LPC40XX Board Support Package.

Function Documentation

◆ bsp_idle_thread()

void * bsp_idle_thread ( uintptr_t  ignored)

Optimized idle task.

This idle task sets the power mode to idle. This causes the processor clock to be stopped, while on-chip peripherals remain active. Any enabled interrupt from a peripheral or an external interrupt source will cause the processor to resume execution.

To enable the idle task use the following in the system configuration:

#include <bsp.h>
#define CONFIGURE_INIT
#define CONFIGURE_IDLE_TASK_BODY bsp_idle_thread
#include <confdefs.h>
This header file evaluates the application configuration options defined by the application.

This idle task sets the power mode to idle. This causes the processor clock to be stopped, while on-chip peripherals remain active. Any enabled interrupt from a peripheral or an external interrupt source will cause the processor to resume execution.

To enable the idle task use the following in the system configuration:

#include <bsp.h>
#define CONFIGURE_INIT
#define CONFIGURE_IDLE_TASK_BODY bsp_idle_thread
#include <confdefs.h>

Optimized idle task.

The MSR[POW] bit is set to put the CPU into the low power mode defined in HID0. HID0 is set during starup in start.S.

This idle task sets the power mode to idle. This causes the processor clock to be stopped, while on-chip peripherals remain active. Any enabled interrupt from a peripheral or an external interrupt source will cause the processor to resume execution.

To enable the idle task use the following in the system configuration:

#include <bsp.h>
#define CONFIGURE_INIT
#define CONFIGURE_IDLE_TASK_BODY bsp_idle_thread
#include <confdefs.h>

Optimized idle task.

The MSR[POW] bit is set to put the CPU into the low power mode defined in HID0. HID0 is set during starup in start.S.