Mbed support removed

Rationale: The support for both Zephyr and Mbed made the code confusing,
especially because of many ifdefs.

Zephyr RTOS is the future!
This commit is contained in:
Martin Jäger
2020-04-04 08:21:43 +02:00
parent 2c2e59c072
commit 2d74a3a554
22 changed files with 81 additions and 1076 deletions
-5
View File
@@ -38,13 +38,8 @@ class PWM_TIM3
GPIOB->MODER = (GPIOB->MODER & ~(GPIO_MODER_MODE1)) | GPIO_MODER_MODE1_1;
// Select AF2 on PB0 and PB1
#ifdef __MBED__
GPIOB->AFR[0] |= 0x2 << GPIO_AFRL_AFRL0_Pos;
GPIOB->AFR[0] |= 0x2 << GPIO_AFRL_AFRL1_Pos;
#else
GPIOB->AFR[0] |= 0x2 << GPIO_AFRL_AFSEL0_Pos;
GPIOB->AFR[0] |= 0x2 << GPIO_AFRL_AFSEL1_Pos;
#endif
// No prescaler --> timer frequency == SystemClock
TIM3->PSC = 0;