Commit Graph

13 Commits (6e70471e1b95e580af90e69d94c310ba4e1e466f)

Author SHA1 Message Date
Andreas Karlsson 70a1042188 Use inttypes print formatting macros
Use inttypes print formatting macros

Update DPRINT support for rt-kernel
2023-04-14 12:12:51 +02:00
Andreas Karlsson f63bca476d Fix esc_coe Wconversion warnings
- make "size" variables not reflecting hardware or protocol
  uint32_t.

- change size_t to uint32_t to avoid conversion when compiling
  on x64

- add excplcit typecaste for uint8_t and uint16_t that need it
  due to integer promotion

- split assignment using macros and bitwise operations to avoid
  imlicit conversion and need of explicit conversion.

- add excplicit typecast to htoe MACROs
2023-03-28 21:17:59 +02:00
Hans-Erik Floryd 097477035d Fix address-of-packed-member warnings
GCC9 introduced an address-of-packed-member warning that triggers in
esc_coe.c. The issue is that a packed struct has an overall alignment
of 1, and taking the address of a member in a packed struct is not
guaranteed to have any particular alignment. However, in esc_coe these
structs are always overlayed on aligned memory so in practice there is
no problem.

Fix the problem by explicitly setting the minimum alignment for the
structs used in this manner. Also fix an instance where an unaligned
pointer was used but never dereferenced (by changing the type of the
pointer from uint32_t* to void*).
2021-10-26 09:36:04 +02:00
Hans-Erik Floryd c8575b795f use gcc __builtin_bswap16 to byteswap 16-bit values
__builtin_bswap16 is available since gcc4.8.
2019-07-10 12:25:13 +02:00
Hans-Erik Floryd f0a378382e redefine DPRINT macro
Set DPRINT macro to printf by default. Long term this should be in an
os-abstraction layer but currently that would only include this macro.

Also fix an instance of invalid DPRINT usage.

Fix #57
2019-07-10 12:05:23 +02:00
Hans-Erik Floryd bdb212942b fix rt-kernel build 2019-04-04 15:07:26 +02:00
rtlaka e27c903b9d add support for XMC DAVE toolchain 2017-11-23 07:46:59 +01:00
rtlaka 6bb5aa643b pass AL event mask to interrupt worker function 2017-11-07 08:43:56 +01:00
rtlaka 62772dd688 add support for gcc atomic operations 2017-10-30 09:50:30 +01:00
rtlaka 39fb2c91e7 added new xmc irq sample and adopted old samples 2017-10-30 09:50:30 +01:00
DonBit eda5a1dc76 Add lan9252 for Linux (#28)
- Add kernel device driver
     drivers/linux/lan9252
 - Add lan9252 file for linux
     applications/linux_lan9252demo
     soes/hal/linux-lan9252
 - Fix linux compatibility for cc.h
     #ifdef __linux__
2017-10-15 15:50:50 +02:00
Hans-Erik Floryd 90dd109af6 fix endian conversion 2015-05-25 16:53:19 +02:00
Hans-Erik Floryd cf58419815 make include subfolder of soes for easy including in other projects 2015-05-21 11:39:12 +02:00