Skip to content
This repository was archived by the owner on Jun 18, 2023. It is now read-only.

Phase 1: Documentation, Fix & Upgrades #3

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"recommendations": [
"rust-lang.rust-analyzer",
"tamasfe.even-better-toml",
"rlnt.keep-a-changelog"
]
}
9 changes: 9 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"editor.rulers": [80,120],
"rust-client.channel": "nightly",
"rust-client.autoStartRls": true,
"rust-client.disableRustup": false,
"rust-client.engine": "rls",
"rust-client.updateOnStartup": true,
"rust.rust-analyzer.releaseTag": "nightly"
}
56 changes: 39 additions & 17 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,32 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Added
- Complete **userspace** bindings to:
* the [Control Library]
* the [Display Library]
* the *threading* part of the [Thread Manager Library]
* the *semaphore* part of the [Thread Manager Library]
- Partial **userspace** bindings to:
* the *event flags* part of the [Thread Manager Library]
- Complete documentation for:
* the [Type Defines]
* the [System Parameters Defines]
* the [Display Library]
* the [Control Library]
* the [Random Number Library]
- Partial documentation for:
* the *event flags* part of the [Thread Manager Library]

### Removed
- `SceUVector4` & `SceUMatrix4` structures from `types` (not present in types.h).
- `SceUnion32` & `SceUnion64` & `SceUnion128` union from `types` (not present in types.h)

### Fixed
- Fix `i32` being used instead of `u32` as `psp2_sys::types::SceUInt`

[Control Library]: https://docs.vitasdk.org/group__SceCtrlUser.html
### Changed
- Type of variable used by `size` parameter of `ctrl::sceKernelGetRandomNumber` function. (`SceSize` instead of `u32`)
- Type of variable used by `port` variable in struct `SceCtrlPortInfo` (`u8` instead of `SceCtrlExternalInputMode`)
- Type of variable used by `r`, `g`, `b` parameters of `ctrl::sceCtrlSetLightBar` function. (`SceUInt8` instead of `u8`)
- Type of variable used by `batt` parameters of `ctrl::sceCtrlGetBatteryInfo` function. (`SceUInt8` instead of `u8`)


## [v0.2.2] - 2018-09-12
Expand Down Expand Up @@ -42,14 +63,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
* the *threading* part of the [Thread Manager Library]
* the *semaphore* part of the [Thread Manager Library]

[Random Number Library]: https://docs.vitasdk.org/group__SceRngUser.html
[Device Control Library]: https://docs.vitasdk.org/group__SceDevCtlUser.html
[Directory Entries Library]: https://docs.vitasdk.org/group__SceDirEntUser.html
[File Control Library]: https://docs.vitasdk.org/group__SceFcntlUser.html
[File Status Library]: https://docs.vitasdk.org/group__SceStatUser.html
[C Standard Library]: https://docs.vitasdk.org/group__SceCLibUser.html
[Thread Manager Library]: https://docs.vitasdk.org/group__SceThreadMgrUser.html


## [v0.1.1] - 2018-07-04
### Changed
Expand All @@ -73,18 +86,27 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- A basic README with links to other `vita-rust` projects.
- This CHANGELOG file.

[Common Dialog Library]: https://docs.vitasdk.org/group__SceCommonDialogUser.html
[Message Dialog Library]: https://docs.vitasdk.org/group__SceMessageDialogUser.html
[GPU Graphics Library]: https://docs.vitasdk.org/group__SceGxmUser.html
[System Parameters Defines]: https://docs.vitasdk.org/group__SceSystemParamUser.html
[System Memory Library]: https://docs.vitasdk.org/group__SceSysmemUser.html
[Thread Manager Library]: https://docs.vitasdk.org/group__SceThreadMgrUser.html
[Type Defines]: https://docs.vitasdk.org/group__SceTypesUser.html


[Unreleased]: https://github.com/vita-rust/psp2-sys/compare/v0.2.2...HEAD
[v0.2.2]: https://github.com/vita-rust/psp2-sys/compare/v0.2.1...v0.2.2
[v0.2.1]: https://github.com/vita-rust/psp2-sys/compare/v0.2.0...v0.2.1
[v0.2.0]: https://github.com/vita-rust/psp2-sys/compare/v0.1.1...v0.2.0
[v0.1.1]: https://github.com/vita-rust/psp2-sys/compare/v0.1.0...v0.1.1
[v0.1.0]: https://github.com/vita-rust/psp2-sys/compare/147a58f...v0.1.0


[Control Library]: https://docs.vitasdk.org/group__SceCtrlUser.html
[Display Library]: https://docs.vitasdk.org/group__SceDisplayUser.html
[Random Number Library]: https://docs.vitasdk.org/group__SceRngUser.html
[Device Control Library]: https://docs.vitasdk.org/group__SceDevCtlUser.html
[Directory Entries Library]: https://docs.vitasdk.org/group__SceDirEntUser.html
[File Control Library]: https://docs.vitasdk.org/group__SceFcntlUser.html
[File Status Library]: https://docs.vitasdk.org/group__SceStatUser.html
[C Standard Library]: https://docs.vitasdk.org/group__SceCLibUser.html
[Common Dialog Library]: https://docs.vitasdk.org/group__SceCommonDialogUser.html
[Message Dialog Library]: https://docs.vitasdk.org/group__SceMessageDialogUser.html
[GPU Graphics Library]: https://docs.vitasdk.org/group__SceGxmUser.html
[System Parameters Defines]: https://docs.vitasdk.org/group__SceSystemParamUser.html
[System Memory Library]: https://docs.vitasdk.org/group__SceSysmemUser.html
[Thread Manager Library]: https://docs.vitasdk.org/group__SceThreadMgrUser.html
[Type Defines]: https://docs.vitasdk.org/group__SceTypesUser.html
1 change: 1 addition & 0 deletions COPYING
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Copyright (c) 2021 Gabriel GRONDIN <[email protected]>
Copyright (c) 2018 Martin Larralde ([email protected])

Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
7 changes: 5 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
[package]
name = "psp2-sys"
version = "0.2.2"
authors = ["Martin Larralde <[email protected]>"]
authors = [
"Martin Larralde <[email protected]>",
"Gabriel GRONDIN <[email protected]>"
]
edition = "2018"
license = "MIT"
description = "Unsafe Rust FFI bindings to the psp2 headers"
repository = "https://github.com/vita-rust/psp2-sys"
readme = "README.md"
keywords = ["ps-vita", "psp2"]
keywords = ["psvita", "ps vita", "ps-vita", "psp2"]
categories = ["no-std", "external-ffi-bindings", "os", "hardware-support"]
exclude = ["ci/travis/setup.sh", "Makefile.toml"]

Expand Down
Loading