alloc 16b sdram

allocate 16bit table in SDRAM memory, -128.00 .. 127.99
Author: Johannes Taelman
License: BSD
Github: table/alloc 16b sdram.axo

Inlets

None

Outlets

None

Attributes

text init

combo size

Declaration
static const uint32_t LENGTHPOW = (attr_size);
static const uint32_t LENGTH = (1 << attr_size);
static const uint32_t LENGTHMASK = ((1 << attr_size) - 1);
static const uint32_t BITS = 16;
static const uint32_t GAIN = 12;
int16_t *array;
Init
static int16_t _array[attr_poly][LENGTH] __attribute__((section(".sdram")));
array = &_array[parent->polyIndex][0];
{
  int i;
  for (i = 0; i < LENGTH; i++)
    array[i] = 0;
}
attr_init

Privacy

© 2024 Zrna Research