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:
Ben Gras
2014-12-15 13:35:26 +01:00
parent b2a78a3ec4
commit 1e587f7d6d
5 changed files with 6 additions and 3 deletions

View File

@@ -44,6 +44,7 @@ static omap_timer_registers_t regs_v1 = {
.TOWR = OMAP3_TIMER_TOWR,
};
#if IS_AM335X
/* AM335X has a different ip block for the non 1ms timers */
static omap_timer_registers_t regs_v2 = {
.TIDR = AM335X_TIMER_TIDR,
@@ -67,6 +68,7 @@ static omap_timer_registers_t regs_v2 = {
.TOCR = -1, /* UNDEF */
.TOWR = -1 /* UNDEF */
};
#endif
/* which timers are in use? target-dependent.
* initialize at compile time.
@@ -264,8 +266,6 @@ beagle_clock_initialize(void)
static void beagle_clock_at_tick(void)
{
uint32_t tisr;
last_tick_nanoseconds = read_frc();
mmio_write(timer->base + timer->regs->TISR,

View File

@@ -136,7 +136,7 @@ rtems_status_code bsp_interrupt_facility_initialize(void)
/* Install generic interrupt handler */
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;
}

View File

@@ -26,6 +26,7 @@
#include <termios.h>
#include <rtems/termiostypes.h>
#include <rtems/console.h>
#include <libchip/serial.h>
#include "console_private.h"

View File

@@ -25,6 +25,7 @@
#include <termios.h>
#include <rtems/termiostypes.h>
#include <rtems/console.h>
#include <libchip/serial.h>
#include "console_private.h"

View File

@@ -25,6 +25,7 @@
#include <termios.h>
#include <rtems/termiostypes.h>
#include <rtems/console.h>
#include <libchip/serial.h>
#include "console_private.h"