Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ASF/samd51a/gcc/gcc/samd51p20a_flash.ld
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ MEMORY
}

/* The stack size used by the application. NOTE: you need to adjust according to your application. */
STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : DEFINED(__stack_size__) ? __stack_size__ : 0x10000;
/* Reduced from 0x10000 (64KB) to 0x6000 (24KB) to fit RAM constraints */
STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : DEFINED(__stack_size__) ? __stack_size__ : 0x6000;

/* Section Definitions */
SECTIONS
Expand Down
13 changes: 12 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,15 @@ export OBJS := \
../src/tasks/magnetometer/magnetometer_driver.o \
../src/tasks/magnetometer/magnetometer_task.o \
../src/tasks/magnetometer/magnetometer_main.o \
\
../src/tasks/photodiode/photodiode_driver.o \
../src/tasks/photodiode/photodiode_task.o \
../src/tasks/photodiode/photodiode_main.o \
../src/tasks/camera/camera_hw.o \
../src/tasks/camera/camera_driver.o \
../src/tasks/camera/camera_task.o \
../src/tasks/camera/camera_main.o \
../src/tasks/camera/camera.o \
../src/tasks/camera/tests/camera_tests.o \
../src/tasks/shell/shell_main.o \
../src/tasks/shell/shell_helpers.o \
../src/tasks/shell/shell_commands.o \
Expand All @@ -74,6 +82,9 @@ export EXTRA_VPATH := \
../../src/tasks/task_manager \
../../src/tasks/command_dispatcher \
../../src/tasks/magnetometer \
../../src/tasks/photodiode \
../../src/tasks/camera \
../../src/tasks/camera/tests \
../../src/tasks/shell \
../../src/mutexes

Expand Down
Binary file added bootloader/bootloader1.bin
Binary file not shown.
Binary file added bootloader/bootloader2.bin
Binary file not shown.
Binary file added bootloader/bootloader3.bin
Binary file not shown.
12 changes: 11 additions & 1 deletion src/globals.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,17 @@ typedef enum {
// Magnetometer operations
OPERATION_READ, // p_data: magnetometer_read_args_t *readings

// TESTING
// Photodiode operations
OPERATION_PHOTODIODE_READ, // p_data: photodiode_read_args_t *readings
OPERATION_PHOTODIODE_CALIBRATE, // p_data: NULL
OPERATION_PHOTODIODE_CONFIG, // p_data: photodiode_config_args_t *config // TESTING

// Camera operations
OPERATION_CAMERA_CAPTURE, // p_data: camera_capture_args_t *capture_args
OPERATION_CAMERA_CONFIG, // p_data: camera_config_args_t *config_args
OPERATION_CAMERA_STATUS, // p_data: camera_status_args_t *status_args
OPERATION_CAMERA_AUTO_EXPOSURE, // p_data: camera_auto_exposure_args_t *ae_args

TEST_OP, // p_data: char message[]
} operation_t;

Expand Down
4 changes: 2 additions & 2 deletions src/misc/logging/logging.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#ifndef LOGGING_H
#define LOGGING_H

#include "SEGGER_RTT.h"
#include "globals.h"
#include "../printf/SEGGER_RTT.h"
#include "../../globals.h"

#define LOGGING_RTT_OUTPUT_CHANNEL 1

Expand Down
Loading