MCB1700_Welcome
melody.c File Reference

store Never Gonna Give You Up More...

#include "melody.h"
Include dependency graph for melody.c:

Macros

#define TONE(freq, duration)   ((((uint32_t)freq & 0xffff) << 16) | (((uint32_t)duration / (uint32_t)freq) & 0xffff))
 

Variables

const uint32_t TACT = 2120 * 1000 * 25
 
const uint32_t GIS2 = 30098
 
const uint32_t F = 35793
 
const uint32_t DIS = 40177
 
const uint32_t CIS = 45097
 
const uint32_t C = 47778
 
const uint32_t B = 53629
 
const uint32_t GIS = 60197
 
const uint32_t CALL = 0x10000
 
const uint32_t RETURN = 0x20000
 
const uint32_t refrain []
 
const uint32_t quadrupel []
 
const uint32_t * cpu32EntryPoint = refrain
 
const uint32_t GOTO_REFRAIN = 0
 
const uint32_t CALL_QUADRUPEL = CALL + 1
 
const uint32_t * jumplabels []
 
const uint32_t ** cppu32JumpLabels = jumplabels
 

Detailed Description

store Never Gonna Give You Up

Author
Lukas Fürderer
Version
V1.0
Date
15.11.2020

This file contains the main app function and init.

Macro Definition Documentation

◆ TONE

#define TONE (   freq,
  duration 
)    ((((uint32_t)freq & 0xffff) << 16) | (((uint32_t)duration / (uint32_t)freq) & 0xffff))

Variable Documentation

◆ B

const uint32_t B = 53629

◆ C

const uint32_t C = 47778

◆ CALL

const uint32_t CALL = 0x10000

◆ CALL_QUADRUPEL

const uint32_t CALL_QUADRUPEL = CALL + 1

◆ CIS

const uint32_t CIS = 45097

◆ cppu32JumpLabels

const uint32_t** cppu32JumpLabels = jumplabels

◆ cpu32EntryPoint

const uint32_t* cpu32EntryPoint = refrain

◆ DIS

const uint32_t DIS = 40177

◆ F

const uint32_t F = 35793

◆ GIS

const uint32_t GIS = 60197

◆ GIS2

const uint32_t GIS2 = 30098

◆ GOTO_REFRAIN

const uint32_t GOTO_REFRAIN = 0

◆ jumplabels

const uint32_t* jumplabels[]
Initial value:

◆ quadrupel

const uint32_t quadrupel
Initial value:
= {
TONE(GIS, TACT / 16),
TONE(B, TACT / 16),
TONE(CIS, TACT / 16),
TONE(B, TACT / 16),
}

◆ refrain

const uint32_t refrain

◆ RETURN

const uint32_t RETURN = 0x20000

◆ TACT

const uint32_t TACT = 2120 * 1000 * 25
RETURN
const uint32_t RETURN
Definition: melody.c:28
TONE
#define TONE(freq, duration)
Definition: melody.c:15
quadrupel
const uint32_t quadrupel[]
Definition: melody.c:31
GIS
const uint32_t GIS
Definition: melody.c:25
TACT
const uint32_t TACT
Definition: melody.c:17
refrain
const uint32_t refrain[]
Definition: melody.c:30
CIS
const uint32_t CIS
Definition: melody.c:22
B
const uint32_t B
Definition: melody.c:24