#analog-devices #micro-controller #svd2rust #arm #cortex-m

no-std max32660

Register mappings for the Analog Devices MAX32660 Cortex-M4 microcontroller

3 unstable releases

0.2.1 Apr 24, 2024
0.2.0 Feb 11, 2024
0.1.0 Sep 23, 2023

#208 in Embedded development

Download history 3/week @ 2024-07-29 11/week @ 2024-09-23

185 downloads per month

MIT license

1.5MB
51K SLoC

MAX32660

Documentation Crates.io

Register mappings for the Analog Devices MAX32660 Cortex-M4 microcontroller generated with the svd2rust tool.

User Guide

The complete user guide for this microcontroller may be found at UG6659 and is a useful supplement to this crate. Note that in this crate "SPI17Y" has been renamed to "SPI0" and "SPIMSS" has been renamed to "SPI1" in the interest of sanity as not even the user guide is using consistent naming for these peripherals. Some minor deviations from the user guide were also necessary to address various obvious typos and in some cases to significantly improve the ergonomics of the generated peripheral access crate.

Contribute

Install the svd2rust and form tools and run the generate.sh script to generate the crate from the SVD file. A line is also prepended to the lib.rs to prevent Clippy from checking the crate because the generated code does not lint well. Do not make manual edits to the src folder or the build.rs and device.x files which are all auto-generated.

Changelog

0.2.1

  • Added a missing writeConstraint attribute on FLC.CLKDIV
  • Added enumeratedValues attributes on GCR.MEMCKCN.FWS
  • Added enumeratedValues attributes on SPI0.CTRL2.NUM_BITS
  • Fixed enumeratedValues attributes on SPI1.CTRL.NUMBITS

0.2.0

  • Added some helpful enumerated values to the DMA burst size field
  • Added some missing oneToClear attributes on some SPI0.INT_FL fields
  • Fixed some RTC.CTRL fields with incorrect access attributes
  • Added a number of convenient writeConstraint attributes
  • Regenerated crate contents using svd2rust version 0.30.1

0.1.0

  • Added SVD from Maxim Micros SDK with various modifications and improvements

Dependencies

~720KB