Closed rei-vilo closed 4 years ago
@StefanSch This PR is on par with https://github.com/energia/Energia/pull/1061
@robertinant It looks like I don't have access to this repository, so I needed to create a pull request from outside.
I don't know. The SPI calls freeze on the SendToggleVCOMCommand
routine against the CC1350. However, shiftOut()
works.
As the CC1352 supersedes the CC1350, digging further may not be a priority. Hence the quick and dirty patch.
@StefanSch I've pulled the automatic low power mode, with two functions:
///
/// @brief PowerSave mode
/// @details Turn SPI module on / off
/// @param mode default=HIGH=SPI on, LOW=SPI off
/// @note AutoLowPowerMode is desactivated
///
void setManualPowerMode(bool mode = HIGH);
///
/// @brief Set automatic low power mode
/// @param mode default=true
/// @note If another device on the SPI bus,
/// use manual setManualPowerMode() instead
/// @note Desactivated by setManualPowerMode()
///
void setAutoLowPowerMode(bool mode = true);
Changed
myClock
for non trivialmyOneMsTaskTimerClock
Added horrible patch for CC13x0
Tested against CC1352 and CC1350 LaunchPad boards