Swadge 2024
2.0.0
APIs to develop games for the Magfest Swadge
Toggle main menu visibility
Main Page
Related Pages
Data Structures
Data Structures
Data Structure Index
Data Fields
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
Variables
a
b
c
d
f
g
h
i
j
l
m
n
o
p
r
s
t
v
w
Typedefs
d
e
f
h
m
n
p
q
s
t
u
w
Enumerations
a
b
c
d
g
h
i
k
l
m
o
p
s
t
u
w
Enumerator
a
c
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
z
Macros
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
▼
Swadge 2024
Introduction
Where to Start
Swadge Mode Example
►
API Reference
Espressif Documentation
►
Wireless Power Saving Notes
Code of Conduct
►
Contribution Guide
►
Swadge Design Principles
►
Emulator User Manual
►
MIDI Specifications
►
Porting 2023 Swadge Modes
►
Serial Debug Output
►
Configuring a Development Environment
►
How to Make a Swadge Mode
►
Data Structures
▼
Files
▼
File List
►
components
docs
▼
main
►
asset_loaders
►
colorchord
►
display
►
menu
►
midi
►
modes
▼
utils
►
fl_math
►
cnfs.c
►
cnfs.h
►
color_utils.c
►
color_utils.h
►
coreutil.h
►
dialogBox.c
►
dialogBox.h
►
fp_math.c
►
fp_math.h
►
geometry.c
►
geometry.h
►
hashMap.c
►
hashMap.h
►
imu_utils.c
►
imu_utils.h
►
linked_list.c
►
linked_list.h
►
macros.h
►
nameList.c
►
nameList.h
►
p2pConnection.c
►
p2pConnection.h
►
settingsManager.c
►
settingsManager.h
►
soundFuncs.h
►
swadgePass.c
►
swadgePass.h
►
swSynth.c
►
swSynth.h
►
textEntry.c
►
textEntry.h
►
touchTextEntry.c
►
touchTextEntry.h
►
touchUtils.c
►
touchUtils.h
►
trigonometry.c
►
trigonometry.h
►
trophy.c
►
trophy.h
►
vector2d.c
►
vector2d.h
►
wheel_menu.c
►
wheel_menu.h
►
modeIncludeList.c
►
modeIncludeList.h
►
swadge2024.c
►
swadge2024.h
►
tools
►
Globals
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
Loading...
Searching...
No Matches
coreutil.h
Go to the documentation of this file.
1
25
26
#ifndef _COREUTIL_H_
27
#define _COREUTIL_H_
28
30
#define STATIC static
31
42
STATIC
inline
uint32_t
getCycleCount
(
void
)
43
{
44
#if defined(__XTENSA__)
45
uint32_t ccount;
46
asm
volatile
(
"rsr %0,ccount"
:
"=a"
(ccount));
47
return
ccount;
48
#else
49
return
0;
50
#endif
51
}
42
STATIC
inline
uint32_t
getCycleCount
(
void
) {
…
}
52
53
#endif
STATIC
#define STATIC
Silly redefinition to trick Doxygen into documenting a static function, which it otherwise ignores.
Definition
coreutil.h:30
getCycleCount
STATIC uint32_t getCycleCount(void)
Get current cycle count of processor for profiling. It is in 1/F_CPU units. This will actually compil...
Definition
coreutil.h:42
main
utils
coreutil.h
Generated by
1.13.2