Quellcode durchsuchen
Merge pull request #355 from FrankBoesing/save-ram-with-progmem
Startup: save RAM with .progmem
teensy4-core
Paul Stoffregen
vor 5 Jahren
Ursprung
Commit
f3d9366a45
Es ist kein Account mit der E-Mail-Adresse des Committers verbunden
4 geänderte Dateien mit
4 neuen und
1 gelöschten Zeilen
-
teensy4/AudioStream.cpp
-
teensy4/analog.c
-
teensy4/tempmon.c
-
teensy4/usb.c
|
|
@@ -54,6 +54,7 @@ void software_isr(void); |
|
|
|
|
|
|
|
// Set up the pool of audio data blocks |
|
|
|
// placing them all onto the free list |
|
|
|
__attribute__((section(".progmem"))) |
|
|
|
void AudioStream::initialize_memory(audio_block_t *data, unsigned int num) |
|
|
|
{ |
|
|
|
unsigned int i; |
|
|
@@ -115,6 +115,7 @@ void analogReadAveraging(unsigned int num) |
|
|
|
|
|
|
|
#define MAX_ADC_CLOCK 20000000 |
|
|
|
|
|
|
|
__attribute__((section(".progmem"))) |
|
|
|
void analog_init(void) |
|
|
|
{ |
|
|
|
uint32_t mode, avg=0; |
|
|
@@ -11,6 +11,7 @@ static uint32_t panicAlarmTemp = 90U; |
|
|
|
static uint32_t s_hotTemp, s_hotCount, s_roomC_hotC; |
|
|
|
static float s_hot_ROOM; |
|
|
|
|
|
|
|
__attribute__((section(".progmem"))) |
|
|
|
void tempmon_init(void) |
|
|
|
{ |
|
|
|
// Notes: |
|
|
@@ -83,7 +83,7 @@ static void endpoint0_complete(void); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__attribute__((section(".progmem"))) |
|
|
|
void usb_init(void) |
|
|
|
{ |
|
|
|
// TODO: only enable when VBUS detected |