Skip to content

Commit

Permalink
Network: Made kconfig storage and serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Rocio committed Jul 12, 2022
1 parent b61f40b commit b0c6e5a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 3 additions & 1 deletion firmware/sys/serialization/Kconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
menu "Serialization"
# TO DO
config SERIALIZATION_BUFF_SIZE
int "Default buff size"
default 100
endmenu
2 changes: 1 addition & 1 deletion firmware/sys/serialization/serialization.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ int cbor_decode_message(uint8_t *buffer, sensor_data *data, size_t length) {
}

int cbor_enconde_message(sensor_data *data, uint8_t *output, size_t *len_output) {
uint8_t buffer[100];
uint8_t buffer[CONFIG_SERIALIZATION_BUFF_SIZE];
CborEncoder encoder;
cbor_encoder_init(&encoder, buffer, sizeof(buffer), 0);

Expand Down
2 changes: 1 addition & 1 deletion firmware/sys/storage/Kconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
menu "Storage"
# TO DO
#TO DO
endmenu
1 change: 1 addition & 0 deletions tests/serialization/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rsource "../../firmware/sys/serialization/Kconfig"
5 changes: 1 addition & 4 deletions tests/storage/Kconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
menu "Test Kconfig Storage"
rsource "../../firmware/sys/uniqueid/Kconfig"
rsource "../../firmware/network/net_tools/Kconfig"
endmenu
rsource "../../firmware/sys/storage/Kconfig"

0 comments on commit b0c6e5a

Please # to comment.