Rev 163 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 163 | Rev 166 | ||
|---|---|---|---|
| Line 108... | Line 108... | ||
| 108 | 108 | ||
| 109 | /************************************************************************* |
109 | /************************************************************************* |
| 110 | delay for a minimum of <us> microseconds |
110 | delay for a minimum of <us> microseconds |
| 111 | the number of loops is calculated at compile-time from MCU clock frequency |
111 | the number of loops is calculated at compile-time from MCU clock frequency |
| 112 | *************************************************************************/ |
112 | *************************************************************************/ |
| 113 | #define delay(us) _delayFourCycles( ( ( 1*( |
113 | #define delay(us) _delayFourCycles( ( ( 1*(F_OSC/4000) )*us)/1000 ) |
| 114 | 114 | ||
| 115 | 115 | ||
| 116 | #if LCD_IO_MODE |
116 | #if LCD_IO_MODE |
| 117 | /* toggle Enable Pin to initiate write */ |
117 | /* toggle Enable Pin to initiate write */ |
| 118 | static void toggle_e(void) |
118 | static void toggle_e(void) |