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 1ed5909 + d69d8e9 commit 5bf40b8
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 15 deletions.
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
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
<avrgcccpp.linker.libraries.Libraries>
<ListValues>
<Value>libm</Value>
<Value>libATxmega16A4U_ClockSync-1.10.a</Value>
<Value>libATxmega16A4U_ClockSync-1.13.a</Value>
</ListValues>
</avrgcccpp.linker.libraries.Libraries>
<avrgcccpp.linker.libraries.LibrarySearchPaths>
Expand Down
3 changes: 2 additions & 1 deletion Firmware/TimestampGeneratorGen3/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
true // The device is able to generate the harp timestamp clock
true, // The device is able to generate the harp timestamp clock
3 // Default timestamp offset
);
}

Expand Down
9 changes: 3 additions & 6 deletions Firmware/TimestampGeneratorGen3/hwbp_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,6 @@ bool hwbp_read_common_reg(uint8_t add, uint8_t type);
// Write to an common register.
bool hwbp_write_common_reg(uint8_t add, uint8_t type, uint8_t * content, uint16_t n_elements);

/************************************************************************/
/* Register OPERATION_CTRL */
/************************************************************************/
// Write to common register OPERATION_CTRL.
bool hwbp_write_common_reg_OPERATION_CTRL(void *a);

/************************************************************************/
/* Register RESET_APP */
Expand All @@ -83,6 +78,7 @@ bool hwbp_write_common_reg_RESET_APP(void *a);
// Used to save all registers to non-volatile memory
bool core_save_all_registers_to_eeprom(void);


/************************************************************************/
/* Register CONFIG */
/************************************************************************/
Expand Down Expand Up @@ -130,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/TimestampGeneratorGen3/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/TimestampGeneratorGen3/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 device.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/harp-tech/reflex-generator/main/schema/device.json
device: TimestampGeneratorGen3
whoAmI: 1158
firmwareVersion: "1.0"
firmwareVersion: "1.1"
hardwareTargets: "1.2"
registers:
Config:
Expand Down

0 comments on commit 5bf40b8

Please sign in to comment.