Skip to content

Commit 1fdfc42

Browse files
committed
refactor: move Arduino demo from func_loader to Project/Application
Rename fl_port_arduino.cpp -> fl_demo.cpp and move to Project/Application/ where other demo code lives. Rename func_loader_run() -> fl_demo_run() to match the new role. Update main.cpp extern declaration accordingly. The file is a demo application, not a porting layer.
1 parent 9678702 commit 1fdfc42

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
*/
2323

2424
/**
25-
* @file func_loader_port_arduino.cpp
26-
* @brief Arduino/STM32 porting layer
25+
* @file fl_demo.cpp
26+
* @brief Arduino/STM32 function loader demo application
2727
*
2828
* Supports two allocation modes (selected via CMake FL_ALLOC_MODE):
2929
* - FL_ALLOC_STATIC: Static buffer allocation (default)
@@ -140,7 +140,7 @@ static void blink_led() {
140140
last_time = millis();
141141
}
142142

143-
void func_loader_run(void) {
143+
void fl_demo_run(void) {
144144
pinMode(LED_PIN, OUTPUT);
145145

146146
/* Initialize allocator (mode-specific) */

Project/Application/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ int main(void)
7777

7878
#elif APP_SELECT == APP_FUNC_LOADER
7979
/* Function loader mode */
80-
extern void func_loader_run(void);
81-
func_loader_run();
80+
extern void fl_demo_run(void);
81+
fl_demo_run();
8282

8383
#else
8484
#error "Invalid APP_SELECT value"

0 commit comments

Comments
 (0)