From 06ba9e05c166c48a739683766f09c4abf242fb81 Mon Sep 17 00:00:00 2001 From: sowgro Date: Fri, 17 Oct 2025 22:01:03 -0400 Subject: Complete project --- project/Core/Src/Activties/activity4.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'project/Core/Src/Activties/activity4.c') diff --git a/project/Core/Src/Activties/activity4.c b/project/Core/Src/Activties/activity4.c index 44653e1..f3bd673 100644 --- a/project/Core/Src/Activties/activity4.c +++ b/project/Core/Src/Activties/activity4.c @@ -9,19 +9,12 @@ #include #include #include - -typedef struct { - char chunk_type[4]; - uint32_t length; - uint16_t format; - uint16_t ntrcks; - uint16_t division; -} header; +#include "activity4.h" void activity4_run() { - header* p_header; + header_t* p_header; - p_header = (header *) (get_song(0).p_song); + p_header = (header_t *) (get_song(0).p_song); p_header->length = convert_to_uint32((uint8_t*) &p_header->length); p_header->format = convert_to_uint16((uint8_t*) &p_header->format); -- cgit v1.2.3