summaryrefslogtreecommitdiff
path: root/project/Core/Src/Activties/activity4.c
diff options
context:
space:
mode:
Diffstat (limited to 'project/Core/Src/Activties/activity4.c')
-rw-r--r--project/Core/Src/Activties/activity4.c13
1 files changed, 3 insertions, 10 deletions
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 <printf.h>
#include <endian_converters.h>
#include <stdint.h>
-
-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);