Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
calculation_arc.c File Reference
#include <zephyr/ztest.h>
#include "fxarc.h"
#include "dsp_context.h"
#include "test_common.h"

Macros

#define DATA_ATTR   __xy __attribute__((section(".Xdata")))
 

Functions

static K_SEM_DEFINE (test_exit_sem, 0, 1)
 
static void calculate_low (void)
 Entry point for the low priority compute task.
 
static void calculate_high (void)
 Entry point for the high priority compute task.
 
 K_THREAD_DEFINE (cal_low,(1024+CONFIG_TEST_EXTRA_STACK_SIZE), calculate_low, NULL, NULL, NULL, 10,(K_DSP_REGS|K_AGU_REGS), K_TICKS_FOREVER)
 
 K_THREAD_DEFINE (cal_high,(1024+CONFIG_TEST_EXTRA_STACK_SIZE), calculate_high, NULL, NULL, NULL, 5,(K_DSP_REGS|K_AGU_REGS), K_TICKS_FOREVER)
 
void test_calculation (void)
 

Variables

static __xy const cq15_t cq15_a [3] = {{0x20, 10}, {0x10, 20}, {4, 30}}
 
static __xy const cq15_t cq15_b [3] = {{0x20, 11}, {0x10, 21}, {5, 31}}
 
static volatile short reference_result
 
static volatile unsigned int calc_low_count
 
static volatile unsigned int calc_high_count
 
static volatile bool test_exited
 

Macro Definition Documentation

◆ DATA_ATTR

#define DATA_ATTR   __xy __attribute__((section(".Xdata")))

Function Documentation

◆ calculate_high()

static void calculate_high ( void )
static

Entry point for the high priority compute task.

◆ calculate_low()

static void calculate_low ( void )
static

Entry point for the low priority compute task.

◆ K_SEM_DEFINE()

static K_SEM_DEFINE ( test_exit_sem ,
0 ,
1  )
static

◆ K_THREAD_DEFINE() [1/2]

K_THREAD_DEFINE ( cal_high ,
(1024+CONFIG_TEST_EXTRA_STACK_SIZE) ,
calculate_high ,
NULL ,
NULL ,
NULL ,
5 ,
(K_DSP_REGS|K_AGU_REGS) ,
K_TICKS_FOREVER  )

◆ K_THREAD_DEFINE() [2/2]

K_THREAD_DEFINE ( cal_low ,
(1024+CONFIG_TEST_EXTRA_STACK_SIZE) ,
calculate_low ,
NULL ,
NULL ,
NULL ,
10 ,
(K_DSP_REGS|K_AGU_REGS) ,
K_TICKS_FOREVER  )

◆ test_calculation()

void test_calculation ( void )

Variable Documentation

◆ calc_high_count

volatile unsigned int calc_high_count
static

◆ calc_low_count

volatile unsigned int calc_low_count
static

◆ cq15_a

__xy const cq15_t cq15_a[3] = {{0x20, 10}, {0x10, 20}, {4, 30}}
static

◆ cq15_b

__xy const cq15_t cq15_b[3] = {{0x20, 11}, {0x10, 21}, {5, 31}}
static

◆ reference_result

volatile short reference_result
static

◆ test_exited

volatile bool test_exited
static