projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor to decouple timer ticks from milliseconds.
[bertos.git]
/
drv
/
ser_dsp56k.c
diff --git
a/drv/ser_dsp56k.c
b/drv/ser_dsp56k.c
index 8085f9e2b90802f79dc6ab60960f36c41316511d..01767f7e503f4a3c9eb793e0c05482e2cda25ae0 100755
(executable)
--- a/
drv/ser_dsp56k.c
+++ b/
drv/ser_dsp56k.c
@@
-15,6
+15,12
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.12 2005/04/11 19:10:27 bernie
+ *#* Include top-level headers from cfg/ subdir.
+ *#*
+ *#* Revision 1.11 2005/01/25 07:42:04 bernie
+ *#* Simplify.
+ *#*
*#* Revision 1.10 2005/01/14 00:48:33 aleph
*#* Rename callbacks; SerialHardwareVT.txSending: New callback.
*#*
*#* Revision 1.10 2005/01/14 00:48:33 aleph
*#* Rename callbacks; SerialHardwareVT.txSending: New callback.
*#*
@@
-43,7
+49,7
@@
#include "ser.h"
#include "ser_p.h"
#include <drv/irq.h>
#include "ser.h"
#include "ser_p.h"
#include <drv/irq.h>
-#include <debug.h>
+#include <
cfg/
debug.h>
#include <hw.h>
#include <DSP56F807.h>
#include <hw.h>
#include <DSP56F807.h>
@@
-112,41
+118,36
@@
static inline void disable_rx_irq_bare(volatile struct REG_SCI_STRUCT* regs)
static inline void disable_tx_irq(struct SerialHardware* _hw)
{
struct SCI* hw = (struct SCI*)_hw;
static inline void disable_tx_irq(struct SerialHardware* _hw)
{
struct SCI* hw = (struct SCI*)_hw;
- volatile struct REG_SCI_STRUCT* regs = hw->regs;
- disable_tx_irq_bare(regs);
+ disable_tx_irq_bare(
hw->
regs);
}
static inline void disable_rx_irq(struct SerialHardware* _hw)
{
struct SCI* hw = (struct SCI*)_hw;
}
static inline void disable_rx_irq(struct SerialHardware* _hw)
{
struct SCI* hw = (struct SCI*)_hw;
- volatile struct REG_SCI_STRUCT* regs = hw->regs;
- disable_rx_irq_bare(regs);
+ disable_rx_irq_bare(
hw->
regs);
}
static inline void enable_tx_irq(struct SerialHardware* _hw)
{
struct SCI* hw = (struct SCI*)_hw;
}
static inline void enable_tx_irq(struct SerialHardware* _hw)
{
struct SCI* hw = (struct SCI*)_hw;
- volatile struct REG_SCI_STRUCT* regs = hw->regs;
- enable_tx_irq_bare(regs);
+ enable_tx_irq_bare(
hw->
regs);
}
static inline void enable_rx_irq(struct SerialHardware* _hw)
{
struct SCI* hw = (struct SCI*)_hw;
}
static inline void enable_rx_irq(struct SerialHardware* _hw)
{
struct SCI* hw = (struct SCI*)_hw;
- volatile struct REG_SCI_STRUCT* regs = hw->regs;
- enable_rx_irq_bare(regs);
+ enable_rx_irq_bare(
hw->
regs);
}
static inline bool tx_irq_enabled(struct SerialHardware* _hw)
{
struct SCI* hw = (struct SCI*)_hw;
}
static inline bool tx_irq_enabled(struct SerialHardware* _hw)
{
struct SCI* hw = (struct SCI*)_hw;
- volatile struct REG_SCI_STRUCT* regs = hw->regs;
- return (regs->CR & REG_SCI_CR_TEIE);
+ return (
hw->
regs->CR & REG_SCI_CR_TEIE);
}
static void tx_isr(const struct SCI *hw)
}
static void tx_isr(const struct SCI *hw)