mirror of https://github.com/ARMmbed/mbed-os.git
commit
7c73a659da
|
@ -470,7 +470,7 @@
|
||||||
"inherits": ["Target"],
|
"inherits": ["Target"],
|
||||||
"progen": {"target": "frdm-kl25z"},
|
"progen": {"target": "frdm-kl25z"},
|
||||||
"detect_code": ["0200"],
|
"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
|
"release": true
|
||||||
},
|
},
|
||||||
"KL26Z": {
|
"KL26Z": {
|
||||||
|
|
|
@ -13,6 +13,9 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if DEVICE_RTC
|
||||||
|
|
||||||
#include "rtc_api.h"
|
#include "rtc_api.h"
|
||||||
#include "PeripheralPins.h"
|
#include "PeripheralPins.h"
|
||||||
#include "clk_freqs.h"
|
#include "clk_freqs.h"
|
||||||
|
@ -112,3 +115,5 @@ void rtc_write(time_t t) {
|
||||||
// re-enable counter
|
// re-enable counter
|
||||||
RTC->SR |= RTC_SR_TCE_MASK;
|
RTC->SR |= RTC_SR_TCE_MASK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue