Changeset 4bc22a6d in rtems


Ignore:
Timestamp:
Jul 7, 2005, 10:07:11 PM (15 years ago)
Author:
Philippe Simons <loki_666@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
a617dac1
Parents:
1f18710
Message:

2005-07-07 Philippe Simons <loki_666@…>

  • Makefile.am: Remove lcd.rel, added console/uart.c, removed conio stuffs.
  • console/conio.c, console/console.c, console/defaultfont.c, include/conio.h : files removed.
  • console/uart.c: New file.
  • include/bsp.h: lcd.c prototypes removed.
  • startup/bspstart.c: bsp_reset() cause gp32 to reset to bios, added a bsp_idle_task which put s3c2400 in a "wait for IRQ" state.
Location:
c/src/lib/libbsp/arm/gp32
Files:
1 added
4 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/gp32/ChangeLog

    r1f18710 r4bc22a6d  
     12005-07-07      Philippe Simons <loki_666@fastmail.fm>
     2
     3        * Makefile.am: Remove lcd.rel, added console/uart.c,
     4        removed conio stuffs.
     5        * console/conio.c, console/console.c, console/defaultfont.c,
     6        include/conio.h : files removed.
     7        * console/uart.c: New file.
     8        * include/bsp.h: lcd.c prototypes removed.
     9        * startup/bspstart.c: bsp_reset() cause gp32 to reset to bios,
     10        added a bsp_idle_task which put s3c2400 in a "wait for IRQ" state.
     11
    1122005-06-06      Philippe Simons <loki_666@fastmail.fm>
    213
  • c/src/lib/libbsp/arm/gp32/Makefile.am

    r1f18710 r4bc22a6d  
    1111
    1212include_HEADERS = include/bsp.h
    13 include_HEADERS += include/conio.h
    1413include_HEADERS += include/tm27.h
    1514
     
    3736
    3837noinst_PROGRAMS += console.rel
    39 console_rel_SOURCES = console/conio.c console/defaultfont.c console/console.c
     38console_rel_SOURCES = console/uart.c ../../shared/console.c
    4039console_rel_CPPFLAGS = $(AM_CPPFLAGS)
    4140console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     
    4746    ../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/clock.rel \
    4847    ../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/timer.rel \
    49     ../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/irq.rel \
    50     ../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/lcd.rel
     48    ../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/irq.rel
    5149
    5250all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
     
    7371        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp.h
    7472PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp.h
    75 
    76 $(PROJECT_INCLUDE)/conio.h: include/conio.h $(PROJECT_INCLUDE)/$(dirstamp)
    77         $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/conio.h
    78 PREINSTALL_FILES += $(PROJECT_INCLUDE)/conio.h
    7973
    8074$(PROJECT_INCLUDE)/tm27.h: include/tm27.h $(PROJECT_INCLUDE)/$(dirstamp)
  • c/src/lib/libbsp/arm/gp32/include/bsp.h

    r1f18710 r4bc22a6d  
    3333extern rtems_configuration_table BSP_Configuration;
    3434
    35 void gp32_setFramebuffer(void *add);
    36 short gp32_initFramebufferN(void *add, uint32_t bitmode, uint32_t refreshrate);
    37 short gp32_initFramebufferBP(void *add, uint32_t bitmode, uint32_t refreshrate);
    3835#define gp32_initButtons() {rPBCON=0x0;}
    3936#define gp32_getButtons() ( (((~rPEDAT >> 6) & 0x3 )<<8) | (((~rPBDAT >> 8) & 0xFF)<<0) )
  • c/src/lib/libbsp/arm/gp32/startup/bspstart.c

    r1f18710 r4bc22a6d  
    2020#include <rtems/bspIo.h>
    2121#include <s3c2400.h>
    22 #include <conio.h>
    2322
    2423/*-------------------------------------------------------------------------+
     
    8079
    8180} /* bsp_pretasking_hook */
     81
     82void bsp_idle_task(void)
     83{
     84        while(1){
     85                asm volatile ("MCR p15,0,r0,c7,c0,4     \n");
     86        }
     87}
    8288 
    8389/*-------------------------------------------------------------------------+
     
    99105    Cpu_table.predriver_hook       = NULL;                /* use system's    */
    100106    Cpu_table.postdriver_hook      = bsp_postdriver_hook;
    101     Cpu_table.idle_task            = NULL;
     107    Cpu_table.idle_task            = bsp_idle_task;
    102108                                         
    103109    Cpu_table.do_zero_of_workspace = TRUE;
     
    105111    Cpu_table.extra_mpci_receive_server_stack = 0;
    106112
    107     /* setup rCLKCON */
    108     /* disable all but IIS,IIC,PWMTIMER and LCD */
    109     rCLKCON=0x6048;
    110 
    111113    /* stop RTC */
    112114    rTICINT=0x0;
     
    120122    rINTMOD=0x0;
    121123    rINTMSK=BIT_ALLMSK; /* unmasked by drivers */
    122     /*rSRCPND=BIT_ALLMSK;
    123     rINTMSK=BIT_ALLMSK;
    124     rINTPND=BIT_ALLMSK;*/
     124
     125    last=0;
    125126    for(i=0; i<4; i++) {
    126127        pend=rSRCPND;
     
    201202    _CPU_ISR_Disable(level);
    202203    printk("bsp_reset.....\n");
    203     ShowConIO();
    204     while(1);
     204        /* disable mmu, invalide i-cache and call swi #4 */
     205        asm volatile(""
     206                "mrc    p15,0,r0,c1,c0,0        \n"
     207                "bic    r0,r0,#1                        \n"
     208                "mcr    p15,0,r0,c1,c0,0        \n"
     209                "nop                                            \n"
     210                "nop                                            \n"
     211                "nop                                            \n"
     212                "nop                                            \n"
     213                "nop                                            \n"
     214                "mov    r0,#0                                   \n"
     215                "MCR    p15,0,r0,c7,c5,0                        \n"
     216                "nop                                            \n"
     217                "nop                                            \n"
     218                "nop                                            \n"
     219                "nop                                            \n"
     220                "nop                                            \n"
     221                "swi    #4                                      "
     222        :
     223        :
     224        : "r0"
     225        );
     226        /* we should be back in bios now */
    205227}
Note: See TracChangeset for help on using the changeset viewer.