

Getting started using DriverLib for MSP432 Series is very simple regardless of the chosen development environment.Īn empty "skeleton" project is provided in the examples directory of the MSPWare release. While each module will still have individual status (IFG), enable/disable, and clear bits, interrupt service routines now have to be associated with the ARM NVIC before usage. Interrupts, for example, are a bit difference on MSP432 compared to MSP430 due to integration with ARM's interrupt controller (the NVIC). Note that while many Driver Library APIs are shared between MSP430 and MSP432, there are a few underlying differences between the two architectures. Both sets of code set MCLK to be sourced from VLO with a divider of four:

For example, examine the following pair of code snippets. Writing code in DriverLib will make user code more legible and easier to share among a group. By using the high level software APIs provided by DriverLib, users can create powerful and intuitive code which is highly portable between not only devices within the MSP432 platform, but between different families in the MSP430/MSP432 platforms. Nearly every aspect of a MSP432 device can be configured and driven using the DriverLib APIs. The DriverLib is meant to provide a "software" layer to the programmer in order to facilitate higher level of programming compared to direct register accesses. Texas Instruments Code Composer Studio 6.1 Below is a list that contains the supported toolchain and corresponding hardware debugger used. Subsequently, for each toolchain a specific debugger was used for testing validation. In addition to being able to control the MSP432 peripherals, DriverLib also gives the user the ability to use common ARM peripherals such as the Interrupt (NVIC) and Memory Protection Unit (MPU) as well as MSP430 peripherals such as the eUSCI Serial peripherals and Watchdog Timer (WDT).ĭriverLib for MSP432 Series has been tested and compiled under a variety of different toolchains. The Texas Instruments MSP432 Driver Library (DriverLib) is a set of fully functional APIs used to configure, control, and manipulate the hardware peripherals of the MSP432 platform.
