Joel Sherrill
1339ef1b10
bsps/shared/grlib: Address unused parameter warnings
...
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 20:52:14 +00:00
Joel Sherrill
e45ebbc5c1
bsps/*: Correct implicit fallthrough warnings
...
Use RTEMS_FALL_THROUGH() to annotate case statements which
intentionally do not have a break statement.
2025-09-19 19:02:25 +00:00
Joel Sherrill
72837b30d8
bsps/shared/*: Fix old style declaration
...
Newer C versions require that the storage-class specifier like
static or _Thread_Local be the first thing in a declaration.
2025-09-03 09:15:17 -05:00
Matteo Concas
8915b72068
grlib/pci: Use unsigned integer for interrupt number
...
Closes Coverity 1642585
2025-06-10 18:53:04 +00:00
Matteo Concas
24a3ae9fa5
grlib/spwtdp: Remove DEBUG flag
...
This flag should not be enabled by default
2025-05-06 19:30:06 +00:00
Jan Sommer
ab21dcba06
grlib/occan: Fix baud rate calculation
...
Fixes #5166
2025-02-07 15:08:07 +00:00
Matteo Concas
72c0f5ccc1
grlib/grcanfd: Mask frame data length value to prevent overflow
2025-02-07 01:03:33 +00:00
Matteo Concas
0bafb10a69
grlib/grcanfd: Use signed integer to account for errors
2025-02-07 01:03:33 +00:00
Sebastian Huber
e53dfabe36
sparc/leon3: Add leon3_l2c_lock
...
Use a single lock for all L2C support functions.
Close #4925 .
2024-11-20 15:08:04 +00:00
Martin Åberg
85add65a91
grlib/l2c: Prevent concurrent register access
...
Accesses to the L2C registers performed by the L2C driver are now
serialized with spin locks. This avoids concurrent access to the L2C
registers by multiple processors. Proposed by GRLIB-TN-0021.
Update #4925 .
2024-11-20 15:08:04 +00:00
Martin Åberg
1ce6347976
grlib/l2c: Write to flush registers using atomic instructions
...
All writes to the L2C flush registers performed by the driver are now
done using atomic write instructions. Proposed by GRLIB-TN-0021.
Update #4925 .
2024-11-20 15:08:04 +00:00
Martin Åberg
6198260d26
grlib/l2c: Access registers with helper functions
2024-11-20 15:08:04 +00:00
Martin Åberg
0a2c310d39
grlib/l2c: Use printk for debug print
2024-11-20 15:08:04 +00:00
Martin Åberg
ed55634d51
grlib/l2c: Fix whitespace
...
No functional change
2024-11-20 15:08:04 +00:00
Matteo Concas
8820b8e63f
grlib/b1553rt: Fix bit shift direction
...
The RT_TSW_OK field is set to 1 if there was no error. The Message Error
(ME) field indicates an error and must be set to 0 if there was no error
so the result of tsw&RT_TSW_OK must be negated. It is then left-shifted
to the Messsage Error (ME) bit field of the message information word.
Fix issue CID 1399772
2024-10-29 13:25:14 +00:00
Matteo Concas
a5f64ff27d
grlib/ascs: Fix evaluation order violations, CIDs 1399778, 1399782
2024-10-21 07:02:51 +00:00
Matteo Concas
93413ed315
grlib/pwm: Fix PWM enable bit check, CID 1399774
2024-10-21 07:02:51 +00:00
Matteo Concas
de56c23c14
grlib/1553: Remove dead code, CID 1399770
2024-10-21 07:02:51 +00:00
Matteo Concas
ff22dd6f7c
grlib/1553: Remove dead code, CID 1399764
2024-10-21 07:02:51 +00:00
Sebastian Huber
1eed6f8bfc
bsps: Avoid unused argument in clock interrupt
...
Pass the parameter of the clock interrupt handler to
Clock_driver_support_at_tick() and Clock_driver_timecounter_tick(). This makes
it possible to use the interrupt handler argument in clock drivers.
Use the interrupt handler provided by Clock_driver_support_install_isr() to
avoid local delarations of Clock_isr().
Update #4862 .
2024-03-20 16:34:09 +01:00
Sebastian Huber
c8cae1d82d
score: Move _IO_Relax() to new <rtems/dev/io.h>
...
This function is not a super core service.
2023-07-24 17:51:48 +02:00
Sebastian Huber
fb0eb31a55
bsps/grlib: Fix use of uninitialized variable
...
Fixes Coverity CID 1538314.
2023-07-17 08:00:46 +02:00
Sebastian Huber
d85c505ab0
bsp/leon3: Use new GPTIMER register block API
2023-07-14 12:21:33 +02:00
Sebastian Huber
8fdecf6c55
bsps: Use new APBUART register block API
2023-07-14 12:21:33 +02:00
Sebastian Huber
4e3e9df1b4
bsps: Remove uses of BSP-specific interrupt API
...
Update #3269 .
2023-06-16 07:30:50 +02:00
Joel Sherrill
29a3ad1ba9
grlib: Fix snprintf() overflow warnings from gcc 12
...
Updates #4662 .
2023-01-30 10:44:20 -06:00
Daniel Cederman
5d5b9eeb08
bsps/shared/grlib: Change license to BSD-2 for files with Gaisler copyright
...
This patch changes the license to BSD-2 for all source files where the
copyright is held by Aeroflex Gaisler, Cobham Gaisler, or Gaisler Research.
Some files also includes copyright right statements from OAR and/or
embedded Brains in addition to Gaisler.
Updates #3053 .
2022-11-14 10:59:08 +01:00
Sebastian Huber
cfeb3cbb68
bsp/leon3: Include missing header file
...
The <leon.h> include was removed from <bsp.h> in commit
1577a48369 .
2022-03-08 08:12:47 +01:00
Sebastian Huber
499a89b11d
grlib: Register system console as /dev/console
...
Close #4461 .
2021-06-24 08:27:21 +02:00
Vijay Kumar Banerjee
8416e7c322
bsps/powerpc, bsps/shared: Move remaining legacy networking header files
2021-06-23 13:20:38 -06:00
Sebastian Huber
11cf6ae3e2
grlib: Simplify apbuart_inbyte_nonblocking()
2021-06-17 12:58:33 +02:00
Sebastian Huber
3af1e5e735
grlib: Fix apbuart_outbyte_polled() prototype
...
Callers usually want to output a character.
2021-06-17 12:58:33 +02:00
Sebastian Huber
af69a8693b
grlib: Add apbuart_outbyte_wait()
2021-06-17 12:58:33 +02:00
Sebastian Huber
85febe7b10
grlib: Remove NL -> CR in apbuart_outbyte_polled()
...
This is already done in rtems_putc().
2021-06-17 12:58:33 +02:00
Sebastian Huber
2c07f24af2
grlib: Add ambapp_plb()
...
Replace the global variable ambapp_plb with a function to allow an automatic on
demand initialization.
2021-06-17 12:58:33 +02:00
Sebastian Huber
c4c8d3fd50
grlib: Customizable allocation in ambapp_scan()
...
Make the memory allocations in ambapp_scan() customizable via the new struct
ambapp_context parameter which generalizes the memory copy handler.
2021-06-17 12:58:33 +02:00
Moyano, Gabriel
5728e8e356
grlib/genirq: Taking into account that it could be more than one ISR enabled/disabled
2021-04-16 08:46:17 +02:00
Vijay Kumar Banerjee
c90fa83041
bsps: Remove networking drivers
...
Update #3850
2021-04-07 16:15:38 -06:00
Martin Aberg
4e0735c650
leon, l2cache: prevent unused diagnostic access
2021-03-11 17:35:28 +01:00
Martin Aberg
51564f6383
leon, ahbstat: register definitions for AHBSTAT version 1
2021-03-11 17:35:27 +01:00
Martin Aberg
8660602ae2
leon, grspw_router: added router_port_link_div()
...
Allows user to set SpaceWire run clock divisor for an individual port.
2021-03-11 17:35:27 +01:00
Daniel Hellstrom
9c00cc1301
leon,ckinit: avoid assuming 1MHz timer pre-scaler clock
2021-03-11 17:35:27 +01:00
Daniel Hellstrom
053b17ce8e
leon,greth: added support for variable sized descriptor table sizes
...
The descriptor table size is equal to its alignment and set when
configuring the HW IP through VHDL generics. This SW patch simply
probes the HW how large the RX/TX descriptor tables are and adjusts
accordingly.
The number of descriptors actual used are controlled by other
settings (rxDescs and txDescs) controlled by the user.
2021-03-11 17:34:57 +01:00
Daniel Hellstrom
9bf8a9d147
leon,grcan: split out GRCAN non-FD specific support in separate file
...
Close #4324 .
2021-03-11 17:31:21 +01:00
Daniel Hellstrom
9c76ca0c0c
leon,grcanfd: split out GRCANFD specific support in separate file
...
Update #4324 .
2021-03-11 17:31:21 +01:00
Daniel Hellstrom
43c903a1dc
leon,grcan: added support for GRCANFD
...
The new GRCAN_FD IP supports CAN FD standard and is mostly backwards
compatible with GRCAN SW interface. The GRCAN driver have been extended
to support the GRCANFD IP using the same driver.
Additional functions have been added that uses a new CAN FD frame
format and read/write/baud-rate functions that supports both GRCANFD
and GRCAN. To keep the SW API fully backwards compatible with GRCAN,
the old functions remain.
Update #4324 .
2021-03-11 17:31:21 +01:00
Daniel Hellstrom
65237ba01d
leon,occan: use common CAN baud-rate calculation routine
...
Close #4323 .
2021-03-11 17:31:21 +01:00
Daniel Hellstrom
4d19220742
leon,grcan: use common CAN baud-rate calculation routine
...
Update #4323 .
2021-03-11 17:31:21 +01:00
Daniel Hellstrom
cff99cf1fa
leon,can: introduce common CAN baud-rate calculation function
...
Reimplemented the baud-rate algorithm from scratch to cope with
GRCAN, GRCANFD and OC_CAN devices.
Update #4323 .
2021-03-11 17:31:21 +01:00
Daniel Hellstrom
68c882ef45
grlib,ambapp: added new IP core IDs
2021-03-11 17:31:21 +01:00