commit | 74acd62b075b1a8da5e4d7254da06580098e8172 | [log] [tgz] |
---|---|---|
author | Brian Silverman <brians> | Sat Oct 26 14:47:14 2013 -0700 |
committer | Brian Silverman <brians> | Sat Oct 26 15:56:49 2013 -0700 |
tree | 36b56484065fb2f45b7fb0a84c57d23e8cf1eae3 | |
parent | bd3d5d4cc64396b557d5cf42888ad66dafcb75b2 [diff] [blame] |
added analog sensors and cleaned up the sensor data structure a bit
diff --git a/gyro_board/src/usb/gyro.c b/gyro_board/src/usb/gyro.c index 866e890..ad49658 100644 --- a/gyro_board/src/usb/gyro.c +++ b/gyro_board/src/usb/gyro.c
@@ -185,8 +185,9 @@ } static portTASK_FUNCTION(gyro_read_task, pvParameters) { - // Connect power and clock. SC->PCONP |= PCONP_PCSSP0; + + // Make sure that the clock is set up right. SC->PCLKSEL1 &= ~(3 << 10); SC->PCLKSEL1 |= 1 << 10;