forked from Imagelibrary/rtems
Convert to "bool".
This commit is contained in:
@@ -36,7 +36,7 @@
|
|||||||
/*=========================================================================*\
|
/*=========================================================================*\
|
||||||
| Function: |
|
| Function: |
|
||||||
\*-------------------------------------------------------------------------*/
|
\*-------------------------------------------------------------------------*/
|
||||||
boolean pc386_ide_probe
|
bool pc386_ide_probe
|
||||||
(
|
(
|
||||||
/*-------------------------------------------------------------------------*\
|
/*-------------------------------------------------------------------------*\
|
||||||
| Purpose: |
|
| Purpose: |
|
||||||
@@ -48,10 +48,10 @@ boolean pc386_ide_probe
|
|||||||
)
|
)
|
||||||
/*-------------------------------------------------------------------------*\
|
/*-------------------------------------------------------------------------*\
|
||||||
| Return Value: |
|
| Return Value: |
|
||||||
| TRUE, when flash disk available |
|
| true, when flash disk available |
|
||||||
\*=========================================================================*/
|
\*=========================================================================*/
|
||||||
{
|
{
|
||||||
boolean ide_card_plugged = TRUE; /* assume: we have a disk here */
|
bool ide_card_plugged = true; /* assume: we have a disk here */
|
||||||
|
|
||||||
return ide_card_plugged;
|
return ide_card_plugged;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ static rtems_status_code m360_spi_char_mode
|
|||||||
\*-------------------------------------------------------------------------*/
|
\*-------------------------------------------------------------------------*/
|
||||||
m360_spi_softc_t *softc_ptr, /* handle */
|
m360_spi_softc_t *softc_ptr, /* handle */
|
||||||
uint32_t bits_per_char, /* bits per character */
|
uint32_t bits_per_char, /* bits per character */
|
||||||
boolean lsb_first, /* TRUE: send LSB first */
|
bool lsb_first, /* TRUE: send LSB first */
|
||||||
uint16_t *spimode /* result value */
|
uint16_t *spimode /* result value */
|
||||||
)
|
)
|
||||||
/*-------------------------------------------------------------------------*\
|
/*-------------------------------------------------------------------------*\
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
#include <ds1307.h>
|
#include <ds1307.h>
|
||||||
|
|
||||||
/* Forward function declaration */
|
/* Forward function declaration */
|
||||||
boolean mcf5206elite_ds1307_probe(int minor);
|
bool mcf5206elite_ds1307_probe(int minor);
|
||||||
|
|
||||||
extern rtc_fns ds1307_fns;
|
extern rtc_fns ds1307_fns;
|
||||||
|
|
||||||
@@ -55,7 +55,7 @@ rtems_device_minor_number RTC_Minor;
|
|||||||
* RETURNS:
|
* RETURNS:
|
||||||
* TRUE, if RTC device is present
|
* TRUE, if RTC device is present
|
||||||
*/
|
*/
|
||||||
boolean
|
bool
|
||||||
mcf5206elite_ds1307_probe(int minor)
|
mcf5206elite_ds1307_probe(int minor)
|
||||||
{
|
{
|
||||||
int try = 0;
|
int try = 0;
|
||||||
@@ -65,7 +65,7 @@ mcf5206elite_ds1307_probe(int minor)
|
|||||||
i2c_address addr;
|
i2c_address addr;
|
||||||
|
|
||||||
if (minor >= NUM_RTCS)
|
if (minor >= NUM_RTCS)
|
||||||
return FALSE;
|
return false;
|
||||||
|
|
||||||
rtc = RTC_Table + minor;
|
rtc = RTC_Table + minor;
|
||||||
|
|
||||||
@@ -74,11 +74,11 @@ mcf5206elite_ds1307_probe(int minor)
|
|||||||
do {
|
do {
|
||||||
status = i2c_wrbyte(bus, addr, 0);
|
status = i2c_wrbyte(bus, addr, 0);
|
||||||
if (status == I2C_NO_DEVICE)
|
if (status == I2C_NO_DEVICE)
|
||||||
return FALSE;
|
return false;
|
||||||
try++;
|
try++;
|
||||||
} while ((try < 15) && (status != I2C_SUCCESSFUL));
|
} while ((try < 15) && (status != I2C_SUCCESSFUL));
|
||||||
if (status == I2C_SUCCESSFUL)
|
if (status == I2C_SUCCESSFUL)
|
||||||
return TRUE;
|
return true;
|
||||||
else
|
else
|
||||||
return FALSE;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ void bsp_cleanup( void );
|
|||||||
|
|
||||||
void volatile _Internal_error_Occurred(
|
void volatile _Internal_error_Occurred(
|
||||||
Internal_errors_Source the_source,
|
Internal_errors_Source the_source,
|
||||||
boolean is_internal,
|
bool is_internal,
|
||||||
uint32_t the_error
|
uint32_t the_error
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -150,7 +150,7 @@ void breakpoint(void);
|
|||||||
/* at least NUMREGBYTES*2 are needed for register packets */
|
/* at least NUMREGBYTES*2 are needed for register packets */
|
||||||
#define BUFMAX 400
|
#define BUFMAX 400
|
||||||
|
|
||||||
static char initialized; /* boolean flag. != 0 means we've been initialized */
|
static bool initialized = false; /* boolean flag. != 0 means we've been initialized */
|
||||||
|
|
||||||
int remote_debug;
|
int remote_debug;
|
||||||
/* debug > 0 prints ill-formed commands in valid packets & checksum errors */
|
/* debug > 0 prints ill-formed commands in valid packets & checksum errors */
|
||||||
@@ -1065,7 +1065,7 @@ void set_debug_traps()
|
|||||||
exceptionHook = (ExceptionHook) remcomHandler;
|
exceptionHook = (ExceptionHook) remcomHandler;
|
||||||
}
|
}
|
||||||
|
|
||||||
initialized = 1;
|
initialized = true;
|
||||||
|
|
||||||
#if defined(UPDATE_DISPLAY)
|
#if defined(UPDATE_DISPLAY)
|
||||||
UPDATE_DISPLAY("gdb ");
|
UPDATE_DISPLAY("gdb ");
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ initializeRemcomErrorFrame ();
|
|||||||
/* at least NUMREGBYTES*2 are needed for register packets */
|
/* at least NUMREGBYTES*2 are needed for register packets */
|
||||||
#define BUFMAX 400
|
#define BUFMAX 400
|
||||||
|
|
||||||
static char initialized; /* boolean flag. != 0 means we've been initialized */
|
static bool initialized = false ; /* boolean flag. != 0 means we've been initialized */
|
||||||
|
|
||||||
int remote_debug;
|
int remote_debug;
|
||||||
/* debug > 0 prints ill-formed commands in valid packets & checksum errors */
|
/* debug > 0 prints ill-formed commands in valid packets & checksum errors */
|
||||||
@@ -1279,7 +1279,7 @@ void set_debug_traps()
|
|||||||
exceptionHook = remcomHandler;
|
exceptionHook = remcomHandler;
|
||||||
}
|
}
|
||||||
|
|
||||||
initialized = 1;
|
initialized = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -27,18 +27,18 @@
|
|||||||
/*
|
/*
|
||||||
* Configuration specific probe routines
|
* Configuration specific probe routines
|
||||||
*/
|
*/
|
||||||
static boolean config_68360_scc_base_probe_1(int minor);
|
static bool config_68360_scc_base_probe_1(int minor);
|
||||||
static boolean config_68360_scc_base_probe_2(int minor);
|
static bool config_68360_scc_base_probe_2(int minor);
|
||||||
static boolean config_68360_scc_base_probe_3(int minor);
|
static bool config_68360_scc_base_probe_3(int minor);
|
||||||
static boolean config_68360_scc_base_probe_4(int minor);
|
static bool config_68360_scc_base_probe_4(int minor);
|
||||||
static boolean config_68360_scc_base_probe_5(int minor);
|
static bool config_68360_scc_base_probe_5(int minor);
|
||||||
static boolean config_68360_scc_base_probe_6(int minor);
|
static bool config_68360_scc_base_probe_6(int minor);
|
||||||
static boolean config_68360_scc_base_probe_7(int minor);
|
static bool config_68360_scc_base_probe_7(int minor);
|
||||||
static boolean config_68360_scc_base_probe_8(int minor);
|
static bool config_68360_scc_base_probe_8(int minor);
|
||||||
static boolean config_68360_scc_base_probe_9(int minor);
|
static bool config_68360_scc_base_probe_9(int minor);
|
||||||
static boolean config_68360_scc_base_probe_10(int minor);
|
static bool config_68360_scc_base_probe_10(int minor);
|
||||||
static boolean config_68360_scc_base_probe_11(int minor);
|
static bool config_68360_scc_base_probe_11(int minor);
|
||||||
static boolean config_68360_scc_base_probe_12(int minor);
|
static bool config_68360_scc_base_probe_12(int minor);
|
||||||
|
|
||||||
extern console_fns mc68360_scc_fns;
|
extern console_fns mc68360_scc_fns;
|
||||||
|
|
||||||
@@ -391,43 +391,43 @@ static bool config_68360_scc_base_probe_2( int minor ) {
|
|||||||
return config_68360_scc_base_probe(minor, 0, 11, 2);
|
return config_68360_scc_base_probe(minor, 0, 11, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
static boolean config_68360_scc_base_probe_3( int minor ) {
|
static bool config_68360_scc_base_probe_3( int minor ) {
|
||||||
return config_68360_scc_base_probe( minor, 0, 11, 3);
|
return config_68360_scc_base_probe( minor, 0, 11, 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
static boolean config_68360_scc_base_probe_4( int minor ) {
|
static bool config_68360_scc_base_probe_4( int minor ) {
|
||||||
return config_68360_scc_base_probe( minor, 0, 11, 4);
|
return config_68360_scc_base_probe( minor, 0, 11, 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
static boolean config_68360_scc_base_probe_5( int minor ) {
|
static bool config_68360_scc_base_probe_5( int minor ) {
|
||||||
return config_68360_scc_base_probe( minor, 0, 16, 1);
|
return config_68360_scc_base_probe( minor, 0, 16, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static boolean config_68360_scc_base_probe_6( int minor ) {
|
static bool config_68360_scc_base_probe_6( int minor ) {
|
||||||
return config_68360_scc_base_probe( minor, 0, 16, 2);
|
return config_68360_scc_base_probe( minor, 0, 16, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
static boolean config_68360_scc_base_probe_7( int minor ) {
|
static bool config_68360_scc_base_probe_7( int minor ) {
|
||||||
return config_68360_scc_base_probe( minor, 0, 16, 3);
|
return config_68360_scc_base_probe( minor, 0, 16, 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
static boolean config_68360_scc_base_probe_8( int minor ) {
|
static bool config_68360_scc_base_probe_8( int minor ) {
|
||||||
return config_68360_scc_base_probe( minor, 0, 16, 4);
|
return config_68360_scc_base_probe( minor, 0, 16, 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
static boolean config_68360_scc_base_probe_9( int minor ) {
|
static bool config_68360_scc_base_probe_9( int minor ) {
|
||||||
return config_68360_scc_base_probe( minor, 0, 15, 1);
|
return config_68360_scc_base_probe( minor, 0, 15, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static boolean config_68360_scc_base_probe_10( int minor ) {
|
static bool config_68360_scc_base_probe_10( int minor ) {
|
||||||
return config_68360_scc_base_probe( minor, 0, 15, 2);
|
return config_68360_scc_base_probe( minor, 0, 15, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
static boolean config_68360_scc_base_probe_11( int minor ) {
|
static bool config_68360_scc_base_probe_11( int minor ) {
|
||||||
return config_68360_scc_base_probe( minor, 0, 15, 3);
|
return config_68360_scc_base_probe( minor, 0, 15, 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
static boolean config_68360_scc_base_probe_12( int minor ) {
|
static bool config_68360_scc_base_probe_12( int minor ) {
|
||||||
return config_68360_scc_base_probe( minor, 0, 15, 4);
|
return config_68360_scc_base_probe( minor, 0, 15, 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,4 +35,4 @@ extern console_tbl Console_Port_Tbl[];
|
|||||||
extern console_data Console_Port_Data[];
|
extern console_data Console_Port_Data[];
|
||||||
extern unsigned long Console_Port_Count;
|
extern unsigned long Console_Port_Count;
|
||||||
|
|
||||||
boolean Console_Port_Tbl_Init_ppc8245(int minor);
|
bool Console_Port_Tbl_Init_ppc8245(int minor);
|
||||||
|
|||||||
@@ -201,7 +201,7 @@ static rtems_irq_connect_data bestcomm_glue_irq_data =
|
|||||||
(rtems_irq_is_enabled) bestcomm_glue_isOn
|
(rtems_irq_is_enabled) bestcomm_glue_isOn
|
||||||
};
|
};
|
||||||
|
|
||||||
static boolean bestcomm_glue_is_initialized = FALSE;
|
static bool bestcomm_glue_is_initialized = false;
|
||||||
/*=========================================================================*\
|
/*=========================================================================*\
|
||||||
| Function: |
|
| Function: |
|
||||||
\*-------------------------------------------------------------------------*/
|
\*-------------------------------------------------------------------------*/
|
||||||
@@ -225,7 +225,7 @@ void bestcomm_glue_init
|
|||||||
\*=========================================================================*/
|
\*=========================================================================*/
|
||||||
{
|
{
|
||||||
if (!bestcomm_glue_is_initialized) {
|
if (!bestcomm_glue_is_initialized) {
|
||||||
bestcomm_glue_is_initialized = TRUE;
|
bestcomm_glue_is_initialized = true;
|
||||||
/*
|
/*
|
||||||
* Set task bar to begin of sram
|
* Set task bar to begin of sram
|
||||||
*/
|
*/
|
||||||
@@ -259,4 +259,3 @@ void bestcomm_glue_init
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ static TaskId pcmcia_ide_txTaskId; /* SDMA TX task ID */
|
|||||||
#define PCMCIA_IDE_RD_SECTOR_SIZE 512 /* FIXME: make this better... */
|
#define PCMCIA_IDE_RD_SECTOR_SIZE 512 /* FIXME: make this better... */
|
||||||
#define PCMCIA_IDE_WR_SECTOR_SIZE 512 /* FIXME: make this better... */
|
#define PCMCIA_IDE_WR_SECTOR_SIZE 512 /* FIXME: make this better... */
|
||||||
|
|
||||||
boolean mpc5200_dma_task_started[2] = {FALSE,FALSE};
|
bool mpc5200_dma_task_started[2] = {false,false};
|
||||||
#endif /* IDE_USE_DMA */
|
#endif /* IDE_USE_DMA */
|
||||||
|
|
||||||
#if IDE_USE_STATISTICS
|
#if IDE_USE_STATISTICS
|
||||||
@@ -143,13 +143,13 @@ extern volatile uint32_t * mpc5200_ata_drive_regs[];
|
|||||||
extern uint32_t ata_pio_timings[2][6];
|
extern uint32_t ata_pio_timings[2][6];
|
||||||
|
|
||||||
void mpc5200_pcmciaide_dma_blockop(
|
void mpc5200_pcmciaide_dma_blockop(
|
||||||
boolean, int, uint16_t, rtems_blkdev_sg_buffer *, uint32_t *, uint32_t *);
|
bool, int, uint16_t, rtems_blkdev_sg_buffer *, uint32_t *, uint32_t *);
|
||||||
/*
|
/*
|
||||||
* support functions for PCMCIA IDE IF
|
* support functions for PCMCIA IDE IF
|
||||||
*/
|
*/
|
||||||
boolean mpc5200_pcmciaide_probe(int minor)
|
bool mpc5200_pcmciaide_probe(int minor)
|
||||||
{
|
{
|
||||||
boolean ide_card_plugged = FALSE; /* assume: we don't have a card plugged in */
|
bool ide_card_plugged = false; /* assume: we don't have a card plugged in */
|
||||||
struct mpc5200_gpt *gpt = (struct mpc5200_gpt *)(&mpc5200.gpt[GPT2]);
|
struct mpc5200_gpt *gpt = (struct mpc5200_gpt *)(&mpc5200.gpt[GPT2]);
|
||||||
|
|
||||||
/* enable card detection on GPT2 */
|
/* enable card detection on GPT2 */
|
||||||
@@ -158,10 +158,10 @@ boolean mpc5200_pcmciaide_probe(int minor)
|
|||||||
#if defined (BRS5L)
|
#if defined (BRS5L)
|
||||||
/* Check for card detection (-CD0) */
|
/* Check for card detection (-CD0) */
|
||||||
if((gpt->status) & GPT_STATUS_PIN)
|
if((gpt->status) & GPT_STATUS_PIN)
|
||||||
ide_card_plugged = FALSE;
|
ide_card_plugged = false;
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
ide_card_plugged = TRUE;
|
ide_card_plugged = true;
|
||||||
|
|
||||||
return ide_card_plugged;
|
return ide_card_plugged;
|
||||||
|
|
||||||
@@ -318,7 +318,7 @@ void mpc5200_pcmciaide_dma_init(int minor)
|
|||||||
bestcomm_glue_irq_install(TASK_GEN_DP_BD_0,pcmcia_ide_recv_dmairq_hdl,NULL);
|
bestcomm_glue_irq_install(TASK_GEN_DP_BD_0,pcmcia_ide_recv_dmairq_hdl,NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
void mpc5200_pcmciaide_dma_blockop(boolean is_write,
|
void mpc5200_pcmciaide_dma_blockop(bool is_write,
|
||||||
int minor,
|
int minor,
|
||||||
uint16_t block_size,
|
uint16_t block_size,
|
||||||
rtems_blkdev_sg_buffer *bufs,
|
rtems_blkdev_sg_buffer *bufs,
|
||||||
@@ -338,7 +338,7 @@ void mpc5200_pcmciaide_dma_blockop(boolean is_write,
|
|||||||
rtems_status_code rc = RTEMS_SUCCESSFUL;
|
rtems_status_code rc = RTEMS_SUCCESSFUL;
|
||||||
rtems_event_set events;
|
rtems_event_set events;
|
||||||
BDIdx nxt_bd_idx;
|
BDIdx nxt_bd_idx;
|
||||||
boolean use_irq = (_System_state_Current == SYSTEM_STATE_UP);
|
bool use_irq = (_System_state_Current == SYSTEM_STATE_UP);
|
||||||
/*
|
/*
|
||||||
* determine number of blocks
|
* determine number of blocks
|
||||||
*/
|
*/
|
||||||
@@ -454,7 +454,7 @@ void mpc5200_pcmciaide_read_block(int minor, uint16_t block_size, rtems_blkdev_s
|
|||||||
uint16_t cnt = 0;
|
uint16_t cnt = 0;
|
||||||
uint16_t *lbuf = (uint16_t*)((uint8_t*)(bufs[(*cbuf)].buffer)+(*pos));
|
uint16_t *lbuf = (uint16_t*)((uint8_t*)(bufs[(*cbuf)].buffer)+(*pos));
|
||||||
uint32_t llength = bufs[(*cbuf)].length;
|
uint32_t llength = bufs[(*cbuf)].length;
|
||||||
boolean use_dma;
|
bool use_dma;
|
||||||
|
|
||||||
#if IDE_USE_STATISTICS
|
#if IDE_USE_STATISTICS
|
||||||
mpc5200_pcmciaide_read_block_call_cnt++;
|
mpc5200_pcmciaide_read_block_call_cnt++;
|
||||||
@@ -465,10 +465,10 @@ void mpc5200_pcmciaide_read_block(int minor, uint16_t block_size, rtems_blkdev_s
|
|||||||
* then do not use DMA
|
* then do not use DMA
|
||||||
* Is this needed?
|
* Is this needed?
|
||||||
*/
|
*/
|
||||||
use_dma = TRUE;
|
use_dma = true;
|
||||||
/* use_dma = FALSE; */
|
/* use_dma = false; */
|
||||||
#else
|
#else
|
||||||
use_dma = FALSE;
|
use_dma = false;
|
||||||
#endif
|
#endif
|
||||||
if (use_dma) {
|
if (use_dma) {
|
||||||
/*
|
/*
|
||||||
@@ -547,7 +547,7 @@ void mpc5200_pcmciaide_write_block(int minor, uint16_t block_size,
|
|||||||
uint16_t cnt = 0;
|
uint16_t cnt = 0;
|
||||||
uint16_t *lbuf = (uint16_t *)((uint8_t *)(bufs[(*cbuf)].buffer) + (*pos));
|
uint16_t *lbuf = (uint16_t *)((uint8_t *)(bufs[(*cbuf)].buffer) + (*pos));
|
||||||
uint32_t llength = bufs[(*cbuf)].length;
|
uint32_t llength = bufs[(*cbuf)].length;
|
||||||
boolean use_dma;
|
bool use_dma;
|
||||||
|
|
||||||
#if IDE_USE_STATISTICS
|
#if IDE_USE_STATISTICS
|
||||||
mpc5200_pcmciaide_write_block_call_cnt++;
|
mpc5200_pcmciaide_write_block_call_cnt++;
|
||||||
@@ -558,9 +558,9 @@ void mpc5200_pcmciaide_write_block(int minor, uint16_t block_size,
|
|||||||
* then do not use DMA
|
* then do not use DMA
|
||||||
* Is this needed?
|
* Is this needed?
|
||||||
*/
|
*/
|
||||||
use_dma = TRUE;
|
use_dma = true;
|
||||||
#else
|
#else
|
||||||
use_dma = FALSE;
|
use_dma = false;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (use_dma) {
|
if (use_dma) {
|
||||||
@@ -577,7 +577,7 @@ void mpc5200_pcmciaide_write_block(int minor, uint16_t block_size,
|
|||||||
* only last (available) DMA BD sends interrupt
|
* only last (available) DMA BD sends interrupt
|
||||||
* DMA BDs may get ready as soon as possible
|
* DMA BDs may get ready as soon as possible
|
||||||
*/
|
*/
|
||||||
mpc5200_pcmciaide_dma_blockop(TRUE, /* write opeartion */
|
mpc5200_pcmciaide_dma_blockop(true, /* write opeartion */
|
||||||
minor,
|
minor,
|
||||||
block_size,bufs,cbuf,pos);
|
block_size,bufs,cbuf,pos);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
#include "../tod/pcf8563.h"
|
#include "../tod/pcf8563.h"
|
||||||
|
|
||||||
/* Forward function declaration */
|
/* Forward function declaration */
|
||||||
boolean mpc5200_pcf8563_probe(int minor);
|
bool mpc5200_pcf8563_probe(int minor);
|
||||||
|
|
||||||
extern rtc_fns pcf8563_fns;
|
extern rtc_fns pcf8563_fns;
|
||||||
|
|
||||||
@@ -77,7 +77,7 @@ rtems_device_minor_number RTC_Minor;
|
|||||||
* RETURNS:
|
* RETURNS:
|
||||||
* TRUE, if RTC device is present
|
* TRUE, if RTC device is present
|
||||||
*/
|
*/
|
||||||
boolean
|
bool
|
||||||
mpc5200_pcf8563_probe(int minor)
|
mpc5200_pcf8563_probe(int minor)
|
||||||
{
|
{
|
||||||
int try = 0;
|
int try = 0;
|
||||||
@@ -87,7 +87,7 @@ mpc5200_pcf8563_probe(int minor)
|
|||||||
i2c_address addr;
|
i2c_address addr;
|
||||||
|
|
||||||
if (minor >= NUM_RTCS)
|
if (minor >= NUM_RTCS)
|
||||||
return FALSE;
|
return false;
|
||||||
|
|
||||||
rtc = RTC_Table + minor;
|
rtc = RTC_Table + minor;
|
||||||
|
|
||||||
@@ -96,11 +96,11 @@ mpc5200_pcf8563_probe(int minor)
|
|||||||
do {
|
do {
|
||||||
status = i2c_wrbyte(bus, addr, 0);
|
status = i2c_wrbyte(bus, addr, 0);
|
||||||
if (status == I2C_NO_DEVICE)
|
if (status == I2C_NO_DEVICE)
|
||||||
return FALSE;
|
return false;
|
||||||
try++;
|
try++;
|
||||||
} while ((try < 15) && (status != I2C_SUCCESSFUL));
|
} while ((try < 15) && (status != I2C_SUCCESSFUL));
|
||||||
if (status == I2C_SUCCESSFUL)
|
if (status == I2C_SUCCESSFUL)
|
||||||
return TRUE;
|
return true;
|
||||||
else
|
else
|
||||||
return FALSE;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,4 +35,4 @@ extern console_tbl Console_Port_Tbl[];
|
|||||||
extern console_data Console_Port_Data[];
|
extern console_data Console_Port_Data[];
|
||||||
extern unsigned long Console_Port_Count;
|
extern unsigned long Console_Port_Count;
|
||||||
|
|
||||||
boolean Console_Port_Tbl_Init_ppc8245(int minor);
|
bool Console_Port_Tbl_Init_ppc8245(int minor);
|
||||||
|
|||||||
@@ -81,7 +81,7 @@
|
|||||||
|
|
||||||
/* Expected by clock.c */
|
/* Expected by clock.c */
|
||||||
uint32_t bsp_clicks_per_usec;
|
uint32_t bsp_clicks_per_usec;
|
||||||
boolean bsp_timer_internal_clock; /* TRUE, when timer runs with CPU clk */
|
bool bsp_timer_internal_clock; /* true, when timer runs with CPU clk */
|
||||||
uint32_t bsp_timer_least_valid;
|
uint32_t bsp_timer_least_valid;
|
||||||
uint32_t bsp_timer_average_overhead;
|
uint32_t bsp_timer_average_overhead;
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
/*=========================================================================*\
|
/*=========================================================================*\
|
||||||
| Function: |
|
| Function: |
|
||||||
\*-------------------------------------------------------------------------*/
|
\*-------------------------------------------------------------------------*/
|
||||||
boolean mbx8xx_pcmciaide_probe
|
bool mbx8xx_pcmciaide_probe
|
||||||
(
|
(
|
||||||
/*-------------------------------------------------------------------------*\
|
/*-------------------------------------------------------------------------*\
|
||||||
| Purpose: |
|
| Purpose: |
|
||||||
@@ -51,17 +51,17 @@ boolean mbx8xx_pcmciaide_probe
|
|||||||
)
|
)
|
||||||
/*-------------------------------------------------------------------------*\
|
/*-------------------------------------------------------------------------*\
|
||||||
| Return Value: |
|
| Return Value: |
|
||||||
| TRUE, when flash disk available |
|
| true, when flash disk available |
|
||||||
\*=========================================================================*/
|
\*=========================================================================*/
|
||||||
{
|
{
|
||||||
boolean ide_card_plugged = TRUE; /* assume: we have a card plugged in */
|
bool ide_card_plugged = true; /* assume: we have a card plugged in */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* check, that the CD# pins are low -> a PCMCIA card is plugged in
|
* check, that the CD# pins are low -> a PCMCIA card is plugged in
|
||||||
*/
|
*/
|
||||||
if ((m8xx.pipr
|
if ((m8xx.pipr
|
||||||
& (M8xx_PCMCIA_PIPR_CACD1 | M8xx_PCMCIA_PIPR_CACD2)) != 0x00) {
|
& (M8xx_PCMCIA_PIPR_CACD1 | M8xx_PCMCIA_PIPR_CACD2)) != 0x00) {
|
||||||
ide_card_plugged = FALSE;
|
ide_card_plugged = false;
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* set supply voltage to 3.3V
|
* set supply voltage to 3.3V
|
||||||
@@ -77,8 +77,8 @@ boolean mbx8xx_pcmciaide_probe
|
|||||||
if (ide_card_plugged) {
|
if (ide_card_plugged) {
|
||||||
#define CIS_BYTE(pos) (((uint8_t*)PCMCIA_ATTRB_ADDR)[(pos)*2])
|
#define CIS_BYTE(pos) (((uint8_t*)PCMCIA_ATTRB_ADDR)[(pos)*2])
|
||||||
int cis_pos = 0;
|
int cis_pos = 0;
|
||||||
boolean fixed_disk_tuple_found = FALSE;
|
bool fixed_disk_tuple_found = false;
|
||||||
boolean ata_disk_tuple_found = FALSE;
|
bool ata_disk_tuple_found = false;
|
||||||
|
|
||||||
while ((cis_pos < 256) &&
|
while ((cis_pos < 256) &&
|
||||||
(CIS_BYTE(cis_pos) != 0xff) &&
|
(CIS_BYTE(cis_pos) != 0xff) &&
|
||||||
@@ -88,12 +88,12 @@ boolean mbx8xx_pcmciaide_probe
|
|||||||
*/
|
*/
|
||||||
if ((CIS_BYTE(cis_pos ) == 0x21) &&
|
if ((CIS_BYTE(cis_pos ) == 0x21) &&
|
||||||
(CIS_BYTE(cis_pos+2) == 0x04)) {
|
(CIS_BYTE(cis_pos+2) == 0x04)) {
|
||||||
fixed_disk_tuple_found = TRUE;
|
fixed_disk_tuple_found = true;
|
||||||
}
|
}
|
||||||
else if ((CIS_BYTE(cis_pos ) == 0x22) &&
|
else if ((CIS_BYTE(cis_pos ) == 0x22) &&
|
||||||
(CIS_BYTE(cis_pos+2) == 0x01) &&
|
(CIS_BYTE(cis_pos+2) == 0x01) &&
|
||||||
(CIS_BYTE(cis_pos+3) == 0x01)) {
|
(CIS_BYTE(cis_pos+3) == 0x01)) {
|
||||||
ata_disk_tuple_found = TRUE;
|
ata_disk_tuple_found = true;
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* advance using the length field
|
* advance using the length field
|
||||||
|
|||||||
@@ -515,7 +515,7 @@ void _ThreadProcessSignalsFromIrq (BSP_Exception_frame* ctx)
|
|||||||
*/
|
*/
|
||||||
if ( _Thread_Do_post_task_switch_extension ||
|
if ( _Thread_Do_post_task_switch_extension ||
|
||||||
_Thread_Executing->do_post_task_switch_extension ) {
|
_Thread_Executing->do_post_task_switch_extension ) {
|
||||||
_Thread_Executing->do_post_task_switch_extension = FALSE;
|
_Thread_Executing->do_post_task_switch_extension = false;
|
||||||
_API_extensions_Run_postswitch();
|
_API_extensions_Run_postswitch();
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -41,13 +41,13 @@ extern unsigned long intrStackPtr;
|
|||||||
uint32_t bsp_clicks_per_usec;
|
uint32_t bsp_clicks_per_usec;
|
||||||
uint32_t bsp_clock_speed;
|
uint32_t bsp_clock_speed;
|
||||||
uint32_t bsp_serial_per_sec; /* Serial clocks per second */
|
uint32_t bsp_serial_per_sec; /* Serial clocks per second */
|
||||||
boolean bsp_serial_external_clock;
|
bool bsp_serial_external_clock;
|
||||||
boolean bsp_serial_xon_xoff;
|
bool bsp_serial_xon_xoff;
|
||||||
boolean bsp_serial_cts_rts;
|
bool bsp_serial_cts_rts;
|
||||||
uint32_t bsp_serial_rate;
|
uint32_t bsp_serial_rate;
|
||||||
uint32_t bsp_timer_average_overhead; /* Average overhead of timer in ticks */
|
uint32_t bsp_timer_average_overhead; /* Average overhead of timer in ticks */
|
||||||
uint32_t bsp_timer_least_valid; /* Least valid number from timer */
|
uint32_t bsp_timer_least_valid; /* Least valid number from timer */
|
||||||
boolean bsp_timer_internal_clock; /* TRUE, when timer runs with CPU clk */
|
bool bsp_timer_internal_clock; /* TRUE, when timer runs with CPU clk */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Use the shared implementations of the following routines.
|
* Use the shared implementations of the following routines.
|
||||||
@@ -205,9 +205,9 @@ void bsp_start(void)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
bsp_serial_per_sec = 10000000;
|
bsp_serial_per_sec = 10000000;
|
||||||
bsp_serial_external_clock = 1;
|
bsp_serial_external_clock = true;
|
||||||
bsp_serial_xon_xoff = 0;
|
bsp_serial_xon_xoff = false;
|
||||||
bsp_serial_cts_rts = 1;
|
bsp_serial_cts_rts = true;
|
||||||
bsp_serial_rate = 9600;
|
bsp_serial_rate = 9600;
|
||||||
#if ( defined(mbx821_001) || defined(mbx821_001b) || defined(mbx860_001b) )
|
#if ( defined(mbx821_001) || defined(mbx821_001b) || defined(mbx860_001b) )
|
||||||
bsp_clock_speed = 50000000;
|
bsp_clock_speed = 50000000;
|
||||||
|
|||||||
@@ -29,13 +29,13 @@
|
|||||||
*/
|
*/
|
||||||
uint32_t bsp_clicks_per_usec;
|
uint32_t bsp_clicks_per_usec;
|
||||||
uint32_t bsp_serial_per_sec; /* Serial clocks per second */
|
uint32_t bsp_serial_per_sec; /* Serial clocks per second */
|
||||||
boolean bsp_serial_external_clock;
|
bool bsp_serial_external_clock;
|
||||||
boolean bsp_serial_xon_xoff;
|
bool bsp_serial_xon_xoff;
|
||||||
boolean bsp_serial_cts_rts;
|
bool bsp_serial_cts_rts;
|
||||||
uint32_t bsp_serial_rate;
|
uint32_t bsp_serial_rate;
|
||||||
uint32_t bsp_timer_average_overhead; /* Average overhead of timer in ticks */
|
uint32_t bsp_timer_average_overhead; /* Average overhead of timer in ticks */
|
||||||
uint32_t bsp_timer_least_valid; /* Least valid number from timer */
|
uint32_t bsp_timer_least_valid; /* Least valid number from timer */
|
||||||
boolean bsp_timer_internal_clock; /* TRUE, when timer runs with CPU clk */
|
bool bsp_timer_internal_clock; /* TRUE, when timer runs with CPU clk */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Use the shared implementations of the following routines.
|
* Use the shared implementations of the following routines.
|
||||||
|
|||||||
@@ -460,7 +460,7 @@ printk(" _ThreadProcessSignalsFromIrq \n");
|
|||||||
*/
|
*/
|
||||||
if ( _Thread_Do_post_task_switch_extension ||
|
if ( _Thread_Do_post_task_switch_extension ||
|
||||||
_Thread_Executing->do_post_task_switch_extension ) {
|
_Thread_Executing->do_post_task_switch_extension ) {
|
||||||
_Thread_Executing->do_post_task_switch_extension = FALSE;
|
_Thread_Executing->do_post_task_switch_extension = false;
|
||||||
_API_extensions_Run_postswitch();
|
_API_extensions_Run_postswitch();
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -339,7 +339,7 @@ void _ThreadProcessSignalsFromIrq (BSP_Exception_frame* ctx)
|
|||||||
*/
|
*/
|
||||||
if ( _Thread_Do_post_task_switch_extension ||
|
if ( _Thread_Do_post_task_switch_extension ||
|
||||||
_Thread_Executing->do_post_task_switch_extension ) {
|
_Thread_Executing->do_post_task_switch_extension ) {
|
||||||
_Thread_Executing->do_post_task_switch_extension = FALSE;
|
_Thread_Executing->do_post_task_switch_extension = false;
|
||||||
_API_extensions_Run_postswitch();
|
_API_extensions_Run_postswitch();
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -80,13 +80,13 @@ uint32_t _top_of_ram;
|
|||||||
*/
|
*/
|
||||||
uint32_t bsp_clicks_per_usec;
|
uint32_t bsp_clicks_per_usec;
|
||||||
uint32_t bsp_serial_per_sec; /* Serial clocks per second */
|
uint32_t bsp_serial_per_sec; /* Serial clocks per second */
|
||||||
boolean bsp_serial_external_clock;
|
bool bsp_serial_external_clock;
|
||||||
boolean bsp_serial_xon_xoff;
|
bool bsp_serial_xon_xoff;
|
||||||
boolean bsp_serial_cts_rts;
|
bool bsp_serial_cts_rts;
|
||||||
uint32_t bsp_serial_rate;
|
uint32_t bsp_serial_rate;
|
||||||
uint32_t bsp_timer_average_overhead; /* Average overhead of timer in ticks */
|
uint32_t bsp_timer_average_overhead; /* Average overhead of timer in ticks */
|
||||||
uint32_t bsp_timer_least_valid; /* Least valid number from timer */
|
uint32_t bsp_timer_least_valid; /* Least valid number from timer */
|
||||||
boolean bsp_timer_internal_clock; /* TRUE, when timer runs with CPU clk */
|
bool bsp_timer_internal_clock; /* TRUE, when timer runs with CPU clk */
|
||||||
|
|
||||||
|
|
||||||
/* Initialize whatever libc we are using
|
/* Initialize whatever libc we are using
|
||||||
@@ -170,10 +170,10 @@ void bsp_start( void )
|
|||||||
/* timebase register ticks/microsecond */
|
/* timebase register ticks/microsecond */
|
||||||
bsp_clicks_per_usec = (250000000 / 1000000);
|
bsp_clicks_per_usec = (250000000 / 1000000);
|
||||||
bsp_serial_per_sec = 14625000;
|
bsp_serial_per_sec = 14625000;
|
||||||
bsp_serial_external_clock = 0;
|
bsp_serial_external_clock = false;
|
||||||
bsp_timer_internal_clock = 1;
|
bsp_timer_internal_clock = true;
|
||||||
bsp_serial_xon_xoff = 0;
|
bsp_serial_xon_xoff = false;
|
||||||
bsp_serial_cts_rts = 0;
|
bsp_serial_cts_rts = false;
|
||||||
bsp_serial_rate = 115200;
|
bsp_serial_rate = 115200;
|
||||||
bsp_timer_average_overhead = 2;
|
bsp_timer_average_overhead = 2;
|
||||||
bsp_timer_least_valid = 3;
|
bsp_timer_least_valid = 3;
|
||||||
@@ -237,4 +237,3 @@ void _BSP_Fatal_error(unsigned int v)
|
|||||||
printk("%s PANIC ERROR %x\n",_RTEMS_version, v);
|
printk("%s PANIC ERROR %x\n",_RTEMS_version, v);
|
||||||
BSP_ask_for_reset();
|
BSP_ask_for_reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -65,14 +65,14 @@ void bfin_interrupt_register(bfin_isr_t *isr);
|
|||||||
void bfin_interrupt_unregister(bfin_isr_t *isr);
|
void bfin_interrupt_unregister(bfin_isr_t *isr);
|
||||||
|
|
||||||
/* enable/disable specific ISR */
|
/* enable/disable specific ISR */
|
||||||
void bfin_interrupt_enable(bfin_isr_t *isr, boolean enable);
|
void bfin_interrupt_enable(bfin_isr_t *isr, bool enable);
|
||||||
|
|
||||||
/* atomically enable/disable all ISRs attached to specified source */
|
/* atomically enable/disable all ISRs attached to specified source */
|
||||||
void bfin_interrupt_enable_all(int source, boolean enable);
|
void bfin_interrupt_enable_all(int source, bool enable);
|
||||||
|
|
||||||
/* disable a source independently of the individual ISR enables (starts
|
/* disable a source independently of the individual ISR enables (starts
|
||||||
out all enabled) */
|
out all enabled) */
|
||||||
void bfin_interrupt_enable_global(int source, boolean enable);
|
void bfin_interrupt_enable_global(int source, bool enable);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,8 +26,8 @@ extern "C" {
|
|||||||
typedef struct {
|
typedef struct {
|
||||||
/* parameters provided by bsp */
|
/* parameters provided by bsp */
|
||||||
uint32_t freq;
|
uint32_t freq;
|
||||||
void *base;
|
void *base;
|
||||||
boolean fast;
|
bool fast;
|
||||||
/* internal use */
|
/* internal use */
|
||||||
rtems_id irq_sema_id;
|
rtems_id irq_sema_id;
|
||||||
} bfin_spi_softc_t;
|
} bfin_spi_softc_t;
|
||||||
|
|||||||
@@ -25,12 +25,12 @@ extern "C" {
|
|||||||
typedef struct {
|
typedef struct {
|
||||||
uint32_t sclk;
|
uint32_t sclk;
|
||||||
void *base;
|
void *base;
|
||||||
boolean fast;
|
bool fast;
|
||||||
int8_t slave_address;
|
int8_t slave_address;
|
||||||
} bfin_twi_config_t;
|
} bfin_twi_config_t;
|
||||||
|
|
||||||
typedef struct bfin_twi_request_s {
|
typedef struct bfin_twi_request_s {
|
||||||
boolean write;
|
bool write;
|
||||||
int count;
|
int count;
|
||||||
void *data;
|
void *data;
|
||||||
/* Chained requests are done with repeated start conditions in between.
|
/* Chained requests are done with repeated start conditions in between.
|
||||||
@@ -42,9 +42,9 @@ typedef struct bfin_twi_request_s {
|
|||||||
|
|
||||||
typedef rtems_status_code (*bfin_twi_callback_t)(int channel,
|
typedef rtems_status_code (*bfin_twi_callback_t)(int channel,
|
||||||
void *arg,
|
void *arg,
|
||||||
boolean general_call,
|
bool general_call,
|
||||||
boolean write,
|
bool write,
|
||||||
boolean done,
|
bool done,
|
||||||
int read_count,
|
int read_count,
|
||||||
uint8_t *data);
|
uint8_t *data);
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ extern "C" {
|
|||||||
typedef struct {
|
typedef struct {
|
||||||
const char *name;
|
const char *name;
|
||||||
void *base_address;
|
void *base_address;
|
||||||
boolean use_interrupts;
|
bool use_interrupts;
|
||||||
int force_baud;
|
int force_baud;
|
||||||
/* the following are for internal use */
|
/* the following are for internal use */
|
||||||
void *termios;
|
void *termios;
|
||||||
|
|||||||
@@ -493,7 +493,7 @@ void _ThreadProcessSignalsFromIrq (CPU_Exception_frame* ctx)
|
|||||||
*/
|
*/
|
||||||
if ( _Thread_Do_post_task_switch_extension ||
|
if ( _Thread_Do_post_task_switch_extension ||
|
||||||
_Thread_Executing->do_post_task_switch_extension ) {
|
_Thread_Executing->do_post_task_switch_extension ) {
|
||||||
_Thread_Executing->do_post_task_switch_extension = FALSE;
|
_Thread_Executing->do_post_task_switch_extension = false;
|
||||||
_API_extensions_Run_postswitch();
|
_API_extensions_Run_postswitch();
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ static rtems_status_code mpc83xx_spi_char_mode
|
|||||||
\*-------------------------------------------------------------------------*/
|
\*-------------------------------------------------------------------------*/
|
||||||
mpc83xx_spi_softc_t *softc_ptr, /* handle */
|
mpc83xx_spi_softc_t *softc_ptr, /* handle */
|
||||||
uint32_t bits_per_char, /* bits per character */
|
uint32_t bits_per_char, /* bits per character */
|
||||||
boolean lsb_first, /* TRUE: send LSB first */
|
bool lsb_first, /* TRUE: send LSB first */
|
||||||
uint32_t *spimode /* result value */
|
uint32_t *spimode /* result value */
|
||||||
)
|
)
|
||||||
/*-------------------------------------------------------------------------*\
|
/*-------------------------------------------------------------------------*\
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ ppc_exc_wrapup( BSP_Exception_frame *f)
|
|||||||
*/
|
*/
|
||||||
if ( _Thread_Do_post_task_switch_extension ||
|
if ( _Thread_Do_post_task_switch_extension ||
|
||||||
_Thread_Executing->do_post_task_switch_extension ) {
|
_Thread_Executing->do_post_task_switch_extension ) {
|
||||||
_Thread_Executing->do_post_task_switch_extension = FALSE;
|
_Thread_Executing->do_post_task_switch_extension = false;
|
||||||
_API_extensions_Run_postswitch();
|
_API_extensions_Run_postswitch();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ void _CPU_Context_Initialize(
|
|||||||
uint32_t size,
|
uint32_t size,
|
||||||
uint32_t new_level,
|
uint32_t new_level,
|
||||||
void *entry_point,
|
void *entry_point,
|
||||||
boolean is_fp
|
bool is_fp
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
uint32_t msr_value;
|
uint32_t msr_value;
|
||||||
|
|||||||
@@ -245,7 +245,7 @@ void e500_setup_raw_exceptions();
|
|||||||
*
|
*
|
||||||
* This should probably go away... (T.S. 2007/11/30)
|
* This should probably go away... (T.S. 2007/11/30)
|
||||||
*/
|
*/
|
||||||
extern boolean bsp_exceptions_in_RAM;
|
extern bool bsp_exceptions_in_RAM;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Vector base address for CPUs (for example e200 and e500) with IVPR
|
* @brief Vector base address for CPUs (for example e200 and e500) with IVPR
|
||||||
|
|||||||
@@ -220,7 +220,7 @@ void ClockOn(
|
|||||||
uint32_t iocr;
|
uint32_t iocr;
|
||||||
register uint32_t tcr;
|
register uint32_t tcr;
|
||||||
extern uint32_t bsp_clicks_per_usec;
|
extern uint32_t bsp_clicks_per_usec;
|
||||||
extern boolean bsp_timer_internal_clock;
|
extern bool bsp_timer_internal_clock;
|
||||||
#ifdef ppc403
|
#ifdef ppc403
|
||||||
uint32_t pvr;
|
uint32_t pvr;
|
||||||
#endif /* ppc403 */
|
#endif /* ppc403 */
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ rtems_isr_entry set_vector( /* returns old vector */
|
|||||||
|
|
||||||
/* Defined in bspstart.c */
|
/* Defined in bspstart.c */
|
||||||
extern uint32_t bsp_clicks_per_usec;
|
extern uint32_t bsp_clicks_per_usec;
|
||||||
extern boolean bsp_timer_internal_clock;
|
extern bool bsp_timer_internal_clock;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* These are set by clock driver during its init
|
* These are set by clock driver during its init
|
||||||
|
|||||||
@@ -340,7 +340,7 @@ spiInitialize(void)
|
|||||||
{
|
{
|
||||||
register unsigned tmp;
|
register unsigned tmp;
|
||||||
rtems_isr_entry previous_isr; /* this is a dummy */
|
rtems_isr_entry previous_isr; /* this is a dummy */
|
||||||
extern boolean bsp_serial_external_clock;
|
extern bool bsp_serial_external_clock;
|
||||||
extern uint32_t bsp_serial_rate;
|
extern uint32_t bsp_serial_rate;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -141,8 +141,8 @@ rtems_device_driver console_initialize(
|
|||||||
rtems_status_code status;
|
rtems_status_code status;
|
||||||
register unsigned tmp;
|
register unsigned tmp;
|
||||||
extern uint32_t bsp_serial_per_sec;
|
extern uint32_t bsp_serial_per_sec;
|
||||||
extern boolean bsp_serial_external_clock;
|
extern bool bsp_serial_external_clock;
|
||||||
extern boolean bsp_serial_cts_rts;
|
extern bool bsp_serial_cts_rts;
|
||||||
extern uint32_t bsp_serial_rate;
|
extern uint32_t bsp_serial_rate;
|
||||||
|
|
||||||
/* Initialise the serial port */
|
/* Initialise the serial port */
|
||||||
@@ -265,7 +265,7 @@ void outbyte(
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
unsigned char status;
|
unsigned char status;
|
||||||
extern boolean bsp_serial_xon_xoff;
|
extern bool bsp_serial_xon_xoff;
|
||||||
|
|
||||||
while (port->SPHS)
|
while (port->SPHS)
|
||||||
port->SPHS = (HSRDsr | HSRCts);
|
port->SPHS = (HSRDsr | HSRCts);
|
||||||
|
|||||||
@@ -357,7 +357,7 @@ spiInitialize(void)
|
|||||||
register unsigned tmp;
|
register unsigned tmp;
|
||||||
rtems_isr_entry previous_isr; /* this is a dummy */
|
rtems_isr_entry previous_isr; /* this is a dummy */
|
||||||
unsigned char _ier;
|
unsigned char _ier;
|
||||||
extern boolean bsp_serial_external_clock;
|
extern bool bsp_serial_external_clock;
|
||||||
extern uint32_t bsp_serial_rate;
|
extern uint32_t bsp_serial_rate;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -19,9 +19,9 @@
|
|||||||
#include <stdlib.h> /* for atexit() */
|
#include <stdlib.h> /* for atexit() */
|
||||||
|
|
||||||
extern uint32_t bsp_serial_per_sec;
|
extern uint32_t bsp_serial_per_sec;
|
||||||
extern boolean bsp_serial_external_clock;
|
extern bool bsp_serial_external_clock;
|
||||||
extern boolean bsp_serial_cts_rts;
|
extern bool bsp_serial_cts_rts;
|
||||||
extern boolean bsp_serial_xon_xoff;
|
extern bool bsp_serial_xon_xoff;
|
||||||
extern uint32_t bsp_serial_rate;
|
extern uint32_t bsp_serial_rate;
|
||||||
|
|
||||||
struct ttyasync {
|
struct ttyasync {
|
||||||
@@ -351,7 +351,7 @@ tty0Initialize(void)
|
|||||||
unsigned char _ier;
|
unsigned char _ier;
|
||||||
unsigned char _tmp;
|
unsigned char _tmp;
|
||||||
extern uint32_t bsp_serial_rate;
|
extern uint32_t bsp_serial_rate;
|
||||||
extern boolean bsp_serial_external_clock;
|
extern bool bsp_serial_external_clock;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Initialise the serial tty0port
|
* Initialise the serial tty0port
|
||||||
|
|||||||
Reference in New Issue
Block a user