Skip to content

Commit 465d514

Browse files
Refactor project structure and update configuration for LX200 support
1 parent 91ab6c0 commit 465d514

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+380
-2822
lines changed

app/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,4 @@ project(OpenAstroFirmware)
66
zephyr_syscall_include_directories(include)
77
zephyr_include_directories(include)
88

9-
# Add the source files to the target
10-
file(GLOB_RECURSE APP_SOURCES "src/*.cpp" "src/*.c")
11-
target_sources(app PRIVATE ${APP_SOURCES})
9+
add_subdirectory(src)

app/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ module-str = firmware
33
source "subsys/logging/Kconfig.template.log_config"
44

55
rsource "src/mount/Kconfig"
6-
rsource "src/processor/lx200/Kconfig"
76

87
menu "Zephyr"
98
source "Kconfig.zephyr"

app/boards/native_sim.conf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
CONFIG_UART_CONSOLE=y
1+
CONFIG_SERIAL=y
2+
3+
# CONFIG_UART_CONSOLE=y
24

35
# Enable the native POSIX UART driver backend
46
CONFIG_UART_NATIVE_POSIX=y

app/boards/native_sim.overlay

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
};
66
};
77

8+
&uart0 {
9+
status = "okay";
10+
};
11+
812
&uart1 {
913
status = "okay";
10-
// current-speed = <115200>;
11-
// backend = "pty";
1214
};

app/boards/nucleo_f446re.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=180000000
22
CONFIG_CORTEX_M_SYSTICK=y
33

4+
CONFIG_UART_INTERRUPT_DRIVEN=y
45
CONFIG_UART_USE_RUNTIME_CONFIGURE=y
56

67
# CONFIG_USB_DEVICE_STACK=y

app/include/device/gpio/GPIO.hpp

Lines changed: 0 additions & 57 deletions
This file was deleted.

app/include/mount/IMount.hpp

Lines changed: 0 additions & 34 deletions
This file was deleted.

app/include/mount/Mount.hpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
#pragma once
22

3-
#include <zephyr/kernel.h>
3+
#include <inttypes.h>
44

5-
#include "IMount.hpp"
6-
7-
class Mount : public IMount
5+
class Mount
86
{
97
public:
108
Mount();
@@ -13,7 +11,7 @@ class Mount : public IMount
1311
/**
1412
* @brief Initialize the mount
1513
*/
16-
void initialize() override;
14+
void initialize();
1715

1816
/**
1917
* @brief Set the Target Dec
@@ -24,7 +22,7 @@ class Mount : public IMount
2422
*
2523
* @return true if successful, false otherwise
2624
*/
27-
bool setTargetDec(int d, unsigned int m, unsigned int s) override;
25+
bool setTargetDec(int d, unsigned int m, unsigned int s);
2826

2927
/**
3028
* @brief Set the Target Ra
@@ -35,5 +33,5 @@ class Mount : public IMount
3533
*
3634
* @return true if successful, false otherwise
3735
*/
38-
bool setTargetRa(unsigned int h, unsigned int m, unsigned int s) override;
36+
bool setTargetRa(unsigned int h, unsigned int m, unsigned int s);
3937
};

app/include/mount/MountWorker.hpp

Lines changed: 0 additions & 35 deletions
This file was deleted.

app/include/utils/AsyncResult.hpp

Lines changed: 0 additions & 113 deletions
This file was deleted.

0 commit comments

Comments
 (0)