diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2017-05-28 09:05:53 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2017-05-28 09:05:53 +0200 |
commit | edaad76b66e47d945d7aa352d13de5ab8251317a (patch) | |
tree | e1a90d4cd86e095cbea4a04832a49fe8b35853cc /bsp/radio-controller-1/Inc | |
parent | a819d3cbddbb5294b98b2fd6590f9fff13491d85 (diff) | |
download | radio-controller-edaad76b66e47d945d7aa352d13de5ab8251317a.tar.gz radio-controller-edaad76b66e47d945d7aa352d13de5ab8251317a.tar.bz2 radio-controller-edaad76b66e47d945d7aa352d13de5ab8251317a.tar.xz radio-controller-edaad76b66e47d945d7aa352d13de5ab8251317a.zip |
o Naming pins.
o Correct prescaler for 1us resolution.
o Trying out a lock structure for locking between an ISR and a main loop.
Diffstat (limited to 'bsp/radio-controller-1/Inc')
-rw-r--r-- | bsp/radio-controller-1/Inc/main.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bsp/radio-controller-1/Inc/main.h b/bsp/radio-controller-1/Inc/main.h index 6795087..be96275 100644 --- a/bsp/radio-controller-1/Inc/main.h +++ b/bsp/radio-controller-1/Inc/main.h @@ -49,7 +49,10 @@ /* USER CODE END Includes */ /* Private define ------------------------------------------------------------*/ -#define RX_TIMER_PRESCALER (72000000 / 72000) +#define RX_TIMER_PRESCALER (7200 - 1) + +#define RADIO_RX_Pin GPIO_PIN_8 +#define RADIO_RX_GPIO_Port GPIOA /* USER CODE BEGIN Private defines */ #ifdef __cplusplus |