Commit Graph

60 Commits

Author SHA1 Message Date
Maschell
451c406012 Merge pull request #11 from Crayon2000/vpad
Add vpad functions and fill VPADData struct
2017-09-04 12:47:21 +02:00
Maschell
c0971cb52b Merge pull request #13 from Crayon2000/KPADReadEx
Fix linking problem with KPADReadEx
2017-09-04 12:46:39 +02:00
Crayon2000
44177a3e5b Fix linking problem with KPADReadEx
The void* parameter from KPADRead was also changed to KPADData.
2017-08-29 22:12:36 -04:00
Maschell
f5041f5d7f add DCStoreRange 2017-08-28 18:10:22 +02:00
Maschell
13f5b5caa8 added a fs_defs define 2017-08-27 19:24:49 +02:00
Maschell
ee80a47e47 little changes in the fs_defs.h 2017-08-27 14:02:16 +02:00
Maschell
179ad3581e added some FS defines 2017-08-26 01:08:55 +02:00
Maschell
557ce334a4 Merge pull request #12 from Zarklord1/patch-1
Update socket_functions.h
2017-08-24 05:40:25 +02:00
Zarklord1
9bcd302288 Update socket_functions.h 2017-08-23 23:28:39 -04:00
Maschell
c5c73ce18e add IOS_IoctlAsync function 2017-08-23 19:36:18 +02:00
Maschell
3c71a14f10 added file/handle for nn_nim functions 2017-08-14 13:18:42 +02:00
Maschell
048a585d5e Added some more OS functions, added nn_save and nn_act acquire 2017-08-13 20:11:23 +02:00
Maschell
50ee5c62b7 Added handle for nfp and ntag functions 2017-07-21 12:06:30 +02:00
Maschell
7a31349744 Added ProcUI functions 2017-07-20 15:18:32 +02:00
Maschell
eb186a7795 Merge branch 'master' of https://github.com/Maschell/dynamic_libs 2017-07-20 13:41:53 +02:00
Maschell
90bf41bed8 added handle for the snd_core 2017-07-20 13:41:50 +02:00
Maschell
a9abaddf5c Added FSAsyncCallback 2017-05-10 20:52:34 +02:00
Crayon2000
c546e2b8ce Add VPADCalcTPCalibrationParam function 2017-05-07 23:36:18 -04:00
Crayon2000
bd0862328b Add vpad functions and fill VPADData struct
Added VPADSetTPCalibrationParam, VPADGetTPCalibrationParam, VPADGetTPCalibratedPoint and VPADGetTPCalibratedPointEx.
The VPADData struct is filled completely, no unknown sections are left.
2017-05-07 15:54:50 -04:00
Maschell
a2f4abdbeb [Caution] Renamed the sleep functions to resolve conflicts with the unistd.h 2017-05-07 14:23:06 +02:00
Maschell
d7b44109ac Merge pull request #10 from neuschaefer/dev
fs_functions: add FSAddClient and FSGetCurrentCmdBlock
2017-05-07 14:21:39 +02:00
Maschell
51b2a8ed7e Merge pull request #9 from Crayon2000/OSScreenPutPixelEx
Add OSScreenPutPixelEx function
2017-05-07 14:21:27 +02:00
Jonathan Neuschäfer
0a12a3b64d fs_functions: add FSAddClient and FSGetCurrentCmdBlock 2017-05-03 15:14:58 +02:00
Crayon2000
67cfaa568d Add OSScreenPutPixelEx function
OSScreenPutPixelEx will draw a pixel of a certain color to the specified coordinates. This just writes the input u32 to the target location in the framebuffer, nothing is done with the data already stored in the framebuffer.
2017-04-30 14:40:53 -04:00
Maschell
e56b20ce9b Added missing include gctypes and changed data types 2017-04-30 09:42:49 +02:00
Maschell
ef06a0e3f2 Merge pull request #8 from Crayon2000/changes
Fix compiler warnings
2017-04-30 09:29:09 +02:00
Crayon2000
d38ffbfda6 Use u8 instead of uint8_t in the VPADData struct
This is to be more consistent with other data in the VPADData struct.
2017-04-29 21:42:36 -04:00
Crayon2000
fa4a6872b5 Tab to spaces 2017-04-29 21:34:09 -04:00
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