Changeset 279
- Timestamp:
- 12/30/06 14:29:01 (2 years ago)
- Files:
-
- trunk/hal/Makefile (modified) (1 diff)
- trunk/hal/lpc2106-cmucam3/cc3.c (modified) (1 diff)
- trunk/hal/lpc2106-cmucam3/defs.mk (modified) (1 diff)
- trunk/hal/lpc2106-cmucam3/gpio.c (modified) (1 diff)
- trunk/hal/lpc2106-cmucam3/serial.c (modified) (2 diffs)
- trunk/hal/virtual-cam/Makefile (modified) (1 diff)
- trunk/include/common.mk (modified) (1 diff)
- trunk/lib/cc3_ilp/cc3_ilp.c (modified) (1 diff)
- trunk/tools/cc3_image_viewer/Form1.vb (modified) (3 diffs)
- trunk/tools/cc3_image_viewer/bin/Debug/CMUcam3 Frame Grabber.exe (modified) (previous)
- trunk/tools/cc3_image_viewer/bin/Debug/CMUcam3 Frame Grabber.pdb (modified) (previous)
- trunk/tools/cc3_image_viewer/bin/Debug/test.jpg (modified) (previous)
- trunk/tools/cc3_image_viewer/bin/Release/CMUcam3 Frame Grabber.exe (modified) (previous)
- trunk/tools/cc3_image_viewer/bin/Release/CMUcam3 Frame Grabber.pdb (modified) (previous)
- trunk/tools/cc3_image_viewer/obj/Debug/CMUcam3 Frame Grabber.exe (modified) (previous)
- trunk/tools/cc3_image_viewer/obj/Debug/CMUcam3 Frame Grabber.pdb (modified) (previous)
- trunk/tools/cc3_image_viewer/obj/Release/CMUcam3 Frame Grabber.exe (modified) (previous)
- trunk/tools/cc3_image_viewer/obj/Release/CMUcam3 Frame Grabber.pdb (modified) (previous)
- trunk/tools/cc3_image_viewer/obj/cc3_img_viewer.vbproj.FileList.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/hal/Makefile
r273 r279 1 #SUBDIRS=lpc2106-cmucam3 virtual-cam 2 SUBDIRS=virtual-cam 1 SUBDIRS=lpc2106-cmucam3 virtual-cam 2 #SUBDIRS=lpc2106-cmucam3 3 #SUBDIRS=virtual-cam 3 4 4 5 # Build rules trunk/hal/lpc2106-cmucam3/cc3.c
r251 r279 519 519 int cc3_camera_init () 520 520 { 521 REG (PCB_PINSEL0) = (REG (PCB_PINSEL0) & 0xFFFF0000) | UART0_PCB_PINSEL_CFG ; //| 0x50;521 REG (PCB_PINSEL0) = (REG (PCB_PINSEL0) & 0xFFFF0000) | UART0_PCB_PINSEL_CFG | UART1_PCB_PINSEL_CFG; //| 0x50; 522 522 //REG (PCB_PINSEL0) = (REG (PCB_PINSEL0) & 0xFFFF0000) | UART0_PCB_PINSEL_CFG | UART1_PCB_PINSEL_CFG; //| 0x50; 523 523 REG (GPIO_IODIR) = _CC3_DEFAULT_PORT_DIR; trunk/hal/lpc2106-cmucam3/defs.mk
r273 r279 42 42 43 43 LIBS+= 44 #override CFLAGS+=-I$(HALDIR)/../../include -Os -funit-at-a-time -mcpu=arm7tdmi-s -Wall -Wstrict-prototypes -Wcast-align -Wcast-qual -Wimplicit -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wswitch -Wredundant-decls -Wreturn-type -Wshadow -Wstrict-prototypes -Wunused -Wextra -Werror-implicit-function-declaration -ffreestanding -std=gnu99 -g -fdata-sections -ffunction-sections -msoft-float -mthumb-interwork $(THUMB_FLAGS)45 #override LDFLAGS+=-nostartfiles -lm -T$(HALDIR)/lpc2106-rom.ln -mcpu=arm7tdmi-s -msoft-float $(THUMB_FLAGS)44 override CFLAGS+=-I$(HALDIR)/../../include -Os -funit-at-a-time -mcpu=arm7tdmi-s -Wall -Wstrict-prototypes -Wcast-align -Wcast-qual -Wimplicit -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wswitch -Wredundant-decls -Wreturn-type -Wshadow -Wstrict-prototypes -Wunused -Wextra -Werror-implicit-function-declaration -ffreestanding -std=gnu99 -g -fdata-sections -ffunction-sections -msoft-float -mthumb-interwork $(THUMB_FLAGS) 45 override LDFLAGS+=-nostartfiles -lm -T$(HALDIR)/lpc2106-rom.ln -mcpu=arm7tdmi-s -msoft-float $(THUMB_FLAGS) 46 46 47 47 HALLIB=libhal-$(HALNAME).a trunk/hal/lpc2106-cmucam3/gpio.c
r272 r279 9 9 void cc3_gpio_set_to_servo(uint8_t mask) 10 10 { 11 printf( "set servo!\n" );11 //printf( "set servo!\n" ); 12 12 } 13 13 trunk/hal/lpc2106-cmucam3/serial.c
r271 r279 107 107 // setup FIFO Control Register (fifo-enabled + xx trig) 108 108 REG(UART1_FCR) = fmode; 109 uart0_write("setting uart1\r\n" ); 110 uart0_write("mode: " ); uart0_write_hex(mode); 111 uart0_write("\r\nfmode: " ); uart0_write_hex(fmode); 112 109 113 } 110 114 … … 269 273 int uart1_getc() 270 274 { 271 while ((REG (UART1_LSR) & LSR_RBR_EMPTY) == 0) ;275 while ((REG (UART1_LSR) & LSR_RBR_EMPTY) == 0) ; 272 276 return REG (UART1_RBR); 273 277 } trunk/hal/virtual-cam/Makefile
r273 r279 22 22 hal: 23 23 $(MAKE) -f hal.mk 24 #$(MAKE) -f hal.mk thumb=125 24 26 25 libs: 27 26 $(MAKE) -C ../../lib 28 #$(MAKE) -C ../../lib thumb=129 27 30 28 clean: 31 29 $(RM) *.a *.o 32 30 $(MAKE) -C ../../lib clean 33 #$(MAKE) -C ../../lib clean thumb=134 31 35 32 trunk/include/common.mk
r273 r279 23 23 ifeq ($(strip $(hal)),) 24 24 hal=lpc2106-cmucam3 25 #hal=virtual-cam26 25 endif 27 26 trunk/lib/cc3_ilp/cc3_ilp.c
r273 r279 20 20 21 21 22 #include <cc3.h>22 #include "cc3.h" 23 23 #include "cc3_ilp.h" 24 24 #include <stdbool.h> trunk/tools/cc3_image_viewer/Form1.vb
r244 r279 3 3 Public jpeg_grab As Byte 4 4 Public myStr As String 5 5 6 6 7 7 8 … … 12 13 ByVal e As System.EventArgs) _ 13 14 Handles MyBase.Load 15 14 16 15 17 For i As Integer = 0 To _ … … 77 79 Dim buf() As Byte 78 80 81 79 82 jpeg_grab = 1 80 83 serialPort.DiscardInBuffer() trunk/tools/cc3_image_viewer/obj/cc3_img_viewer.vbproj.FileList.txt
r244 r279 9 9 obj\Debug\CC3_GRAB.Resources.resources 10 10 obj\Debug\cc3_img_viewer.vbproj.GenerateResource.Cache 11 bin\Release\CMUcam3 Frame Grabber.exe 12 bin\Release\CMUcam3 Frame Grabber.pdb 13 bin\Release\CMUcam3 Frame Grabber.xml 14 obj\Release\ResolveAssemblyReference.cache 15 obj\Release\CC3_GRAB.Form1.resources 16 obj\Release\CC3_GRAB.Resources.resources 17 obj\Release\cc3_img_viewer.vbproj.GenerateResource.Cache 18 obj\Release\CMUcam3 Frame Grabber.exe 19 obj\Release\CMUcam3 Frame Grabber.xml 20 obj\Release\CMUcam3 Frame Grabber.pdb
