summaryrefslogtreecommitdiff
path: root/bsp/radio-controller-1/Inc
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2017-05-31 23:51:56 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2017-05-31 23:51:56 +0200
commitdcfb42c972f904482514ef194003018a02c8c260 (patch)
tree4bd9b0867bdcc53c0ba7d13d22921e66cb0738f6 /bsp/radio-controller-1/Inc
parentedaad76b66e47d945d7aa352d13de5ab8251317a (diff)
downloadradio-controller-dcfb42c972f904482514ef194003018a02c8c260.tar.gz
radio-controller-dcfb42c972f904482514ef194003018a02c8c260.tar.bz2
radio-controller-dcfb42c972f904482514ef194003018a02c8c260.tar.xz
radio-controller-dcfb42c972f904482514ef194003018a02c8c260.zip
o Lots of work, IC not really working. Almost there.
Diffstat (limited to 'bsp/radio-controller-1/Inc')
-rw-r--r--bsp/radio-controller-1/Inc/main.h2
-rw-r--r--bsp/radio-controller-1/Inc/stm32f1xx_hal_conf.h4
-rw-r--r--bsp/radio-controller-1/Inc/stm32f1xx_it.h1
3 files changed, 3 insertions, 4 deletions
diff --git a/bsp/radio-controller-1/Inc/main.h b/bsp/radio-controller-1/Inc/main.h
index be96275..89bca50 100644
--- a/bsp/radio-controller-1/Inc/main.h
+++ b/bsp/radio-controller-1/Inc/main.h
@@ -49,7 +49,7 @@
/* USER CODE END Includes */
/* Private define ------------------------------------------------------------*/
-#define RX_TIMER_PRESCALER (7200 - 1)
+#define RADIO_RX_TIMER_PRESCALER (72000000/200000 - 1)
#define RADIO_RX_Pin GPIO_PIN_8
#define RADIO_RX_GPIO_Port GPIOA
diff --git a/bsp/radio-controller-1/Inc/stm32f1xx_hal_conf.h b/bsp/radio-controller-1/Inc/stm32f1xx_hal_conf.h
index ec25522..eb2b5ca 100644
--- a/bsp/radio-controller-1/Inc/stm32f1xx_hal_conf.h
+++ b/bsp/radio-controller-1/Inc/stm32f1xx_hal_conf.h
@@ -57,14 +57,14 @@
/*#define HAL_CORTEX_MODULE_ENABLED */
/*#define HAL_CRC_MODULE_ENABLED */
/*#define HAL_DAC_MODULE_ENABLED */
-#define HAL_DMA_MODULE_ENABLED
+/*#define HAL_DMA_MODULE_ENABLED */
/*#define HAL_ETH_MODULE_ENABLED */
/*#define HAL_FLASH_MODULE_ENABLED */
#define HAL_GPIO_MODULE_ENABLED
/*#define HAL_I2C_MODULE_ENABLED */
/*#define HAL_I2S_MODULE_ENABLED */
/*#define HAL_IRDA_MODULE_ENABLED */
-/*#define HAL_IWDG_MODULE_ENABLED */
+#define HAL_IWDG_MODULE_ENABLED
/*#define HAL_NOR_MODULE_ENABLED */
/*#define HAL_NAND_MODULE_ENABLED */
/*#define HAL_PCCARD_MODULE_ENABLED */
diff --git a/bsp/radio-controller-1/Inc/stm32f1xx_it.h b/bsp/radio-controller-1/Inc/stm32f1xx_it.h
index 576c3bd..f56b635 100644
--- a/bsp/radio-controller-1/Inc/stm32f1xx_it.h
+++ b/bsp/radio-controller-1/Inc/stm32f1xx_it.h
@@ -54,7 +54,6 @@ void SVC_Handler(void);
void DebugMon_Handler(void);
void PendSV_Handler(void);
void SysTick_Handler(void);
-void DMA1_Channel2_IRQHandler(void);
void USB_HP_CAN1_TX_IRQHandler(void);
void USB_LP_CAN1_RX0_IRQHandler(void);
void TIM1_TRG_COM_IRQHandler(void);