From f7a1d2e9cdbb4f4d4f0c7712803d5abd34f55763 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 31 May 2012 21:32:20 +0000 Subject: some timing test for idm communication (not working yet - hardware probs?) git-svn-id: https://svn.spreadspace.org/mur.sat@501 7de4ea59-55d0-425e-a1af-a3118ea81d4c --- software/idm-test/idm-test.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'software/idm-test/idm-test.c') diff --git a/software/idm-test/idm-test.c b/software/idm-test/idm-test.c index 0de977f..c72ab91 100644 --- a/software/idm-test/idm-test.c +++ b/software/idm-test/idm-test.c @@ -43,7 +43,7 @@ /* Global I/O Buffers: */ static RingBuffer_t SPItoUSB_Buffer; -static uint8_t SPItoUSB_Buffer_Data[128]; +static uint8_t SPItoUSB_Buffer_Data[8]; /** LUFA CDC Class driver interface configuration and state information. This structure is * passed to all CDC Class driver functions, so that multiple instances of the same class @@ -104,7 +104,7 @@ void SetupHardware(void) TCCR0B = (1 << CS02); - SPI_Init(SPI_SPEED_FCPU_DIV_4 | SPI_MODE_MASTER | SPI_ORDER_MSB_FIRST | + SPI_Init(SPI_SPEED_FCPU_DIV_16 | SPI_MODE_MASTER | SPI_ORDER_MSB_FIRST | SPI_SCK_LEAD_RISING | SPI_SAMPLE_LEADING); SPI_CS_DDR |= (1<