summaryrefslogtreecommitdiff
path: root/project/Core/Src/Activties
diff options
context:
space:
mode:
authorsowgro <tpoke.ferrari@gmail.com>2025-10-17 22:01:03 -0400
committersowgro <tpoke.ferrari@gmail.com>2025-10-17 22:01:03 -0400
commit06ba9e05c166c48a739683766f09c4abf242fb81 (patch)
treefb22c0052f075522e6882b462cb310deb4238ed0 /project/Core/Src/Activties
parent0e0f83905bb3ee79f4917927479cdaf710e8ac07 (diff)
download340-repo-Sowgro-06ba9e05c166c48a739683766f09c4abf242fb81.tar.gz
340-repo-Sowgro-06ba9e05c166c48a739683766f09c4abf242fb81.tar.bz2
340-repo-Sowgro-06ba9e05c166c48a739683766f09c4abf242fb81.zip
Complete project
Diffstat (limited to '')
-rw-r--r--project/Core/Src/Activties/activity4.c13
-rw-r--r--project/Core/Src/Activties/activity8.txt2
2 files changed, 4 insertions, 11 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);
diff --git a/project/Core/Src/Activties/activity8.txt b/project/Core/Src/Activties/activity8.txt
index 0951319..2f85183 100644
--- a/project/Core/Src/Activties/activity8.txt
+++ b/project/Core/Src/Activties/activity8.txt
@@ -1,4 +1,4 @@
-parse song 8 for the tempo, title and copyright
+parse song 0 for the tempo, title and copyright
title: Twinkle Twinkle Little Star
copyright: Jim Paterson