File ns_timer.c
FileList > neuralSPOT > neuralspot > ns-utils > src > ns_timer.c
Go to the source code of this file
Simple timer facility. More...
#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 |
---|---|
const ns_core_api_t | ns_timer_V0_0_1 |
const ns_core_api_t | ns_timer_V1_0_0 |
ns_timer_config_t * | ns_timer_config |
const ns_core_api_t | ns_timer_current_version |
const ns_core_api_t | ns_timer_oldest_supported_version |
Public Functions
Type | Name |
---|---|
bool | ns_core_initialized (void) |
uint32_t | ns_timer_init (ns_timer_config_t * cfg) Initialize one of 3 timers supported by NeuralSPOT. |
uint32_t | ns_timer_platform_init (ns_timer_config_t * cfg) |
Detailed Description
Author:
Carlos Morales
Version:
0.1
Date:
2022-10-11
Copyright:
Copyright (c) 2022
Public Attributes Documentation
variable ns_timer_V0_0_1
const ns_core_api_t ns_timer_V0_0_1;
variable ns_timer_V1_0_0
const ns_core_api_t ns_timer_V1_0_0;
variable ns_timer_config
ns_timer_config_t* ns_timer_config[NS_TIMER_TEMPCO+1];
variable ns_timer_current_version
const ns_core_api_t ns_timer_current_version;
variable ns_timer_oldest_supported_version
const ns_core_api_t ns_timer_oldest_supported_version;
Public Functions Documentation
function ns_core_initialized
bool ns_core_initialized (
void
)
function ns_timer_init
Initialize one of 3 timers supported by NeuralSPOT.
uint32_t ns_timer_init (
ns_timer_config_t * cfg
)
NS_TIMER_COUNTER Intended use is reading timerticks NS_TIMER_INTERRUPT Calls a callback periodically NS_TIMER_USB Used by ns_usb to periodically service USB NS_TIMER_TEMPCO Used by ns_tempco to periodically collect temps
Parameters:
cfg
Returns:
uint32_t status
function ns_timer_platform_init
uint32_t ns_timer_platform_init (
ns_timer_config_t * cfg
)
The documentation for this class was generated from the following file neuralSPOT/neuralspot/ns-utils/src/ns_timer.c