robertinant / EnergiaNG

open-source electronics prototyping platform
http://www.energia.nu/
Other
12 stars 3 forks source link

Added horrible patch for Sharp Memory Display on CC13x0 #52

Closed rei-vilo closed 4 years ago

rei-vilo commented 4 years ago

Changed myClock for non trivial myOneMsTaskTimerClock

Added horrible patch for CC13x0

Tested against CC1352 and CC1350 LaunchPad boards

rei-vilo commented 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.

rei-vilo commented 4 years ago

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.

rei-vilo commented 4 years ago

@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);