From 8315b52a0e503089149fce525cbe78c007ff429d Mon Sep 17 00:00:00 2001 From: Olivier Matz Date: Thu, 31 Oct 2013 19:44:48 +0100 Subject: [PATCH] fix spi event period --- spi_servo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spi_servo.c b/spi_servo.c index 4b0d241..c180bc9 100644 --- a/spi_servo.c +++ b/spi_servo.c @@ -24,8 +24,8 @@ * callback is unloaded. */ -/* 1ms */ -#define SPI_EVT_PERIOD (10000UL/SCHEDULER_UNIT) +/* 1 scheduler unit (682us at 12Mhz) */ +#define SPI_EVT_PERIOD (1) #define PPM_BIT 0x01 #define BYPASS_BIT 0x02 -- 2.39.5