...
 
......@@ -45,21 +45,24 @@
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
#define CONFIGURE_MAXIMUM_TASKS 20
#define CONFIGURE_MAXIMUM_TASKS 30
#define CONFIGURE_MAXIMUM_POSIX_THREADS __PO_HI_NB_TASKS + 10
#define CONFIGURE_MAXIMUM_SEMAPHORES 20 // GRSPW1 IRQ layer needs one semaphore
#define CONFIGURE_MAXIMUM_SEMAPHORES 40 // GRSPW1 IRQ layer needs one semaphore
#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES 20
#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 32
#define CONFIGURE_MAXIMUM_DRIVERS 32
#define CONFIGURE_MAXIMUM_PERIODS 1
#define CONFIGURE_MAXIMUM_PERIODS 20
#define CONFIGURE_POSIX_INIT_THREAD_TABLE
#define CONFIGURE_INIT_TASK_ATTRIBUTES RTEMS_DEFAULT_ATTRIBUTES | RTEMS_FLOATING_POINT
#define CONFIGURE_INIT_TASK_STACK_SIZE 160*RTEMS_MINIMUM_STACK_SIZE
#define CONFIGURE_EXTRA_TASK_STACKS (40 * RTEMS_MINIMUM_STACK_SIZE)
#define CONFIGURE_POSIX_INIT_THREAD_STACK_SIZE (40 * RTEMS_MINIMUM_STACK_SIZE)
#define CONFIGURE_STACK_CHECKER_ENABLED
#if defined (AIR_HYPERVISOR)
#define CONFIGURE_MICROSECONDS_PER_TICK 5000
#else
......@@ -152,7 +155,7 @@ void *POSIX_Init (void);
/*
#define CONFIGURE_MAXIMUM_SEMAPHORES __PO_HI_NB_TASKS + (__PO_HI_NB_PORTS + 1) * 2 + __PO_HI_NB_PROTECTED + 1
*/
#define CONFIGURE_MAXIMUM_SEMAPHORES 20
#define CONFIGURE_MAXIMUM_SEMAPHORES 40
#define CONFIGURE_MAXIMUM_TASKS __PO_HI_NB_TASKS + 5
#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 20
#define CONFIGURE_MAXIMUM_PERIODS __PO_HI_NB_TASKS + 5
......
......@@ -59,6 +59,10 @@ CFLAGS=$(POHI_CFLAGS) $(USER_CFLAGS) $(GCC_GENERIC_CFLAGS)
CPPFLAGS=$(CFLAGS) $(USER_CPPFLAGS)
LDFLAGS=$(TARGET_LDFLAGS) $(USER_LDFLAGS)
ifeq ($(TARGET), $(filter $(TARGET), leon3-scoc3 leon.rtems leon.rtems_posix air))
LD_LIBS=$(USER_LDFLAGS)
endif
ifdef USE_GPROF
CFLAGS+=-D__PO_HI_USE_GPROF -pg
endif
......
......@@ -60,7 +60,7 @@ endif
# LEON3: RCC 1.3 macro to enables LEON3 peripherals.
ifeq ($(RTEMS_BSP),gr740)
POHI_CFLAGS += -DGRLEON3
POHI_CFLAGS += -DGRLEON3 -DLEON3
endif
# gr740_smp is provided by RCC 1.3
......
......@@ -83,6 +83,11 @@ struct drvmgr_bus_res grlib_drv_resources =
{DRIVER_AMBAPP_GAISLER_SPICTRL_ID, 0, &grlib_drv_res_spictrl0[0]},
*/
{DRIVER_AMBAPP_GAISLER_GRGPIO_ID, 0, &grlib_drv_res_grgpio0[0]},
{DRIVER_AMBAPP_GAISLER_GPTIMER_ID, 1, NULL},
{DRIVER_AMBAPP_GAISLER_GPTIMER_ID, 2, NULL},
{DRIVER_AMBAPP_GAISLER_GPTIMER_ID, 3, NULL},
{DRIVER_AMBAPP_GAISLER_GPTIMER_ID, 4, NULL},
{DRIVER_AMBAPP_GAISLER_GRETH_ID, 1, NULL},
DRVMGR_RES_EMPTY
}
};
......