Added module `Radio` to the repo.

This commit is contained in:
jakeg00dwin 2024-09-26 16:22:14 -07:00
parent 5564f1178e
commit d534b1bd56
4 changed files with 38 additions and 0 deletions

View File

@ -1,3 +1,4 @@
add_executable(main
main.c
)
add_subdirectory(Radio)

7
src/Radio/CMakeLists.txt Normal file
View File

@ -0,0 +1,7 @@
add_library(Radio STATIC
Radio.c
)
target_include_directories(Radio PUBLIC
${CMAKE_CURRENT_LIST_DIR}
)

16
src/Radio/Radio.c Normal file
View File

@ -0,0 +1,16 @@
/*
* Author: username
* Date: 2024
* filename: Radio.c
* description: module_purpose
*/
#include "Radio.h"
// dumb test function
int add_two(int a)
{
int b = a;
b += 2;
return b;
}

14
src/Radio/Radio.h Normal file
View File

@ -0,0 +1,14 @@
/*
* Author: username
* Date: 2024
* filename: RADIO.h
* description: module_purpose
*/
#ifndef RADIO
#define RADIO
int add_two(int a);
#endif //RADIO