自己顶一下。官方STM32Cube的手册里面有这样一段话:
Is there any link with Standard Peripheral Libraries?
The STM32Cube HAL Layer is the replacement of the Standard Peripheral Library.
The HAL APIs offer a higher abstraction level compared to the standard peripheral APIs.
HAL focuses on peripheral common functionalities rather than hardware. The higher
abstraction level allows to define a set of user friendly APIs that can be easily ported from
one product to another.
Customers currently using Standard Peripheral Libraries will be helped through Migration
guides. Existing Standard Peripheral Libraries will be supported, but not recommended for
new designs.