Commit Graph

124 Commits

Author SHA1 Message Date
paul eeepc a6a6369226 untested main.hex commit for logging rom/ram use
pinport has opcode only and opcode with 8bit operand complete:
14% used of 87.5% available

avr-size -C --mcu=atmega164a main.elf
AVR Memory Usage
----------------
Device: atmega164a

Program:    2300 bytes (14.0% Full)
(.text + .data + .bootloader)

Data:         45 bytes (4.4% Full)
(.data + .bss + .noinit)
2016-11-24 03:04:00 -06:00
Paul Molloy 31678bacfe renamed: host/source/pinport.h -> shared/shared_pinport.h
modified:   firmware/source/pinport.c
modified:   firmware/source/pinport.h
	-creating shared_pinport.h which is effectively a dictionary for
	pinport opcodes
	-file gets copied to host and firmware source dirs when compilied.
	-hardware macros had to be renamed to include underscore to
	differentiate opcode name from hardware macro.
	-pinport.c now is a nice clean switch between opcode name and
	macro with all literal numbers removed.
	-now don't have to manually track/update opcode numbers between
	multiple locations.

modified:   firmware/source/io.c
modified:   firmware/source/main.c
	-updates to add underscore pre-fix to hardware macros.
2016-11-23 18:12:50 -06:00
Paul Molloy aca6bb8960 modified: source/pinport.c
modified:   source/pinport.h
	-adding some compatibility between boards.
	-purple and green should work under final version commands.
	-making some commands lower case which aren't recommended.
2016-11-23 02:23:17 -06:00
Paul Molloy b1ba1c4432 modified: logic.h
-defining SUCCESS & ERROR_CODES
new file:   pinport.c
	-Creation of file with giant switch to decode byte value into
	macro call.
	-software AXL and AHL clocking of for green boards.
modified:   pinport.h
	-removed #ifdef for signals, should only be based on board when
	possible.
	-created macro for AXL/AHL_CLK to call software function
deleted:    macro.h
	-don't want this old guy around any more...
2016-11-23 01:19:14 -06:00
paul eeepc b43b3c0756 modified: Makefile
-modified to caluclate ROM/RAM usage of atmega164a

new file:   source/io.h
new file:   source/logic.h
	-created files

modified:   source/io.c
modified:   source/main.c
	-created io_pullup going to make separate io inits based on cartridge inserted
	-modifing for io.h

modified:   source/pinport.h
	-File mostly complete with all possible pin manipulations
2016-11-22 20:27:52 -06:00
paul eeepc f973d990cd Initial add of firmware hex.
Base line rom/ram usage.
usb read/write functions are enabled, but long transfers are not.
host support only for LED on/off.
2KB of 16KB (12.5%) of program memory are not available due to bootloader.

AVR Memory Usage
----------------
Device: atmega164a

Program:    1620 bytes (9.9% Full)	87.5% is MAX due to bootloader
(.text + .data + .bootloader)

Data:         45 bytes (4.4% Full)
(.data + .bss + .noinit)
2016-11-22 20:20:30 -06:00
Paul Molloy ab52b30d8d lowercasing soldermask color denotations for signals. 2016-11-22 00:30:03 -06:00
Paul Molloy 42e8339600 Updating pinport.h with PCB version history and more i/o definitions and
macros
2016-11-22 00:23:22 -06:00
paul eeepc 5620b34a9e new file: io.c
-creation of io file
modified:   main.c
	-moving io setup to io.c
new file:   pinport.h
	-creation of pinport file, intended to be avr specific code from macro.h
2016-11-21 17:54:29 -06:00
Paul Molloy b8be4b768a new file: shared/usb_commands.h
-shared .h files used in both firmware and host app
modified:   firmware/Makefile
modified:   host/Makefile
	-added shared dependency to copy shared files to source prior to
	building
modified:   host/source/usb_operations.h
modified:   firmware/source/main.c
	-removing usb commands (now in shared)
modified:   host/include/dbg.h
	-adding SUCCESS defintion
modified:   host/source/inlprog.c
	-calling write file if write arg sent
new file:   host/source/write_operations.c
new file:   host/source/write_operations.h
	-creation of write operations files
	-opens file and reads header
	-some skeleton comments
	-lots of work left to do here
new file:   roms/nrom_v_test.nes
	-adding NROM test rom file
2016-11-20 23:57:09 -06:00
Paul Molloy 6a370d3893 Moving source code to source folder
Modifing Makefile to support
2016-11-20 20:11:05 -06:00
paul eeepc c7f01a4429 Initial commit for firmware main.c
-basic fuctionality in place.
	-currently only using setup packet for LED on/off with request field.
	-Read and Write functions created but empty for now.
2016-11-19 01:50:26 -06:00
paul eeepc 65e38e8e77 Modifing firmware makefile to work with INL retro-prog 2016-11-18 23:46:02 -06:00
paul eeepc cd0fc116da Adding avr makefile for firmware
As downloaded from V-USB example custom-class device
2016-11-18 22:32:18 -06:00
paul eeepc ffe4634210 Initial commit for:
firmware/macro.h
	host/include
	host/libusb-1.0.dll
	host/winlib
2016-11-18 03:15:02 -06:00
paul eeepc 315ce9c083 Readme.txt adding more build notes mostly for linux.
bootloader Makefile: correcting bootloader lock fuses.
firmware/usbdrv/usbconfig.h making small note about file origin.
2016-11-18 00:35:10 -06:00
Paul Molloy 4b8c80876c moving bootloadHID out of firmware folder as it doesn't make sense there.
Also renaming to bootloadHID-master as that's it's "name" when downloaded from:
https://github.com/ajd4096/bootloadHID

May be adding obdev's original bootloader as well so I can tinker with
both versions and make final choice later on.
2016-11-17 22:28:43 -06:00
Paul Molloy 60eb00bec2 commiting built bootloader files 2016-11-11 21:20:03 -06:00
Paul Molloy 38e51a91c5 bootloadHID/firmware/Makefile modified to atmega164a
bootloadHID/firmware/bootloader.h modified to use BL/RUN switch to detect
bootload mode.
2016-11-11 21:17:02 -06:00
Paul Molloy 1be25c4434 rename bootloadHID-master dir to bootloadHID 2016-11-11 21:16:15 -06:00
Paul Molloy 3538801e8f adding note to V-USB usbdrv Readme.txt to include download location. 2016-11-11 14:33:12 -06:00
Paul Molloy f0c3fb5ad6 Adding bootloadHID as downloaded from:
https://github.com/ajd4096/bootloadHID
2016-11-11 14:31:00 -06:00
Paul Molloy 9054a41137 creation of usbconfig.h
Set POWER to 300mA, while typically less than 100mA it depends on
		cartridge inserted and number of cartridges.
	Set impementations of read and write functions to true.
	Set device version to v2.0 for this rebuild of INL Retro-Prog
	Set vendor and device name InfiniteNesLives.com INL Retro-Prog
2016-11-11 13:53:44 -06:00
Paul Molloy 93be432c14 adding usbdrv directory as downloaded from:
https://www.obdev.at/products/vusb/download.html

no changes made, as-is released from obdev.
2016-11-11 13:28:54 -06:00