aboutsummaryrefslogtreecommitdiffstats
path: root/filter/test.cpp
blob: 24fdb7207409b83e8172e9d7c1555c9bfd530235 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <cstdint>

using adcsample_t = uint16_t;
__attribute__((section(".process_data")))
void process_data(adcsample_t *samples, unsigned int size);
 
////////////////////////////////////////////////////////////////////////////////

void process_data(adcsample_t *samples, unsigned int size)
{
    for (unsigned int i = 0; i < size; i++)
        samples[i] /= 2;
}