Commits

Anonymous committed 0297b17

Updated usb_serial.c to compile cleanly with modern avr-gcc builds
Added read entry for TRS-80 ROM

Comments (0)

Files changed (2)

 	uint8_t lo_pins[8];
 } prom_t;
 
+#define LATCH_PIN 0
 
 static const prom_t proms[] = {
 {
 	.lo_pins	= { 22, 20, 14, },
 },
 {
+	.name		= "LH-535618",
+    .options 	= OPTIONS_PULLUPS | OPTIONS_LATCH,
+	.pins		= 28,
+	.addr_width	= 15,
+	.addr_pins	= {
+    10, 9, 8, 7, 6, 5, 4, 3, 26, 25, 2, 20, 24, 22, 28,
+	},
+
+	.data_width	= 8,
+	.data_pins	= {
+		11, 12, 13, 15, 16, 17, 18, 19,
+	},
+	.hi_pins	= { 1, },
+	.lo_pins	= { 
+    [LATCH_PIN] = 23,
+    21, 27, 14, },
+},
+{
 	.name		= "M27C64",
 	.pins		= 28,
 	.addr_width	= 13,
 	.lo_pins	= { 22, 20, 14, },
 },
 {
-#define LATCH_PIN 0
 	.name		= "87C64",
 	.options 	= OPTIONS_PULLUPS | OPTIONS_LATCH,
 	.pins		= 28,
 // in here should only be done by those who've read chapter 9 of the USB
 // spec and relevant portions of any USB class specifications!
 
-static struct usb_device_descriptor PROGMEM device_descriptor = {
+const static struct usb_device_descriptor PROGMEM device_descriptor = {
 	.bLength		= sizeof(device_descriptor),
 	.bDescriptorType	= 1,
 	.bcdUSB			= 0x0200,
 
 #define CONFIG1_DESC_SIZE (9+9+5+5+4+5+7+9+7+7)
 #if 1
-static uint8_t PROGMEM config1_descriptor[CONFIG1_DESC_SIZE] = {
+const static uint8_t PROGMEM config1_descriptor[CONFIG1_DESC_SIZE] = {
 	// configuration descriptor, USB spec 9.6.3, page 264-266, Table 9-10
 	9, 					// bLength;
 	2,					// bDescriptorType;
 	uint8_t bDescriptorType;
 	int16_t wString[];
 };
-static struct usb_string_descriptor_struct PROGMEM string0 = {
+const static struct usb_string_descriptor_struct PROGMEM string0 = {
 	4,
 	3,
 	{0x0409}
 };
-static struct usb_string_descriptor_struct PROGMEM string1 = {
+const static struct usb_string_descriptor_struct PROGMEM string1 = {
 	sizeof(STR_MANUFACTURER),
 	3,
 	STR_MANUFACTURER
 };
-static struct usb_string_descriptor_struct PROGMEM string2 = {
+const static struct usb_string_descriptor_struct PROGMEM string2 = {
 	sizeof(STR_PRODUCT),
 	3,
 	STR_PRODUCT
 };
-static struct usb_string_descriptor_struct PROGMEM string3 = {
+const static struct usb_string_descriptor_struct PROGMEM string3 = {
 	sizeof(STR_SERIAL_NUMBER),
 	3,
 	STR_SERIAL_NUMBER
 
 // This table defines which descriptor data is sent for each specific
 // request from the host (in wValue and wIndex).
-static struct descriptor_list_struct {
+const static struct descriptor_list_struct {
 	uint16_t	wValue;
 	uint16_t	wIndex;
 	const uint8_t	*addr;
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.