Part Number:CC3220
I have the CC3220MODASF12 Launchpad-XL and basically I have two questions about abstraction of TI drivers:
1) How does interrupt priority work on a CC3220 device? Is it possible to change the priority?
I know that the CC3220 uses an ARM Cortex M4 core, so it has a Nested Vector Interrupt Controller (NVIC).
In the old driverlib there were functions available such as " IntPrioritySet(unsigned long ulInterrupt, unsigned char ucPriority); ", however I can't find a equivalent function in TI-Drivers lib.
Only thing I could find was in documentation of GPIO:
"A device specific GPIOxxx_Config structure that tells the GPIO driver where the two aforementioned arrays are and the number of elements in each. The interrupt priority of all pins configured to generate interrupts is also specified here. Values for the interrupt priority are device-specific. You should be well-acquainted with the interrupt controller used in your device before setting this parameter to a non-default value. The sentinel value of (~0) (the default value) is used to indicate that the lowest possible priority should be used."
The abstractions in CMSIS library for NVIC is a lot closer to the real hardware , and would like to use this library if available for CC3220.
2) What is the real frequency of SPI CLK when setting spiParams.bitRate?
I want to control the SPI speed of the device, and switch between 3 MHz and 20 MHz. You can set spiParams.bitRate (=frequency in Hz) to any arbitrary value you like, however I know that in reality clock dividers will be used to approximate this frequency. The SPI slave has a maximum SPI frequency of 3 MHz in some device states, so I need to be careful about the used frequency.
From the available documentation, I can't find proper answers to these questions. Can you tell me if there is any other place where I can find more explanation about the abstraction, or, if not available, explain to me how it works?