aleph libavr32 #18
Merged
aleph libavr32 #18
Conversation
- remove avr32/boards/ - remove common/boards/user_board/ - change include in common/boards/board.h this tracks changes in the diet-asf script.
…outines, and adc/dac drivers
This was referenced Nov 16, 2016
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.
BREAKING: changes to allow
libavr32to be used in the aleph codebase.the breaking changes are pretty minor. as far as i can tell, they consist only of the changed pin definitions. so
spi_write(SPI, DAC_SPI)becomesspi_write(DAC_SPI, DAC_SPI_NPCS), which is more consistent with usage across the ASF.this is not just cosmetic; aleph uses UC3A and has multiple SPI ports, so it's necessary to explicitly define them.
for ansible, this doesn't break anything because all SPI access is through the ADC and DAC drivers in the library (as it should be.)
for teletype and trilogy, SPI pin and register defines are used directly in
main.c, so those must be updated or frozen.also, some minor changes to the ASF have been made, removing some unused board configuration headers and including
conf_board.hmore directly. this was necessary to get some of the drivers working. these changes should be reflected in yet another PR on thediet_asfrepo.