Skip to content

Commit

Permalink
Merge pull request #4 from harp-tech/fw-raise_harp_core_to_1.13
Browse files Browse the repository at this point in the history
Raise harp core to 1.13
  • Loading branch information
filcarv authored Aug 10, 2023
2 parents 32a56d6 + a0a7c56 commit 3a9b706
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<Store xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="AtmelPackComponentManagement">
<ProjectComponents />
</Store>
2 changes: 1 addition & 1 deletion Firmware/CameraControllerGen2/CameraControllerGen2.cppproj
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
<avrgcccpp.compiler.warnings.AllWarnings>True</avrgcccpp.compiler.warnings.AllWarnings>
<avrgcccpp.linker.libraries.Libraries>
<ListValues>
<Value>libATxmega32A4U-1.10.a</Value>
<Value>libATxmega32A4U-1.13.a</Value>
</ListValues>
</avrgcccpp.linker.libraries.Libraries>
<avrgcccpp.linker.libraries.LibrarySearchPaths>
Expand Down
3 changes: 2 additions & 1 deletion Firmware/CameraControllerGen2/app.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ void hwbp_app_initialize(void)
APP_REGS_ADD_MAX - APP_REGS_ADD_MIN + 1,
default_device_name,
true, // The device is able to repeat the harp timestamp clock
false // The device is not able to generate the harp timestamp clock
false, // The device is not able to generate the harp timestamp clock
3 // Default timestamp offset
);
}

Expand Down
3 changes: 2 additions & 1 deletion Firmware/CameraControllerGen2/hwbp_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ void core_func_start_core (
const uint8_t num_of_app_registers,
const uint8_t *device_name,
const bool device_is_able_to_repeat_clock,
const bool device_is_able_to_generate_clock
const bool device_is_able_to_generate_clock,
const uint8_t default_timestamp_offset
);

// Call this function in case of error
Expand Down
7 changes: 4 additions & 3 deletions Firmware/CameraControllerGen2/hwbp_core_regs.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
#define ADD_R_HW_VERSION_H 0x01 // U8
#define ADD_R_HW_VERSION_L 0x02 // U8
#define ADD_R_ASSEMBLY_VERSION 0x03 // U8
#define ADD_R_HARP_VERSION_H 0x04 // U8
#define ADD_R_HARP_VERSION_L 0x05 // U8
#define ADD_R_CORE_VERSION_H 0x04 // U8
#define ADD_R_CORE_VERSION_L 0x05 // U8
#define ADD_R_FW_VERSION_H 0x06 // U8
#define ADD_R_FW_VERSION_L 0x07 // U8
#define ADD_R_TIMESTAMP_SECOND 0x08 // U32
Expand All @@ -21,9 +21,10 @@
#define ADD_R_DEVICE_NAME 0x0C // U8
#define ADD_R_SERIAL_NUMBER 0x0D // U16
#define ADD_R_CONFIG 0x0E // U8
#define ADD_R_TIMESTAMP_OFFSET 0x0F // U8

/* Memory limits */
#define COMMON_BANK_ADD_MAX 0x0E
#define COMMON_BANK_ADD_MAX 0x0F
#define COMMON_BANK_ABSOLUTE_ADD_MAX 0x1C

/* R_OPERATION_CTRL */
Expand Down
4 changes: 2 additions & 2 deletions Firmware/CameraControllerGen2/hwbp_core_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
#define MSK_TIMESTAMP_AT_PAYLOAD 0x10

/************************************************************************/
/* Maximum size of an entire packet (header to chksum) */
/* Maximum size of a received packet */
/************************************************************************/
#define MAX_PACKET_SIZE 256
#define MAX_PACKET_SIZE 255


#endif /* _HWBP_CORE_TYPES_H_ */
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion Firmware/LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (C) 2021-2022 Filipe Carvalho
Copyright (C) 2021-2023 Filipe Carvalho

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down

0 comments on commit 3a9b706

Please sign in to comment.