diff options
Diffstat (limited to 'project/Core/Src/Activties')
| -rw-r--r-- | project/Core/Src/Activties/activity4.c | 13 | ||||
| -rw-r--r-- | project/Core/Src/Activties/activity8.txt | 2 |
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 |
