-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Wallaby2 #22
base: wallaby-v8
Are you sure you want to change the base?
[WIP] Wallaby2 #22
Conversation
@@ -74,7 +74,7 @@ int main() | |||
//readAccel(); | |||
//readMag(); | |||
//readGyro(); | |||
readIMU(); | |||
if(count%1000==0)readIMU(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: better update frequency control
@@ -17,6 +17,11 @@ | |||
#include "wallaby_uart.h" | |||
|
|||
|
|||
// Wallaby2 | |||
#ifndef WALLABY2 | |||
#define WALLABY2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't default to WALLABY2
in this way if it is missing... what if we were a WALLABY
initSPI4(); | ||
|
||
setup_I2C1(); | ||
//initSPI4(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#ifdef WALLABY2 ...
// wait a bit | ||
delay_us(5000); | ||
|
||
//setupAccelMag(); | ||
|
||
//setupGyro(); | ||
|
||
debug_printf("calling setupIMU()\r\n"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no printfs
@@ -65,7 +65,7 @@ void initSPI3() | |||
SPI_InitStruct.SPI_CPOL = SPI_CPOL_Low; | |||
SPI_InitStruct.SPI_CPHA = SPI_CPHA_1Edge; | |||
SPI_InitStruct.SPI_NSS = SPI_NSS_Soft | SPI_NSSInternalSoft_Set; | |||
SPI_InitStruct.SPI_BaudRatePrescaler = SPI_BaudRatePrescaler_64; | |||
SPI_InitStruct.SPI_BaudRatePrescaler = SPI_BaudRatePrescaler_128; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
handle wallaby version
setupIMU(); | ||
|
||
/* | ||
setupUART2(); | ||
setupUART3(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wallaby version
Experimental support for the Wallaby2 board for firmware v8