File ns_timer_ap3.c
FileList > apollo3 > ns_timer_ap3.c
Go to the source code of this file
#include "ns_timer.h"
#include "am_bsp.h"
#include "am_mcu_apollo.h"
#include "am_util.h"
#include "ns_core.h"
Public Attributes
Type | Name |
---|---|
ns_timer_config_t * | ns_timer_config |
Public Static Attributes
Type | Name |
---|---|
am_hal_ctimer_config_t | g_sTimer = = { |
1,
(AM\_HAL\_CTIMER\_FN\_REPEAT \| AM\_HAL\_CTIMER\_INT\_ENABLE \| AM\_HAL\_CTIMER\_HFRC\_12MHZ),
0,
}
|
Public Functions
Type | Name |
---|---|
void | am_ctimer_isr (void) |
uint32_t | ns_timer_clear (ns_timer_config_t * cfg) Clear timer. |
uint32_t | ns_timer_platform_init (ns_timer_config_t * cfg) |
uint32_t | ns_us_ticker_read (ns_timer_config_t * cfg) Read current value of timer. |
void | timer0_handler (void) |
void | timer1_handler (void) |
void | timer2_handler (void) |
void | timer3_handler (void) |
Macros
Type | Name |
---|---|
define | AP3_CTIMER_FREQ_IN_MHZ 12 |
Public Attributes Documentation
variable ns_timer_config
ns_timer_config_t* ns_timer_config[NS_TIMER_TEMPCO+1];
Public Static Attributes Documentation
variable g_sTimer
am_hal_ctimer_config_t g_sTimer;
Public Functions Documentation
function am_ctimer_isr
void am_ctimer_isr (
void
)
function ns_timer_clear
Clear timer.
uint32_t ns_timer_clear (
ns_timer_config_t * cfg
)
Parameters:
cfg
Returns:
uint32_t status
function ns_timer_platform_init
uint32_t ns_timer_platform_init (
ns_timer_config_t * cfg
)
function ns_us_ticker_read
Read current value of timer.
uint32_t ns_us_ticker_read (
ns_timer_config_t * cfg
)
Parameters:
cfg
Returns:
uint32_t timer if success, 0xDEADBEEF if bad handle
function timer0_handler
void timer0_handler (
void
)
function timer1_handler
void timer1_handler (
void
)
function timer2_handler
void timer2_handler (
void
)
function timer3_handler
void timer3_handler (
void
)
Macro Definition Documentation
define AP3_CTIMER_FREQ_IN_MHZ
#define AP3_CTIMER_FREQ_IN_MHZ 12
The documentation for this class was generated from the following file neuralSPOT/neuralspot/ns-utils/src/apollo3/ns_timer_ap3.c