Subversion Repositories Code-Repo

Rev

Rev 251 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 251 Rev 252
Line 197... Line 197...
197
#pragma vector=PORT1_VECTOR
197
#pragma vector=PORT1_VECTOR
198
__interrupt void Port1_Interrupt(void) {
198
__interrupt void Port1_Interrupt(void) {
199
 
199
 
200
	if (ADXL_INT1_PxIFG & ADXL_INT1) {
200
	if (ADXL_INT1_PxIFG & ADXL_INT1) {
201
		LED_GREEN_HIGH();
201
		LED_GREEN_HIGH();
-
 
202
		__delay_cycles(1000000);
-
 
203
		LED_GREEN_LOW();
202
 
204
 
203
		// Bring chips out of low-power state
205
		// Bring chips out of low-power state
204
		CHIP_RESET_HIGH();
206
		CHIP_RESET_HIGH();
205
		VSInitSoftware();
207
		VSInitSoftware();
206
 
208
 
Line 216... Line 218...
216
		ADXLClearInterrupts();
218
		ADXLClearInterrupts();
217
 
219
 
218
		// Clear the interrupt flag
220
		// Clear the interrupt flag
219
		ADXL_INT1_PxIFG &= ~ADXL_INT1;
221
		ADXL_INT1_PxIFG &= ~ADXL_INT1;
220
 
222
 
221
		LED_GREEN_LOW();
-
 
-
 
223
 
222
	}
224
	}
223
 
225
 
224
//	if (ADXL_INT2_PxIFG & ADXL_INT2) {
226
//	if (ADXL_INT2_PxIFG & ADXL_INT2) {
225
//		LED_RED_HIGH();
227
//		LED_RED_HIGH();
226
//		__delay_cycles(2000000);
228
//		__delay_cycles(2000000);