Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge pull request hathach#1975 from hathach/update-doc #2

Merged
merged 118 commits into from
Mar 23, 2023

Conversation

fengjixuchui
Copy link
Owner

Describe the PR
A clear and concise description of what this PR solve.

Additional context
If applicable, add any other context about the PR and/or screenshots here.

perigoso and others added 30 commits June 2, 2022 09:35
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
	link was chosen according to the name for the usb core on datasheets, LINK core

Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
	create local register access struct and move mcu specific code
	in preparation of support for other mcu families that use the LINK usb core

Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
	this allows ports to specify a freertos port outside the FreeRTOS-Kernel lib directory, which would otherwise not be possible

Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
Co-authored-by: Koji KITAYAMA <45088311+kkitayam@users.noreply.github.com>
druing the renaming int and iso endpoint configurations were swapped

Co-authored-by: Koji KITAYAMA <45088311+kkitayam@users.noreply.github.com>
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
strings.h is not an ISO header file, so IAR generates fatal error Pe1696
'cannot open source file "strings.h"'. Even though strncasecmp isn't an
ISO C library function, IAR's runtime library defines it, though it
declares it in string.h instead.
IAR generates error Pe118 'a void function may not return a value'.
Some compilers don't support the GNU extension `typeof` so their definitions
of `hw_set_alias` can't inherit their type from their argument, and the best
we can do is have `hw_set_alias` act the same as `hw_set_alias_untyped`.
This requires an explicit cast when the macro is used instead, otherwise
IAR generates error Pe132 'expression must have pointer-to-struct-or-union
type but it has type "void *"'.

The same goes for `hw_clear_alias`.
This is a GCC extension, illegal in ISO C. IAR generates errors Pa152
'these operand types cannot be used here' and Pe852 'expression must be a
pointer to a complete object type'.

Replace with uint8_t*.
IAR generates warning Pe111 'statement is unreachable'. In a couple of
cases, replace return statements with TU_ATTR_FALLTHROUGH; because some
compilers apparently can't figure out that the return statements are
unreachable but do whinge about an imagined fall-through without them!
IAR generates warning Pe188 'enumerated type mixed with another type'.
IAR generates warning Pa089 'enumerated type mixed with another enumerated
type'.
This affects struct rspMsg in usbtmc_app.c (unconditionally) and uint8_t
termChar in usbtmc_device.c (when NDEBUG is defined). IAR generates warning
Pe550 'variable was set but never used'.
IAR generates warning Pe546 'transfer of control bypasses initialization of
variable "invInvTag"'.
IAR generates warning Pa167 'the "fallthrough" attribute is not supported'.
It doesn't generate warnings when one switch case falls through to another,
so simply make TU_ATTR_FALLTHROUGH expand to an empty string.

Also replace one instance of __attribute__ with the macro.
IAR generates warning Pe161 'unrecognized #pragma'.
hathach and others added 29 commits March 19, 2023 13:15
UAC2: fix feedback EP buffer alignment.
…rted.

- previously CFG_TUH_HID is max number of interfaces per device which is
rather limited and consume more resources than needed.
- change hid host instance in API to index
rename and change default pio usb pin to adafruit feather usb host
update doc and generate deps list
@fengjixuchui fengjixuchui merged commit 9bfabb2 into fengjixuchui:master Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
7 participants