Changeset 493
- Timestamp:
- 02/26/07 20:08:04 (2 years ago)
- Files:
-
- trunk/hal/lpc2106-cmucam3/cc3.c (modified) (1 diff)
- trunk/hal/lpc2106-cmucam3/mmc_hardware.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/hal/lpc2106-cmucam3/cc3.c
r468 r493 743 743 } 744 744 745 // otherwise, it has been pressed, butit's in GPIO mode745 // otherwise, it has been pressed, and it's in GPIO mode 746 746 return !(REG (GPIO_IOPIN) & _CC3_BUTTON); 747 747 } trunk/hal/lpc2106-cmucam3/mmc_hardware.c
r372 r493 35 35 #include "cc3.h" 36 36 #include "mmc_hardware.h" 37 38 #include "interrupt.h" 37 39 38 40 #include <time.h> … … 187 189 { // select SPI target and light the LED. 188 190 //printf("selectMMC\r\n"); 189 191 disable_button_interrupt(); // button is multiplexed with CS 190 192 REG (GPIO_IODIR) |= _CC3_MMC_CS; // switch chip select to output 191 193 REG (GPIO_IOCLR) = _CC3_MMC_CS; // chip select (neg true) … … 198 200 REG (GPIO_IOSET) = _CC3_MMC_CS; // chip select (neg true) 199 201 REG (GPIO_IODIR) &= ~_CC3_MMC_CS; // switch chip select to input 202 if (!_cc3_button_trigger) { 203 enable_button_interrupt(); // button is multiplexed with CS 204 } 200 205 } 201 206
