diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-03-08 15:23:56 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-03-08 15:23:56 +0000 |
commit | 77f556a36f68292909cd98a7ddeb58c3f739f324 (patch) | |
tree | faebbaa384049b9ddfb7279ff879ef3c76f625ac /nuttx/arch/c5471/src/up_internal.h | |
parent | 2ec8b9a0f5c8b7e7590cc5a7cc793eb249f449fe (diff) | |
download | px4-nuttx-77f556a36f68292909cd98a7ddeb58c3f739f324.tar.gz px4-nuttx-77f556a36f68292909cd98a7ddeb58c3f739f324.tar.bz2 px4-nuttx-77f556a36f68292909cd98a7ddeb58c3f739f324.zip |
Add support for onboard LEDs; Fix serial bug
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@43 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/c5471/src/up_internal.h')
-rw-r--r-- | nuttx/arch/c5471/src/up_internal.h | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/nuttx/arch/c5471/src/up_internal.h b/nuttx/arch/c5471/src/up_internal.h index 0c03967c0..5f7e4307e 100644 --- a/nuttx/arch/c5471/src/up_internal.h +++ b/nuttx/arch/c5471/src/up_internal.h @@ -48,6 +48,18 @@ #define CONFIG_SUPPRESS_INTERRUPTS 1 /* Do not enable interrupts */ #undef CONFIG_SUPPRESS_UART_CONFIG /* Do not reconfig UART */ +#define CONFIG_C5471_LEDS 1 /* Use LEDs to show state */ + +/* LED meanings */ + +#define LED_STARTED 0 +#define LED_HEAPALLOCATE 1 +#define LED_IRQSENABLED 2 +#define LED_STACKCREATED 3 +#define LED_INIRQ 4 +#define LED_SIGNAL 5 +#define LED_ASSERTION 6 +#define LED_PANIC 7 /************************************************************ * Public Types @@ -75,7 +87,7 @@ extern uint32 *current_regs; * CONFIG_DRAM_END */ -extern uint32 g_heapstart; +extern uint32 g_heapbase; #endif /************************************************************ @@ -133,6 +145,18 @@ extern void up_timerinit(void); extern void up_maskack_irq(int irq); +/* Defined in up_leds.c */ + +#ifdef CONFIG_C5471_LEDS +extern void up_ledinit(void); +extern void up_ledon(int led); +extern void up_ledoff(int led); +#else +# define up_ledinit() +# define up_ledon(led) +# define up_ledoff(led) +#endif + #endif /* __ASSEMBLY__ */ #endif /* __UP_INTERNAL_H */ |