forked from Imagelibrary/rtems
bsp/beagle: Fix some warnings
The extra includes in console_*.c are to solve a 'no previous prototype' warning. Solves #2212 in trac.
This commit is contained in:
@@ -44,6 +44,7 @@ static omap_timer_registers_t regs_v1 = {
|
|||||||
.TOWR = OMAP3_TIMER_TOWR,
|
.TOWR = OMAP3_TIMER_TOWR,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if IS_AM335X
|
||||||
/* AM335X has a different ip block for the non 1ms timers */
|
/* AM335X has a different ip block for the non 1ms timers */
|
||||||
static omap_timer_registers_t regs_v2 = {
|
static omap_timer_registers_t regs_v2 = {
|
||||||
.TIDR = AM335X_TIMER_TIDR,
|
.TIDR = AM335X_TIMER_TIDR,
|
||||||
@@ -67,6 +68,7 @@ static omap_timer_registers_t regs_v2 = {
|
|||||||
.TOCR = -1, /* UNDEF */
|
.TOCR = -1, /* UNDEF */
|
||||||
.TOWR = -1 /* UNDEF */
|
.TOWR = -1 /* UNDEF */
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
/* which timers are in use? target-dependent.
|
/* which timers are in use? target-dependent.
|
||||||
* initialize at compile time.
|
* initialize at compile time.
|
||||||
@@ -264,8 +266,6 @@ beagle_clock_initialize(void)
|
|||||||
|
|
||||||
static void beagle_clock_at_tick(void)
|
static void beagle_clock_at_tick(void)
|
||||||
{
|
{
|
||||||
uint32_t tisr;
|
|
||||||
|
|
||||||
last_tick_nanoseconds = read_frc();
|
last_tick_nanoseconds = read_frc();
|
||||||
|
|
||||||
mmio_write(timer->base + timer->regs->TISR,
|
mmio_write(timer->base + timer->regs->TISR,
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ rtems_status_code bsp_interrupt_facility_initialize(void)
|
|||||||
|
|
||||||
/* Install generic interrupt handler */
|
/* Install generic interrupt handler */
|
||||||
arm_cp15_set_exception_handler(ARM_EXCEPTION_IRQ, _ARMV4_Exception_interrupt);
|
arm_cp15_set_exception_handler(ARM_EXCEPTION_IRQ, _ARMV4_Exception_interrupt);
|
||||||
arm_cp15_set_vector_base_address((uint32_t) bsp_vector_table_begin);
|
arm_cp15_set_vector_base_address(bsp_vector_table_begin);
|
||||||
|
|
||||||
return RTEMS_SUCCESSFUL;
|
return RTEMS_SUCCESSFUL;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,6 +26,7 @@
|
|||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
|
|
||||||
#include <rtems/termiostypes.h>
|
#include <rtems/termiostypes.h>
|
||||||
|
#include <rtems/console.h>
|
||||||
#include <libchip/serial.h>
|
#include <libchip/serial.h>
|
||||||
#include "console_private.h"
|
#include "console_private.h"
|
||||||
|
|
||||||
|
|||||||
@@ -25,6 +25,7 @@
|
|||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
|
|
||||||
#include <rtems/termiostypes.h>
|
#include <rtems/termiostypes.h>
|
||||||
|
#include <rtems/console.h>
|
||||||
#include <libchip/serial.h>
|
#include <libchip/serial.h>
|
||||||
#include "console_private.h"
|
#include "console_private.h"
|
||||||
|
|
||||||
|
|||||||
@@ -25,6 +25,7 @@
|
|||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
|
|
||||||
#include <rtems/termiostypes.h>
|
#include <rtems/termiostypes.h>
|
||||||
|
#include <rtems/console.h>
|
||||||
#include <libchip/serial.h>
|
#include <libchip/serial.h>
|
||||||
#include "console_private.h"
|
#include "console_private.h"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user