SDK4.0
This document shows Ameba SDK 4.0 APIs
wdt_api.h File Reference

This file provides following mbed WDT API. More...

#include "device.h"

Ameba Common

typedef void(* wdt_irq_handler) (uint32_t id)
 
void watchdog_init (uint32_t timeout_ms)
 Initializes the watch dog, include time setting, mode register. More...
 
void watchdog_start (void)
 Start the watchdog counting. More...
 
void watchdog_stop (void)
 Stop the watchdog counting. More...
 
void watchdog_refresh (void)
 Refresh the watchdog counting to prevent WDT timeout. More...
 
void watchdog_irq_init (wdt_irq_handler handler, uint32_t id)
 Switch the watchdog timer to interrupt mode and register a watchdog timer timeout interrupt handler. The interrupt handler will be called when the watch-dog timer is timeout. More...
 

Detailed Description

This file provides following mbed WDT API.

mbed Microcontroller Library

Author
Version
V1.0.0
Attention

Copyright (c) 2006-2013 ARM Limited

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.