-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Closed
Labels
EnhancementChanges/Updates/Additions to existing featuresChanges/Updates/Additions to existing featuresarea: I2Carea: SPISPI busSPI busarea: UARTUniversal Asynchronous Receiver-TransmitterUniversal Asynchronous Receiver-Transmitterplatform: NXPNXPNXPpriority: mediumMedium impact/importance bugMedium impact/importance bug
Description
Reported by Maureen Helm:
The MCUX UART, I2C, and SPI shim drivers make calls to CLOCK_GetFreq in order to calculate the baud rate. This function dynamically figures out the system/bus clock frequency by querying the MCG registers, and is therefore large in terms of code size - roughly 1 KB.
A possible fix is to implement a proper clock_control driver that abstracts whether the clock frequency is looked up from a static variable or calculated on the fly.
(Imported from Jira ZEP-1981)
Metadata
Metadata
Assignees
Labels
EnhancementChanges/Updates/Additions to existing featuresChanges/Updates/Additions to existing featuresarea: I2Carea: SPISPI busSPI busarea: UARTUniversal Asynchronous Receiver-TransmitterUniversal Asynchronous Receiver-Transmitterplatform: NXPNXPNXPpriority: mediumMedium impact/importance bugMedium impact/importance bug