Commit Graph

12715 Commits

Author SHA1 Message Date
Joel Sherrill
b587a200ee m68k/mcf5329/startup/bspstart.c: Add include of <bsp/bootcard.h> to fix warning and clean up 2014-10-09 10:11:56 -05:00
Joel Sherrill
736abcf15f m68k/mcf5235/startup/bspstart.c: Add include of <bsp/bootcard.h> to fix warning and clean up 2014-10-09 10:11:56 -05:00
Joel Sherrill
31ca050714 m68k/mcf5225x/startup/bspstart.c: Add include of <bsp/bootcard.h> to fix warning and clean up 2014-10-09 10:11:56 -05:00
Joel Sherrill
bb9448bc82 m68k/idp/startup/bspstart.c: Add include of <bsp/bootcard.h> to fix warning and clean up 2014-10-09 10:11:56 -05:00
Joel Sherrill
527a08bab7 m68k/av5282/startup/bspstart.c: Add include of <bsp/bootcard.h> to fix warning and clean up 2014-10-09 10:11:55 -05:00
Joel Sherrill
2a6fd65e56 bfin/eZKit533/startup/bspstart.c: Add include of <bsp/bootcard.h> to fix warning and clean up 2014-10-09 10:11:55 -05:00
Joel Sherrill
7307eb148a bfin/bf537Stamp/startup/bspstart.c: Add include of <bsp/bootcard.h> to fix warning and clean up 2014-10-09 10:11:55 -05:00
Joel Sherrill
d37ec8d8e9 arm/gba/startup/bspgetworkarea.c: Fix warning 2014-10-09 10:11:55 -05:00
Joel Sherrill
04bafb5395 bfin/TLL6527M/startup/bspstart.c: Add include of <bsp/bootcard.h> to fix warning and clean up 2014-10-09 10:11:55 -05:00
Joel Sherrill
ba1d939e89 arm/shared/abort/abort.c: Fix warnings and clean up 2014-10-09 10:11:55 -05:00
Joel Sherrill
8aec7f5177 arm/lpc24xx/misc/system-clocks.c: Fix warning 2014-10-09 10:11:55 -05:00
Joel Sherrill
d52494ec8f arm/lm3s69xx/startup/bspstart.c: Add include of <bsp/bootcard.h> to fix warning 2014-10-09 10:11:55 -05:00
Joel Sherrill
bcc6c700c0 arm/gdbarmsim/irq/irq.c: Fix warnings 2014-10-09 10:11:55 -05:00
Joel Sherrill
1a829d3ac8 arm/gdbarmsim/include/irq.h: Fix spacing 2014-10-09 10:11:55 -05:00
Joel Sherrill
237b34648c arm/gba/irq/irq.c: Fix warnings and clean up 2014-10-09 10:11:55 -05:00
Joel Sherrill
27144f447a arm/gba/clock/clockdrv.c: Fix warnings and clean up 2014-10-09 10:11:55 -05:00
Joel Sherrill
4e8de7e72a libcpu/powerpc/mpc6xx/clock/c_clock.c: Fix warning and clean up 2014-10-09 10:11:54 -05:00
Joel Sherrill
9073f554f8 libbsp/shared/console-polled.c: Fix warning 2014-10-09 10:11:54 -05:00
Joel Sherrill
56c6888bba libbsp/shared/clockdrv_shell.h: Fix warning 2014-10-09 10:11:54 -05:00
Joel Sherrill
0dae39033e libbsp/v850/shared/crt1.c: Remove warnings 2014-10-09 10:11:54 -05:00
Joel Sherrill
780eab400d libcpu/powerpc/mpc8xx/clock: Fix warnings and clean up 2014-10-09 10:11:54 -05:00
Joel Sherrill
46e72c8d5a sparc64/shared/clock/ckinit.c: Clean up formatting 2014-10-09 10:11:54 -05:00
Daniel Hellstrom
44bbee0984 LEON: let termios layer handle \n also in polling 2014-10-09 13:19:41 +02:00
Daniel Hellstrom
b4cebd0560 LEON: console print \r\n instead of \n\r 2014-10-09 13:19:41 +02:00
Daniel Hellstrom
a387e944f8 LEON3: use interrupt layer in clock driver
Manupilating the interrupt control registers directly instead
of going through the interrupt layer can be deceiving.
2014-10-09 13:19:40 +02:00
Daniel Hellstrom
6aacf085b8 SPARC BSPs: irq-shared.c code style clean-up 2014-10-09 13:19:40 +02:00
Daniel Hellstrom
fad33860ae LEON3 SMP: support static interrupt affinity
Changed LEON3_irq-mp to const also.
2014-10-09 13:18:01 +02:00
Daniel Hellstrom
fa40ec5288 SPARC BSPs: added CPU aware interrupt ctrl operations
The LEON2 and ERC32 maps the new macros to CPU0 since they do not
support SMP. With the LEON3 a specific CPU's interrupt controller
registers can be modified using macros.
2014-10-09 09:07:22 +02:00
Sebastian Huber
33ba808288 bsps/mcf5235: Fix warnings 2014-10-09 07:50:37 +02:00
Sebastian Huber
cf7df0e67a bsps/mcf548x: Fix warnings 2014-10-09 07:50:37 +02:00
Sebastian Huber
2734617ab6 bsps/mcf548x: Fix warnings 2014-10-09 07:50:37 +02:00
Sebastian Huber
16ed8f7bdf bsps/mcf548x: Fix warnings 2014-10-09 07:50:36 +02:00
Sebastian Huber
1d3025b5e7 bsp/genmcf548x: Fix warning 2014-10-09 07:50:36 +02:00
Sebastian Huber
8a9bdc565f libchip/serial: Task driven mode for NS16550 2014-10-07 16:35:20 +02:00
Sebastian Huber
2fd3e65fac libchip/serial: Fix NS16550 for pppstart()
Call rtems_termios_dequeue_characters() only in case all characters of
the last write handler invocation have been transmitted.  This avoids
problems with pppstart() since the start line discipline does not know
how many characters have been dequeued and assumes the maximum.
2014-10-07 16:35:20 +02:00
Sebastian Huber
6ec438e8a3 libchip/serial: Add alternative NS16550 driver
Use the Termios device API.
2014-10-07 16:35:20 +02:00
Sebastian Huber
d5cc923fea bsps: Add Termios console driver initialization
Add a simple Termios console driver using a table for statically
registered devices used in console_initialize() and dynamic installation
via console_device_install().
2014-10-07 16:35:20 +02:00
Sebastian Huber
7fd5e89c96 termios: Partially hide rtems_termios_tty
Move interrupt lock to device context and expose only this structure to
the read, write and set attributes device handler.  This makes these
device handler independent of the general Termios infrastructure
suitable for direct use in printk() support.
2014-10-07 16:35:13 +02:00
Sebastian Huber
a830cb864d termios: Separate flow control from normal handler 2014-10-07 16:27:51 +02:00
Daniel Hellstrom
74f5eaffb9 erc32,leon2: replace bsp_reset with SPARC fatal handler
Now that a SPARC fatal handler is defined, we no longer
need the BSP specific reset routine.
2014-10-06 14:52:16 +02:00
Daniel Hellstrom
5e92a40a38 LEON3: use CPU_Fatal_halt for halt
By removing the bsp_reset() mechanism and instead relying on the
CPU_Fatal_halt() routine SMP and single-core can halt by updating
the _Internal_errors_What_happened structure and set the state to
SYSTEM_STATE_TERMINATED (the generic way). This will be better
for test scripts and debugger that can generically look into why
the OS stopped.

For SMP systems, only the fatal-reporting CPU waits until all other
CPUs are powered down (with a time out of one clock tick). The
reason why a fatal stop happend may be because CPU0 was soft-locked
up so we can never trust that CPU0 should do the halt for us.
2014-10-06 14:44:44 +02:00
Daniel Hellstrom
9bd7b3b1a2 SPARC: Fatal_halt use source and exit codes
The Fatal_halt handler now have two options, either halt
as before or enter system error state to return to
debugger or simulator. The exit-code is now also
propagated to the debugger which is very useful for
testing.

The CPU_Fatal_halt handler was split up into two, since
the only the LEON3 support the CPU power down.

The LEON3 halt now uses the power-down instruction to save
CPU power. This doesn't stop a potential watch-dog timer
from expiring.
2014-10-06 13:19:18 +02:00
Daniel Hellstrom
ce4a7ae9da SPARC: add BSP specific error handler
Instead of calling the system call TA instruction directly it
is better paractise to isolate the trap implementation to the
system call functions.

BSP_fatal_exit() is added.
2014-10-06 09:34:24 +02:00
Daniel Hellstrom
dfc2786d4d SPARC BSPs: remove BSP_fatal_return unreached code 2014-10-06 09:34:24 +02:00
Tomasz Gregorek
7db695311b bsp/stm32f4XXXX: System clock configuration
Added simple math to caclulate register values for the PLL
and for the prescalers. It will try to keep 48MHz for the USB OTG FS.
Also it will set latency on the Flash memory for the high speeds.

Limitations:
It is assumed that 1MHz resolution is enough.
Best fits for the clocks are achieved with multiplies of 42MHz.
Even though APB1, APB2 and AHB are calculated user is still required
to provide correct values for the bsp configuration for the:
STM32F4_PCLK1
STM32F4_PCLK2
STM32F4_HCLK (= system clock)
as those are used for the peripheral clocking calculations.
2014-10-02 07:54:52 +02:00
Moroz.Oleg
9a8b29848d Fix assertion "BUF != NULL" for i386
BSP_uart_termios_write_com1 and BSP_uart_termios_write_com2
2014-10-02 07:31:58 +02:00
Daniel Cederman
93b000e645 bsp/leon3: Replace the define LEON3_MP_IRQ with a weakly linked variable
The LEON3_MP_IRQ define is used to pick the IRQ to be used by the
shared memory driver and for inter-processor interrupts. On some LEON3
systems, for example the GR712RC, the default value of 14 is not suitable.
To make this value configurable from the application, it is replaced with
a weakly linked variable that can be overridden from the application.
2014-10-02 07:29:05 +02:00
Hesham ALMatary
fbe59f7c67 or1ksim: Console: implement uart_read_polled
Implement uart_read_polled which is needed for any application that
reads input from users. It works fine with pppd, capture, and all
termios tests.
2014-09-29 14:37:25 -05:00
Sebastian Huber
79bbb1cb67 bsp/genmcf548x: Use inline cache implementation 2014-09-23 10:46:37 +02:00
Sebastian Huber
c3bf343052 bsp/genmcf548x: Delete duplicate network config 2014-09-23 10:46:37 +02:00