summaryrefslogtreecommitdiff
path: root/bsp/radio-controller-1/Inc
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2017-05-28 09:05:53 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2017-05-28 09:05:53 +0200
commitedaad76b66e47d945d7aa352d13de5ab8251317a (patch)
treee1a90d4cd86e095cbea4a04832a49fe8b35853cc /bsp/radio-controller-1/Inc
parenta819d3cbddbb5294b98b2fd6590f9fff13491d85 (diff)
downloadradio-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.h5
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