Changeset 4bc22a6d in rtems
- Timestamp:
- 07/07/05 22:07:11 (18 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- a617dac1
- Parents:
- 1f18710
- 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 1 2005-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 1 12 2005-06-06 Philippe Simons <loki_666@fastmail.fm> 2 13 -
c/src/lib/libbsp/arm/gp32/Makefile.am
r1f18710 r4bc22a6d 11 11 12 12 include_HEADERS = include/bsp.h 13 include_HEADERS += include/conio.h14 13 include_HEADERS += include/tm27.h 15 14 … … 37 36 38 37 noinst_PROGRAMS += console.rel 39 console_rel_SOURCES = console/ conio.c console/defaultfont.c console/console.c38 console_rel_SOURCES = console/uart.c ../../shared/console.c 40 39 console_rel_CPPFLAGS = $(AM_CPPFLAGS) 41 40 console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) … … 47 46 ../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/clock.rel \ 48 47 ../../../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 51 49 52 50 all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES) … … 73 71 $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp.h 74 72 PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp.h 75 76 $(PROJECT_INCLUDE)/conio.h: include/conio.h $(PROJECT_INCLUDE)/$(dirstamp)77 $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/conio.h78 PREINSTALL_FILES += $(PROJECT_INCLUDE)/conio.h79 73 80 74 $(PROJECT_INCLUDE)/tm27.h: include/tm27.h $(PROJECT_INCLUDE)/$(dirstamp) -
c/src/lib/libbsp/arm/gp32/include/bsp.h
r1f18710 r4bc22a6d 33 33 extern rtems_configuration_table BSP_Configuration; 34 34 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);38 35 #define gp32_initButtons() {rPBCON=0x0;} 39 36 #define gp32_getButtons() ( (((~rPEDAT >> 6) & 0x3 )<<8) | (((~rPBDAT >> 8) & 0xFF)<<0) ) -
c/src/lib/libbsp/arm/gp32/startup/bspstart.c
r1f18710 r4bc22a6d 20 20 #include <rtems/bspIo.h> 21 21 #include <s3c2400.h> 22 #include <conio.h>23 22 24 23 /*-------------------------------------------------------------------------+ … … 80 79 81 80 } /* bsp_pretasking_hook */ 81 82 void bsp_idle_task(void) 83 { 84 while(1){ 85 asm volatile ("MCR p15,0,r0,c7,c0,4 \n"); 86 } 87 } 82 88 83 89 /*-------------------------------------------------------------------------+ … … 99 105 Cpu_table.predriver_hook = NULL; /* use system's */ 100 106 Cpu_table.postdriver_hook = bsp_postdriver_hook; 101 Cpu_table.idle_task = NULL;107 Cpu_table.idle_task = bsp_idle_task; 102 108 103 109 Cpu_table.do_zero_of_workspace = TRUE; … … 105 111 Cpu_table.extra_mpci_receive_server_stack = 0; 106 112 107 /* setup rCLKCON */108 /* disable all but IIS,IIC,PWMTIMER and LCD */109 rCLKCON=0x6048;110 111 113 /* stop RTC */ 112 114 rTICINT=0x0; … … 120 122 rINTMOD=0x0; 121 123 rINTMSK=BIT_ALLMSK; /* unmasked by drivers */ 122 /*rSRCPND=BIT_ALLMSK; 123 rINTMSK=BIT_ALLMSK; 124 rINTPND=BIT_ALLMSK;*/ 124 125 last=0; 125 126 for(i=0; i<4; i++) { 126 127 pend=rSRCPND; … … 201 202 _CPU_ISR_Disable(level); 202 203 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 */ 205 227 }
Note: See TracChangeset
for help on using the changeset viewer.