Henky Prayoga
4802c6d86a
stm32: Allow STM32F401 boards to use STM32 HID Bootloader ( #4461 )
...
Signed-off-by: Henky Prayoga <henky.prayoga@callysta-engineering.com>
2021-07-09 11:20:30 -04:00
henrikssn
430578957f
stm32: Add support for STM32F072 (used in the TurboCAN board) ( #4412 )
...
* Add menuconfig option for stm32f072
* Add support for internal temp of stm32f072
* Share the temperature calculation logic between stm32f0x2 MCUs
Signed-off-by: Erik Henriksson <erikhenrikssn@gmail.com>
2021-06-27 20:35:34 -04:00
github@matthewlloyd.net
23f466bfce
config: Add configs for Prusa Buddy and Mini+
...
Signed-off-by: Matthew Lloyd <github@matthewlloyd.net>
2021-06-14 12:37:34 -04:00
Kevin O'Connor
4ea434796b
stm32: Support spi1 on PB4/PB5/PB3 on stm32f103 and stm32f2
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-05-26 00:04:30 -04:00
Kevin O'Connor
f99dca0918
stm32: Allow alternate USART1 and USART2 ports on stm32f1 and stm32f2
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-05-25 23:50:28 -04:00
Kevin O'Connor
273106358d
stm32: Reorganize stm32f1 pin remap handling
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-05-25 23:50:28 -04:00
Kevin O'Connor
12acb99a38
stm32: Fix USART3 on stm32f1 and stm32f2
...
Commit 6a3c357a
incorrectly disabled support for USART3 on stm32f1 and
stm32f2 - restore that support.
Also, add support for USART3 on PD9/PD8 on stm32f103.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-05-25 22:13:09 -04:00
Kevin O'Connor
6a3c357a50
stm32: Add alternate serial ports on stm32f4
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-05-24 21:17:51 -04:00
Kevin O'Connor
c1e8ee58e7
stm32: Include pin names in STM32_SERIAL_USART?_ALT kconfig symbols
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-05-24 21:06:04 -04:00
Kevin O'Connor
338bc82d0b
stm32: Allow 32KiB bootloader on stm32f446
...
Useful on the Octopus board. Reported by @bigtreetech.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-05-20 19:12:09 -04:00
Kevin O'Connor
bde6215c3f
stm32: Enable ADC3 pins on stm32f446
...
Reported by @bigtreetech.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-05-06 12:43:13 -04:00
Wilhelm Schuster
1fb091c4fa
stm32: Allow selecting bootloader size for STM32F446
...
Signed-off-by: Wilhelm Schuster <ws@rot13.io>
2021-05-03 14:36:18 -04:00
pkElectronics
dd7085cbca
stm32: Added mcu temperature support additional mcu ( #4211 )
...
Enabled MCU_Temperature sensor for STM32F405 based boards
Signed-off-by: Pascal Wistinghausen <pascal.wistinghausen@ib-wistinghausen.de>
2021-04-25 10:35:15 -04:00
Oliver
41999eb94d
stm32: CAN Kconfig typo
...
Fixed simple typo in the Kconfig and can.c. stm32f4 CAN Pins
Signed-off-by: Oliver Walter <oli1111@web.de>
2021-04-07 13:06:13 -04:00
Arksine
689c2f9baf
stm32f1: reset peripherals in enable_pcclock()
...
Some bootloaders do not disable peripherals in use before jumping to the application. Reset peripherals to assure correct operation.
SIgned-off-by: Eric Callahan <arksine.code@gmail.com>
2021-04-07 12:57:21 -04:00
Michael Kurz
59c4c49893
stm32: Add hardware PWM support for STM32F1
...
This adds hardware PWM support for STM32F1 processors.
This should also work for STM32 F0/F2/F4 processors, but I
don't have one of those to test it.
Signed-off-by: Michael Kurz <michi.kurz@gmail.com>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-26 12:04:51 -04:00
Kevin O'Connor
4566392faf
stm32: Minor optimization to can.c IRQ data reading
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-18 16:55:04 -04:00
Kevin O'Connor
fee84c2afb
canbus: Support reading CAN packets directly from IRQ handler
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-18 15:58:09 -04:00
Kevin O'Connor
1eddc0fd90
stm32: Simplify USB/Serial/CANbus Kconfig selection
...
Combine the various communication options into a single "make
menuconfig" menu item.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-18 13:33:33 -04:00
Kevin O'Connor
6cb419a90a
canbus: Rework CAN command protocol
...
Rework the micro-controller command protocol so that it supports
direct communication with the serialqueue.c code.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-13 11:29:41 -05:00
Michael Kurz
ab979a52cf
stm32: Add support for STM32F1 I2C1 alternate pin mapping ( #4012 )
...
This adds support for the alternate pin mapping of
I2C1 on PB8/9 in STM32F1 devices
Signed-off-by: Michael Kurz <michi.kurz@gmail.com>
2021-03-02 23:02:20 -05:00
Kevin O'Connor
c4edc7d946
stm32: Add support for 48KiB bootloaders
...
Reported by @mks-viva.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-20 09:37:43 -05:00
Kevin O'Connor
267a2f3a38
stm32: Optimize stm32f401 peripheral clock
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-19 12:19:32 -05:00
Arkadiusz Raj
90ffa0685f
stm32: stm32f401 pll_freq updates
...
Signed-off-by: Arkadiusz Raj <arek.raj@gmail.com>
2021-02-19 12:15:44 -05:00
Arkadiusz Raj
28e41806f5
stm32: 25MHz clock fixes
...
Signed-off-by: Arkadiusz Raj <arek.raj@gmail.com>
2021-02-19 12:15:31 -05:00
Arkadiusz Raj
a6e28f7d6a
stm32: Fix missing STM32F429 clock initialization
...
Signed-off-by: Arkadiusz Raj <arek.raj@gmail.com>
2021-02-19 12:14:55 -05:00
Arkadiusz Raj
7f63efdcea
stm32: F429 shall use 168Mhz to allow easy USB clock configuration
...
Signed-off-by: Arkadiusz Raj <arek.raj@gmail.com>
2021-02-19 12:14:19 -05:00
Arek
e6d1910ef9
stm32: Add STM32F429 variant ( #3926 )
...
* Add F429 variant; add CAN on PD0,PD1; add 25Mhx clock; move CAN1_RX from PI8 to correct position (PI9)
* Add test for STM32F429
Signed-off-by: Arkadiusz Raj <arek.raj@gmail.com>
2021-02-18 20:12:32 -05:00
Kevin O'Connor
fc783f9b83
stm32: Add support for spi bus on stm32f407 pins PI2,PI3,PI1
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-12 17:32:54 -05:00
Kevin O'Connor
6698b249ce
stm32: Minor indention change to spi.c
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-12 17:32:49 -05:00
Kevin O'Connor
8666a724db
canbus: Call can_notify_rx() at startup so low-level code does not need to
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-09 18:51:03 -05:00
Kevin O'Connor
5c4cf54557
canbus: Rename canbus_set_dataport() to canbus_set_filter() and simplify
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-09 18:27:29 -05:00
Elias Bakken
8b443acae8
stm32: Adding support for STM32F031x6 ( #3871 )
...
Add support for alt usart 1
Do not select all functions on 16 K mcu
Signed-off-by: Elias Bakken <elias@iagent.no>
2021-02-03 12:23:17 -05:00
Kevin O'Connor
d9f6abdb56
canbus: Move high-level CAN code to new src/generic/canbus.c
...
Separate out the high-level command processing logic from the
low-level transmission code. Place the high-level code in
src/generic/canbus.c .
This also removes the CAN dependency on serial_irq.c .
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-02 15:24:11 -05:00
Kevin O'Connor
bee544eaca
stm32: Simplify can.c irq handler
...
Don't perform any heavy tasks in the CAN interrupt handler - just
notify a background task to handle anything pending.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-02 15:17:14 -05:00
Kevin O'Connor
95adff7431
stm32: Use CAN_TSR_CODE to select next tx fifo in can.c
...
The spec states that the TX fifo is transmitted in chronological order
if the TXFP bit is set, but it's unclear if the software needs to fill
the tx fifo in a particular order to obtain that result. Use the TSR
CODE bit field to fill the TX fifo in the order that the hardware
reports as next.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-02 15:17:14 -05:00
Kevin O'Connor
95eb00740b
stm32: Avoid read+write modify instructions in can.c
...
Prefer explicitly setting the hardware registers and avoid using C
read and modify instructions where possible. This avoids race
conditions where an interrupt or hardware change could cause subtle
corruption of the register state.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-02 15:17:14 -05:00
Kevin O'Connor
c0371c94c8
stm32: Introduce new can_set_filter() helper function in can.c
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-02 15:17:14 -05:00
Kevin O'Connor
901ccfcb9d
stm32: Update can.c to use more consistent indentation
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-02 15:17:14 -05:00
smark-
ef4d9c3abd
stm32: Support for STM32F401 ( #3853 )
...
This module adds support for the STM32F401 microcontrollers
Signed-off-by: Marco D'Alessio <marco@wrecklab.com>
2021-01-31 19:41:53 -05:00
Matt Shepcar
ccaf58a02c
stm32f1: Fix for using 16MHz external crystal ( #3814 )
...
Signed-off-by: Matt Shepcar <matt@shepcar.co.uk>
2021-01-24 10:24:11 -05:00
Kevin O'Connor
28bca7da77
stm32: Support setting the stm32f0 internal clock trim value
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-01-18 12:49:41 -05:00
Kevin O'Connor
cc39beba0e
stm32: Add support for spi4 bus on stm32f446 chip
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-01-04 01:54:41 -05:00
Kevin O'Connor
39a04eac5f
stm32: Only use the HSI48 clock when doing "usb clock recovery"
...
The HSI48 clock on the stm32f042 isn't as accurate as the main HSI
clock. So, only use the HSI48 clock when using USB to synchronize
that clock.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-12-08 09:00:47 -05:00
Kevin O'Connor
9142200b3a
stm32: Support reading chip based temperature sensor on stm32f0
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-10-29 11:55:06 -04:00
Kevin O'Connor
a8069e9ba8
stm32: Reduce adc_pins storage size in stm32f0_adc.c
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-10-29 11:55:06 -04:00
Kevin O'Connor
d985b53ccb
stm32: Support reading chip based temperature sensor on stm32f1/2/4
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-10-29 11:55:06 -04:00
Kevin O'Connor
2885a4c728
stm32: Don't default to HID bootloader in Kconfig
...
Restore the default of an 8KiB bootloader for stm32f103 and a 32KiB
bootloader for stm32f207/stm32f407.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-10-13 14:25:17 -04:00
bondus
387fceb453
stm32: Fixed CAN bus for STM32F4, there were syntax errors that prevented compilation
...
Signed-off-by: Pontus Borg <liquidpontus@yahoo.se>
2020-10-11 11:24:05 -04:00
Cabia Rangris
15853da28c
config: Added TronXY X5SA support ( #3265 )
...
Added printer-tronxy-x5sa-v6 config.
Added "chitu" bootloader option to stm32 Kconfig.
Added chitu_crypt.
Signed-off-by: Vladimir Serov <me@cab404.ru>
2020-08-30 12:59:28 -04:00