monoTable

allocate 32bit table in SDRAM memory
Author: Johannes Taelman
License: BSD
Github: sss/table/monoTable.axo

Inlets

None

Outlets

None

Attributes

combo size

text init

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 = 32;
static const uint32_t GAIN = 0;
int32_t *array;
Init
static int32_t _array[LENGTH] __attribute__((section(".sdram")));
array = &_array[0];
{
  int i;
  for (i = 0; i < LENGTH; i++)
    array[i] = 0;
}
attr_init

Privacy

© 2024 Zrna Research