Merge pull request #2064 from mbedmicro/kl25z-no-rtc

Remove support for the RTC
pull/2250/head
Sam Grove 2016-07-26 20:40:31 -05:00 committed by GitHub
commit 7c73a659da
2 changed files with 6 additions and 1 deletions

View File

@ -470,7 +470,7 @@
"inherits": ["Target"],
"progen": {"target": "frdm-kl25z"},
"detect_code": ["0200"],
"device_has": ["ANALOGIN", "ANALOGOUT", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SEMIHOST", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"],
"device_has": ["ANALOGIN", "ANALOGOUT", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "SEMIHOST", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"],
"release": true
},
"KL26Z": {

View File

@ -13,6 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#if DEVICE_RTC
#include "rtc_api.h"
#include "PeripheralPins.h"
#include "clk_freqs.h"
@ -112,3 +115,5 @@ void rtc_write(time_t t) {
// re-enable counter
RTC->SR |= RTC_SR_TCE_MASK;
}
#endif