Mercurial > hg > beaglert
comparison include/Utilities.h @ 56:3c3a1357657d newapi
Further API update to name three primary functions setup(), render() and cleanup(). Changed include paths so now can #include <BeagleRT.h>. Removed stale pru_rtaudio.bin file as this is now done as pru_rtaudio_bin.h. Updated examples to new API and fixed minor compiler warnings along the way. Network example needs further attention to compile.
author | andrewm |
---|---|
date | Wed, 15 Jul 2015 12:10:51 +0100 |
parents | 579c86316008 |
children | 74a44c3d91f0 |
comparison
equal
deleted
inserted
replaced
55:41d24dba6b74 | 56:3c3a1357657d |
---|---|
14 #define clearBit(word,bit) ((word) &~ (1 << (bit))) | 14 #define clearBit(word,bit) ((word) &~ (1 << (bit))) |
15 #define getBit(word,bit) (((word) >> (bit)) & 1) | 15 #define getBit(word,bit) (((word) >> (bit)) & 1) |
16 #define changeBit(word,bit,value) ((clearBit((word),(bit))) | ((value) << (bit))) | 16 #define changeBit(word,bit,value) ((clearBit((word),(bit))) | ((value) << (bit))) |
17 | 17 |
18 #if 1 | 18 #if 1 |
19 // Note: pinMode(), analogWrite() and digitalWrite() should be able to be called from initialise_render() | 19 // Note: pinMode(), analogWrite() and digitalWrite() should be able to be called from setup() |
20 // Likewise, thread launch should be able to be called from initialise_render() | 20 // Likewise, thread launch should be able to be called from setup() |
21 // Also, make volume change functions callable from render() thread -- as an aux task? | 21 // Also, make volume change functions callable from render() thread -- as an aux task? |
22 | 22 |
23 float analogReadFrame(BeagleRTContext *context, int frame, int channel); | 23 float analogReadFrame(BeagleRTContext *context, int frame, int channel); |
24 void analogWriteFrame(BeagleRTContext *context, int frame, int channel, float value); | 24 void analogWriteFrame(BeagleRTContext *context, int frame, int channel, float value); |
25 void analogWriteFrameOnce(BeagleRTContext *context, int frame, int channel, float value); | 25 void analogWriteFrameOnce(BeagleRTContext *context, int frame, int channel, float value); |