|
Plant Monitor SAM3X8E
|
HAL interface for timer counter of SAM3X8E. More...
#include <stdint.h>#include "sam3xa.h"Go to the source code of this file.
Functions | |
| void | tc_init (void) |
| Initializes TC0->Channel0. | |
| void | tc_delay_us (uint32_t us) |
| Creates a hardware delay in microseconds. | |
| void | tc_delay_ms (uint32_t ms) |
| Creates a hardware delay in milliseconds. | |
| void | wdt_disable (void) |
| Disables SAM3X8E watchdog timer. | |
HAL interface for timer counter of SAM3X8E.
Contains functions associated with hardware delay using internal timer counter peripheral.
Definition in file tc.h.
| void tc_delay_ms | ( | uint32_t | ms | ) |
Creates a hardware delay in milliseconds.
| ms | Delay duration in milliseconds. |
Definition at line 32 of file tc.c.
| void tc_delay_us | ( | uint32_t | us | ) |
Creates a hardware delay in microseconds.
| us | Delay duration in microseconds. |
Definition at line 23 of file tc.c.
| void tc_init | ( | void | ) |
Initializes TC0->Channel0.
Enables peripheral clock and configures TC0->Channel0 to use internal MCK/2 clock
Definition at line 12 of file tc.c.