diff options
author | Björn Stenberg <bjorn@haxx.se> | 2004-09-20 08:10:43 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2004-09-20 08:10:43 +0000 |
commit | 57945b125d7f467d222796920fb1b6cf4e90f802 (patch) | |
tree | 28ed7db21187e687fdac12d5e9bc4fefab1631ef /firmware | |
parent | 995d24ca2c6ff784a42cabaeef9f1329060d1642 (diff) | |
download | rockbox-57945b125d7f467d222796920fb1b6cf4e90f802.tar.gz rockbox-57945b125d7f467d222796920fb1b6cf4e90f802.zip |
Removed the Neo code. Nobody is interested in it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5096 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/drivers/button.c | 36 | ||||
-rw-r--r-- | firmware/drivers/lcd-player.c | 46 | ||||
-rw-r--r-- | firmware/drivers/serial.c | 2 | ||||
-rw-r--r-- | firmware/export/button.h | 45 | ||||
-rw-r--r-- | firmware/export/config-neo35.h | 52 | ||||
-rw-r--r-- | firmware/export/config.h | 2 | ||||
-rw-r--r-- | firmware/export/lcd.h | 21 |
7 files changed, 1 insertions, 203 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c index 25cdd3d96b..263dce4d16 100644 --- a/firmware/drivers/button.c +++ b/firmware/drivers/button.c | |||
@@ -385,42 +385,6 @@ static int button_read(void) | |||
385 | return btn; | 385 | return btn; |
386 | } | 386 | } |
387 | 387 | ||
388 | #elif defined(HAVE_NEO_KEYPAD) | ||
389 | static bool mStation = false; | ||
390 | void button_init(void) | ||
391 | { | ||
392 | /* set port pins as input */ | ||
393 | PAIOR &= ~0x4000; /* PA14 for stop button */ | ||
394 | |||
395 | queue_init(&button_queue); | ||
396 | lastbtn = 0; | ||
397 | tick_add_task(button_tick); | ||
398 | |||
399 | reset_poweroff_timer(); | ||
400 | } | ||
401 | int button_read(void) | ||
402 | { | ||
403 | int btn=BUTTON_NONE; | ||
404 | |||
405 | btn|=((~PCDR)&0xFF); | ||
406 | |||
407 | /* mStation does not have a stop button and this floods the button queue | ||
408 | with stops if used on a mStation */ | ||
409 | if (!mStation) | ||
410 | btn|=((~(PADR>>6))&0x100); | ||
411 | |||
412 | return btn; | ||
413 | } | ||
414 | |||
415 | /* This function adds a button press event to the button queue, and this | ||
416 | really isn't anything Neo-specific but might be subject for adding to | ||
417 | the generic button driver */ | ||
418 | int button_add(unsigned int button) | ||
419 | { | ||
420 | queue_post(&button_queue,button,NULL); | ||
421 | return 1; | ||
422 | } | ||
423 | |||
424 | #elif defined HAVE_ONDIO_KEYPAD | 388 | #elif defined HAVE_ONDIO_KEYPAD |
425 | 389 | ||
426 | /* | 390 | /* |
diff --git a/firmware/drivers/lcd-player.c b/firmware/drivers/lcd-player.c index fb870f232a..01d7cfdb6e 100644 --- a/firmware/drivers/lcd-player.c +++ b/firmware/drivers/lcd-player.c | |||
@@ -488,11 +488,7 @@ void lcd_set_contrast(int val) | |||
488 | 488 | ||
489 | void lcd_init (void) | 489 | void lcd_init (void) |
490 | { | 490 | { |
491 | #ifdef HAVE_NEO_LCD | ||
492 | new_lcd = true; | ||
493 | #else | ||
494 | new_lcd = has_new_lcd(); | 491 | new_lcd = has_new_lcd(); |
495 | #endif | ||
496 | memset(extended_chars_mapped, NO_CHAR, sizeof(extended_chars_mapped)); | 492 | memset(extended_chars_mapped, NO_CHAR, sizeof(extended_chars_mapped)); |
497 | memset(extended_pattern_content, NO_CHAR,sizeof(extended_pattern_content)); | 493 | memset(extended_pattern_content, NO_CHAR,sizeof(extended_pattern_content)); |
498 | memset(extended_pattern_usage, 0, sizeof(extended_pattern_usage)); | 494 | memset(extended_pattern_usage, 0, sizeof(extended_pattern_usage)); |
@@ -731,46 +727,4 @@ static void scroll_thread(void) | |||
731 | } | 727 | } |
732 | } | 728 | } |
733 | 729 | ||
734 | #ifdef HAVE_NEO_LCD | ||
735 | |||
736 | /* | ||
737 | * Function use by the Neo code, but could/should be made a generic one. | ||
738 | */ | ||
739 | void lcd_cursor(int x, int y) | ||
740 | { | ||
741 | /* If we make sure the display size is setup with proper defines in the | ||
742 | config-*.h files, this should work on all displays */ | ||
743 | if ((cursor.y_pos==y && cursor.x_pos==x) || | ||
744 | x>=20 || | ||
745 | y>3 || | ||
746 | x<0 || | ||
747 | y<0) { | ||
748 | DEBUGF("ignoring request for cursor to %d,%d - currently %d,%d\n", | ||
749 | x,y,cursor.x_pos,cursor.y_pos); | ||
750 | return; | ||
751 | } | ||
752 | |||
753 | char value=0; | ||
754 | |||
755 | cursor.y_pos=y; | ||
756 | cursor.x_pos=x; | ||
757 | |||
758 | switch (y) { | ||
759 | case 0: | ||
760 | value=0x80|x; | ||
761 | break; | ||
762 | case 1: | ||
763 | value=0x80|(x+0x40); | ||
764 | break; | ||
765 | case 2: | ||
766 | value=0x80|(x+0x14); | ||
767 | break; | ||
768 | case 3: | ||
769 | value=0x80|(x+0x54); | ||
770 | break; | ||
771 | } | ||
772 | lcd_write_command(value); | ||
773 | } | ||
774 | #endif | ||
775 | |||
776 | #endif /* HAVE_LCD_CHARCELLS */ | 730 | #endif /* HAVE_LCD_CHARCELLS */ |
diff --git a/firmware/drivers/serial.c b/firmware/drivers/serial.c index e1e0eb82e9..a66f3b1fa4 100644 --- a/firmware/drivers/serial.c +++ b/firmware/drivers/serial.c | |||
@@ -85,7 +85,7 @@ int remote_control_rx(void) | |||
85 | } | 85 | } |
86 | else | 86 | else |
87 | { | 87 | { |
88 | #if !defined(HAVE_NEO_KEYPAD) && !defined(HAVE_ONDIO_KEYPAD) | 88 | #ifndef HAVE_ONDIO_KEYPAD |
89 | switch (btn) | 89 | switch (btn) |
90 | { | 90 | { |
91 | case STOP: | 91 | case STOP: |
diff --git a/firmware/export/button.h b/firmware/export/button.h index 7ec484440f..50a9b1d8fd 100644 --- a/firmware/export/button.h +++ b/firmware/export/button.h | |||
@@ -36,49 +36,6 @@ void button_set_flip(bool flip); /* turn 180 degrees */ | |||
36 | 36 | ||
37 | #define BUTTON_NONE 0x0000 | 37 | #define BUTTON_NONE 0x0000 |
38 | 38 | ||
39 | #ifdef HAVE_NEO_KEYPAD | ||
40 | /* neo button codes */ | ||
41 | #define BUTTON_UP 0x0080 | ||
42 | #define BUTTON_DOWN 0x0010 | ||
43 | #define BUTTON_LEFT 0x0001 | ||
44 | #define BUTTON_RIGHT 0x0002 | ||
45 | |||
46 | #define BUTTON_SELECT 0x0040 | ||
47 | |||
48 | #define BUTTON_ON BUTTON_SELECT | ||
49 | |||
50 | #define BUTTON_PROGRAM 0x0020 | ||
51 | #define BUTTON_MENU 0x0004 | ||
52 | #define BUTTON_PLAY 0x0008 | ||
53 | #define BUTTON_STOP 0x0100 | ||
54 | |||
55 | #define BUTTON_IR 0x2000 | ||
56 | #define BUTTON_REPEAT 0x4000 | ||
57 | #define BUTTON_REL 0x8000 | ||
58 | |||
59 | #define BUTTON_FLAG_MASK 0xF000 | ||
60 | #define BUTTON_MASK 0x0FFF | ||
61 | #define BUTTON_ALL BUTTON_MASK | ||
62 | #define BUTTON_ALL_FLAGS BUTTON_FLAG_MASK | ||
63 | |||
64 | #define NEO_IR_BUTTON_POWER 0x0001 | ||
65 | #define NEO_IR_BUTTON_SETTING 0x0002 | ||
66 | #define NEO_IR_BUTTON_REWIND 0x0004 | ||
67 | #define NEO_IR_BUTTON_FFORWARD 0x0008 | ||
68 | #define NEO_IR_BUTTON_PLAY 0x0010 | ||
69 | #define NEO_IR_BUTTON_VOLUP 0x0020 | ||
70 | #define NEO_IR_BUTTON_VOLDN 0x0040 | ||
71 | #define NEO_IR_BUTTON_BROWSE 0x0080 | ||
72 | #define NEO_IR_BUTTON_EQ 0x0100 | ||
73 | #define NEO_IR_BUTTON_MUTE 0x0200 | ||
74 | #define NEO_IR_BUTTON_PROGRAM 0x0400 | ||
75 | #define NEO_IR_BUTTON_STOP 0x0800 | ||
76 | #define NEO_IR_BUTTON_NONE 0x0000 | ||
77 | |||
78 | #define NEO_IR_BUTTON_REPEAT 0x1000 | ||
79 | |||
80 | #else | ||
81 | |||
82 | /* Shared button codes */ | 39 | /* Shared button codes */ |
83 | #define BUTTON_LEFT 0x0040 | 40 | #define BUTTON_LEFT 0x0040 |
84 | #define BUTTON_RIGHT 0x0080 | 41 | #define BUTTON_RIGHT 0x0080 |
@@ -130,7 +87,5 @@ void button_set_flip(bool flip); /* turn 180 degrees */ | |||
130 | 87 | ||
131 | #endif /* HAVE_RECORDER/PLAYER/ONDIO_KEYPAD */ | 88 | #endif /* HAVE_RECORDER/PLAYER/ONDIO_KEYPAD */ |
132 | 89 | ||
133 | #endif /* HAVE_NEO_KEYPAD */ | ||
134 | |||
135 | #endif /* _BUTTON_H_ */ | 90 | #endif /* _BUTTON_H_ */ |
136 | 91 | ||
diff --git a/firmware/export/config-neo35.h b/firmware/export/config-neo35.h deleted file mode 100644 index fd5592f153..0000000000 --- a/firmware/export/config-neo35.h +++ /dev/null | |||
@@ -1,52 +0,0 @@ | |||
1 | /* define this if you have a charcell LCD display */ | ||
2 | #define HAVE_LCD_CHARCELLS 1 | ||
3 | |||
4 | /* define this if you have a neo-style LCD */ | ||
5 | #define HAVE_NEO_LCD 1 | ||
6 | |||
7 | /* define this if you have the Player's keyboard */ | ||
8 | #define HAVE_NEO_KEYPAD 1 | ||
9 | |||
10 | /* Define this if you have a SH7034 */ | ||
11 | #define HAVE_SH7034 | ||
12 | |||
13 | /* Define this if you have a MAS3507D */ | ||
14 | #define HAVE_MAS3507D | ||
15 | |||
16 | /* Define this if you have a DAC3550A */ | ||
17 | #define HAVE_DAC3550A | ||
18 | |||
19 | /* Define this to the CPU frequency */ | ||
20 | #define CPU_FREQ 12000000 /* cycle time ~83.3ns */ | ||
21 | |||
22 | /* Battery scale factor (?) */ | ||
23 | #define BATTERY_SCALE_FACTOR 6546 | ||
24 | |||
25 | /* Define this if you must discharge the data line by driving it low | ||
26 | and then set it to input to see if it stays low or goes high */ | ||
27 | #define HAVE_I2C_LOW_FIRST | ||
28 | |||
29 | /* Define this if you control power on PADR (instead of PBDR) */ | ||
30 | #define HAVE_POWEROFF_ON_PADR | ||
31 | |||
32 | /* Offset ( in the firmware file's header ) to the file length */ | ||
33 | #define FIRMWARE_OFFSET_FILE_LENGTH 0 | ||
34 | |||
35 | /* Offset ( in the firmware file's header ) to the file CRC */ | ||
36 | #define FIRMWARE_OFFSET_FILE_CRC 4 | ||
37 | |||
38 | /* Offset ( in the firmware file's header ) to the real data */ | ||
39 | #define FIRMWARE_OFFSET_FILE_DATA 6 | ||
40 | |||
41 | /* How to detect USB */ | ||
42 | #define USB_NONE 1 | ||
43 | |||
44 | /* If this is a Neo-style memory architecture platform */ | ||
45 | #define NEO_MEMORY 1 | ||
46 | |||
47 | /* Define this for programmable LED available */ | ||
48 | #define HAVE_LED | ||
49 | |||
50 | /* Define this for LCD backlight available */ | ||
51 | #define HAVE_BACKLIGHT | ||
52 | |||
diff --git a/firmware/export/config.h b/firmware/export/config.h index 359eadd82d..49306d4e81 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h | |||
@@ -28,8 +28,6 @@ | |||
28 | #include "config-fmrecorder.h" | 28 | #include "config-fmrecorder.h" |
29 | #elif defined(ARCHOS_RECORDERV2) | 29 | #elif defined(ARCHOS_RECORDERV2) |
30 | #include "config-recorderv2.h" | 30 | #include "config-recorderv2.h" |
31 | #elif defined(NEO_35) | ||
32 | #include "config-neo35.h" | ||
33 | #elif defined(ARCHOS_ONDIOSP) | 31 | #elif defined(ARCHOS_ONDIOSP) |
34 | #include "config-ondiosp.h" | 32 | #include "config-ondiosp.h" |
35 | #elif defined(ARCHOS_ONDIOFM) | 33 | #elif defined(ARCHOS_ONDIOFM) |
diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h index 21d1f4cc55..306e525b99 100644 --- a/firmware/export/lcd.h +++ b/firmware/export/lcd.h | |||
@@ -142,25 +142,4 @@ extern int lcd_getstringsize(const unsigned char *str, int *w, int *h); | |||
142 | 142 | ||
143 | #endif /* CHARCELLS / BITMAP */ | 143 | #endif /* CHARCELLS / BITMAP */ |
144 | 144 | ||
145 | /* These control codes may only work on the Neo LCD display */ | ||
146 | #ifdef HAVE_NEO_LCD | ||
147 | |||
148 | /* Cursor Control Instructions */ | ||
149 | #define LCD_OFFCUR 0x0C | ||
150 | #define LCD_LINECUR 0x0E | ||
151 | #define LCD_BLINKCUR 0x0D | ||
152 | #define LCD_COMBNCUR 0x0F | ||
153 | #define LCD_HOMECUR 0x02 | ||
154 | #define LCD_SHLFCUR 0x10 | ||
155 | #define LCD_SHRTCUR 0x14 | ||
156 | |||
157 | /* Display Control Instructions */ | ||
158 | #define LCD_CLEAR 0x01 | ||
159 | #define LCD_OFFDISP 0x08 | ||
160 | #define LCD_ONDISP 0x0C | ||
161 | #define LCD_SHLFDISP 0x18 | ||
162 | #define LCD_SHRTDISP 0x1C | ||
163 | #define LCD_SET_CGRAM 0x40 | ||
164 | #endif | ||
165 | |||
166 | #endif /* __LCD_H__ */ | 145 | #endif /* __LCD_H__ */ |