Add Peripheral Pin Select (PPS) configuration for PIC18F26K83#41
Open
taisirhassan wants to merge 9 commits intoi2c-compile-fixfrom
Open
Add Peripheral Pin Select (PPS) configuration for PIC18F26K83#41taisirhassan wants to merge 9 commits intoi2c-compile-fixfrom
taisirhassan wants to merge 9 commits intoi2c-compile-fixfrom
Conversation
This commit introduces the pin_config.h and pin_config.c files, implementing the initialization and configuration of PPS mappings for I2C, SPI, and UART peripherals. The pin_init function is added to set up all necessary pin configurations after MCU initialization. Additionally, helper functions for unlocking and locking PPS registers are included to ensure safe modifications.
…iguration This commit introduces a new documentation file, pin_config.rst, detailing the setup and usage of the PPS module for the PIC18F26K83. It includes an overview, function descriptions, implementation details, and usage examples for initializing and configuring peripheral mappings for I2C, SPI, and UART. The index.rst file is also updated to include this new documentation.
This commit simplifies the PWM initialization and duty cycle update functions by removing the pin configuration parameter and introducing dedicated functions to retrieve register addresses for CCP modules.
…ion functions This commit expands the pin_config.h file by introducing structures for I2C, SPI, UART, PWM, and external interrupt pin configurations. It also adds functions for dynamically configuring these pins, enhancing the Peripheral Pin Select (PPS) capabilities.
This commit introduces several new functions for configuring pins dynamically, including support for I2C, SPI, UART, and PWM. It also adds validation for pin configurations and improves the handling of Peripheral Pin Select (PPS) mappings, ensuring safe modifications by unlocking and locking PPS registers as needed.
…figuration structures
…ge examples and enhanced structure descriptions
f8334ae to
b997794
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduce PPS initialization and configuration for I2C, SPI, and UART peripherals, along with documentation detailing setup and usage. Include helper functions for managing PPS register access.