Skip to content
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

Open
wants to merge 1 commit into
base: wallaby-v8
Choose a base branch
from
Open

[WIP] Wallaby2 #22

wants to merge 1 commit into from

Conversation

jsoutherland
Copy link

Experimental support for the Wallaby2 board for firmware v8

@@ -74,7 +74,7 @@ int main()
//readAccel();
//readMag();
//readGyro();
readIMU();
if(count%1000==0)readIMU();
Copy link
Author

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
Copy link
Author

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();
Copy link
Author

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");
Copy link
Author

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;
Copy link
Author

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();
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wallaby version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant