Commit Graph

32 Commits

Author SHA1 Message Date
Crayon2000
7151534641 Fix compiler warnings
These are the two warnings that I fixed:

/src/dynamic_libs/os_functions.c: In function '_os_find_export':
/src/dynamic_libs/os_functions.c:171:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (i = 0; i < sizeof(a) - 1; i++)
                       ^
/src/dynamic_libs/os_functions.c:177:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (i = 0; i < sizeof(b) - 1; i++)
                       ^
2017-04-29 21:28:05 -04:00
Maschell
d2f15cc9b6 Merge pull request #6 from neuschaefer/dev
Space savings, memory functions, .gitignore
2017-04-29 12:50:39 +02:00
Maschell
b64c23cc55 Merge pull request #7 from Crayon2000/gyro_and_angle
Add support for vpad gyro and angle
2017-04-29 12:43:40 +02:00
Crayon2000
628bff0145 Add support for vpad gyro and angle
gyro.x = Rotation speed around X (horizontal) axis
gyro.y = Rotation speed around Y (depth) axis
gyro.z = Rotation speed around Z (vertical) axis

angle.x = Rotation around X (horizontal) axis
angle.y = Rotation around Y (depth) axis
angle.z = Rotation around Z (vertical) axis
2017-04-27 23:56:23 -04:00
Jonathan Neuschäfer
b289fed3b7 os_functions: Add OSIsAddressValid
This functions checks whether a virtual address is mapped readable.
2017-04-24 05:41:14 +02:00
Jonathan Neuschäfer
1afc4b899e os_functions: Add OS{AllocFrom,FreeTo}System
OSAllocFromSystem allocates a physically contiguous area of memory, and
returns a pointer to it as a virtual address in the calling process's
address space. OSFreeToSystem is the corresponding free function.
2017-04-24 05:41:14 +02:00
Jonathan Neuschäfer
775993a09b Move most of OS_FIND_EXPORT{,_EX} into a function
This brought the file size of os_functions.o (compiled at -O2, not stripped)
from 15K to 9.7K. Section sizes changed in the following ways:

        .text  .rela.text  .data  .rodata.str1.4  .syntab  .strtab  .shstrtab
before   5660        2928    276            3111     1264     1255         89
after    2860        2376    276            1175     1296     1294         89

The most obvious win is due to not including two strings per imported function
("OSFoo" and "Function OSFoo is NULL") in the .rodata section anymore, but
outlining the error-handling code also reduced the size of .text significantly.
2017-04-24 05:41:13 +02:00
Jonathan Neuschäfer
81b1a92727 .gitignore: Ignore .o files 2017-04-24 05:41:13 +02:00
Maschell
64f225382a Added the wpad sampling callback 2017-04-23 15:21:51 +02:00
Maschell
ecc0823a5d Merge pull request #5 from Crayon2000/include_problem
Fix include problem
2017-04-22 09:47:36 +02:00
Crayon2000
a998a74972 Fix include problem
gctypes.h needs to be included before using u32 type.
2017-04-22 01:08:35 -04:00
Maschell
4d1f719037 Merge pull request #4 from neuschaefer/dev
Small changes in os_functions
2017-04-19 22:00:28 +02:00
Jonathan Neuschäfer
07d29c1b9f os_functions: Sort special cases by FW version again
It was really hard to find version 5.5.0, because everything else was
sorted.
2017-04-19 21:49:21 +02:00
Jonathan Neuschäfer
a670f34082 os_functions.h: Declare all memory functions 2017-04-18 23:15:35 +02:00
Maschell
a136b12c52 Using u32 and s32 only instead of (unsigned) int to be more consistent with data types 2017-04-10 11:04:06 +02:00
Maschell
5e01fb7d3f Added WPAD and socket functions 2017-03-30 17:51:11 +02:00
Maschell
7310a39d47 Added some IOS_... functions 2016-11-29 18:36:23 +01:00
Maschell
befce1016a Added recvfrom and own VPAD defines 2016-09-23 14:34:35 +02:00
Maschell
f32198ee43 Merge pull request #3 from rw-r-r-0644/master
added OSTicksTOCalendarTime and OSCalendarTime struct
2016-09-19 20:26:28 +02:00
rw-r-r-0644
e004df5c7d added OSTicksTOCalendarTime and OSCalendarTime struct 2016-09-19 20:13:04 +02:00
Maschell
4ade58bf6a Added energy saver functions and pro controller defines 2016-08-18 11:18:44 +02:00
Maschell
4f6bb467c3 Moved fs_defs back into a own file. deleted not needed line 2016-08-03 20:12:42 +02:00
Maschell
28014e6b1f Added fs_defs to fs_functions.h 2016-08-03 19:57:27 +02:00
dimok789
aecfb5a1e8 added launch title 2016-05-10 22:53:34 +02:00
Maschell
2d9aadeb21 HIDResetDevice doesn't exist on 4.x. We don't need it atm so we can remove it. 2016-04-29 13:39:36 +02:00
Maschell
2524defead Fixing merging issues 2016-04-28 21:23:45 +02:00
Maschell
b0f9e662de Missing stuff for 3.x.x support 2016-04-28 21:11:20 +02:00
Maschell
9291226f5a added support for firmware 3.x.x 2016-04-28 21:00:19 +02:00
Maschell
d7afc99b56 small fix 2016-04-28 00:12:40 +02:00
Maschell
260c806483 Create README.md 2016-04-27 21:38:43 +02:00
Maschell
1fcfb43f39 First commit 2016-04-25 20:33:48 +02:00
Maschell
eb1da12045 :neckbeard: Added .gitattributes & .gitignore files 2016-04-25 20:33:05 +02:00