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
Daniel Hellstrom
e227ae53ab
leon,grspw: fix for SET_PACKET_SIZE
...
When the DMA table has been allocated dynamically, the IOCTL_SET_PACKETSIZE
will trigger an issue where pDev->rx and pDev->tx are not updated with
the new DMA tables base address. Instead the old pointers are used.
There is no point in reallocting the DMA tables because there is no
configuration option to it. Therefore the DMA tables allocation is
moved to a separate function never called from SET_PACKETSIZE.
2021-03-11 17:31:21 +01:00
Arvid Bjorkengren
50db7f2d6b
leon,gr1553b: Only align allocated memory. Verify alignment of memory.
2021-03-11 17:31:21 +01:00
Arvid Bjorkengren
70f87f9e87
leon,gr1553b: set codec version
...
This is enables the updated codec for GR740 and is backwards compatible
with all other versions of the IP.
2021-03-11 17:31:21 +01:00
Arvid Bjorkengren
3344d0299f
leon,gr1553rt: Fixed spinlock unlock
2021-03-11 17:31:21 +01:00
Arvid Bjorkengren
f798a75cd5
leon,gr1553rt: Fixed memory leak
2021-03-11 17:31:21 +01:00
Ryan Long
f762b7c272
grcan.c: Fix Unused value (CID #1437613 )
...
CID 1437613: Unused value in grcan_set_filter().
This fix was recommended by Daniel Hellstrom (daniel@gaisler.com ).
Closes #4301
2021-03-05 14:00:07 -06:00
Ryan Long
c57079a814
b1553brm.c: Fix Unsigned compared against 0 (CID #1399773 )
...
CID 1399773: Unsigned compared against 0 in brm_write().
Closes #4295
2021-03-05 14:00:07 -06:00
Ryan Long
1f29ee4528
satcan.c: Fix Unsigned compared against 0 (CID #1399768 )
...
CID 1399768: Unsigned compared against 0 in satcan_ioctl().
Closes #4294
2021-03-05 14:00:07 -06:00
Ryan Long
5f0a7ceb81
gr_tmtc_1553.c: Unchecked return value from library (CID #1399785 )
...
CID 1399785: Unchecked return value from library in gr_tmtc_1553_init1().
Closes #4289
2021-03-05 14:00:07 -06:00
Ryan Long
4c0d9c5a57
gr_701.c: Unchecked return value from library (CID #1399783 )
...
CID 1399783: Unchecked return value from library in gr701_init1().
Closes #4288
2021-03-05 14:00:06 -06:00
Ryan Long
91e38f8a8f
gr_rasta_adcdac.c: Fix Unchecked return value from library (CID #1399780 )
...
CID 1399780: Unchecked return value from library in gr_rasta_adcdac_init1().
Closes #4287
2021-03-05 14:00:06 -06:00
Ryan Long
17d525b584
gr_rasta_tmtc.c: Fix Unchecked return value from library (CID #1399771 )
...
CID 1399771: Unchecked return value from library in gr_rasta_tmtc_init1().
Closes #4286
2021-03-05 14:00:06 -06:00
Ryan Long
b84ce61aa3
gr_rasta_io.c: Fix Unchecked return value from library (CID #1399763 )
...
CID 1399763: Unchecked return value from library in gr_rasta_io_init1().
Closes #4284
2021-03-05 14:00:06 -06:00
Ryan Long
0443601356
gr_rasta_spw_router.c: Fix Unchecked return value from library (CID #1399760 )
...
CID 1399760: Unchecked return value from library in gr_rasta_spw_router_init1().
Closes #4283
2021-03-05 14:00:05 -06:00
Ryan Long
13d6fae8dd
grtc.c: Fix four Missing break in switch Coverity errors
...
CID 1399761: Missing break in switch in process_dma().
CID 1399765: Missing break in switch in process_dma().
CID 1399766: Missing break in switch in process_dma().
CID 1399777: Missing break in switch in process_dma().
Closes #4277
2021-03-05 14:00:05 -06:00
Ryan Long
1eaf4e461f
grspw.c: Fix Unchecked return value (CID #1399781 )
...
CID 1399781: Unchecked return value in grspw_device_init().
Closes #4259
2021-03-05 14:00:05 -06:00
Ryan Long
fac1ff1820
grspw_pkt.c: Fix Dereference before null check (CID #1399846 )
...
CID 1399846: Dereference before null check in grspw_addr_ctrl().
Closes #4253
2021-02-19 14:05:50 -06:00
Ryan Long
1fd56a96fc
grtc.c: Fix Dereference before null check (CID #1399840 )
...
CID 1399840: Dereference before null check in grtc_ioctl().
Closes #4252
2021-02-19 14:05:49 -06:00
Ryan Long
4edcdf43c7
b1553rt.c: Fix Deference before null check (CID #1399830 )
...
CID 1399830: Dereference before null check in rt_control().
Closes #4251
2021-02-19 14:05:49 -06:00
Ryan Long
eff3d7c05f
b1553brm.c: Fix Dereference before null check (CID #1399829 )
...
CID 1399829: Dereference before null check in brm_control().
Closes #4250
2021-02-19 14:05:49 -06:00