diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-04-08 15:24:50 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-04-08 15:24:50 +0000 |
commit | 6e1fea8b98a48200b12a6e4d304f33d18ba70e89 (patch) | |
tree | 75a7200559a8bbe40cee62173ea6a2bc58f4ac48 /nuttx/include | |
parent | fde641dedf8a3922658e92a19ca8eb7698db3ac0 (diff) | |
download | px4-nuttx-6e1fea8b98a48200b12a6e4d304f33d18ba70e89.tar.gz px4-nuttx-6e1fea8b98a48200b12a6e4d304f33d18ba70e89.tar.bz2 px4-nuttx-6e1fea8b98a48200b12a6e4d304f33d18ba70e89.zip |
Add logic to initialize SAM3U user applications
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3482 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/nuttx/arch.h | 46 | ||||
-rw-r--r-- | nuttx/include/nuttx/fb.h | 35 | ||||
-rwxr-xr-x | nuttx/include/nuttx/lcd/lcd.h | 24 |
3 files changed, 58 insertions, 47 deletions
diff --git a/nuttx/include/nuttx/arch.h b/nuttx/include/nuttx/arch.h index f81a497b8..df9f1e9ab 100644 --- a/nuttx/include/nuttx/arch.h +++ b/nuttx/include/nuttx/arch.h @@ -434,7 +434,6 @@ EXTERN void up_enable_irq(int irq); EXTERN void up_disable_irq(int irq); #endif - /**************************************************************************** * Name: up_prioritize_irq * @@ -463,51 +462,6 @@ EXTERN void up_mdelay(unsigned int milliseconds); EXTERN void up_udelay(useconds_t microseconds); /**************************************************************************** - * Name: up_fbinitialize, up_fbuninitialize, up_fbgetvplane - * - * Description: - * If an architecture supports a framebuffer, then it must provide APIs - * to access the framebuffer as follows: - * - * up_fbinitialize - Initialize the framebuffer video hardware - * up_fbgetvplane - Return a a reference to the framebuffer object for - * the specified video plane. Most OSDs support - * multiple planes of video. - * up_fbuninitialize - Unitialize the framebuffer support - * - ***************************************************************************/ - -struct fb_vtable_s; /* See nuttx/fb.h */ - -EXTERN int up_fbinitialize(void); -EXTERN FAR struct fb_vtable_s *up_fbgetvplane(int vplane); -EXTERN void fb_uninitialize(void); - -/**************************************************************************** - * Name: up_lcdinitialize, up_lcdgetdev, up_lcduninitialize - * - * Description: - * If an architecture supports a parallel or serial LCD, then it must - * provide APIs to access the LCD as follows: - * - * up_lcdinitialize - Initialize the LCD video hardware. The initial - * state of the LCD is fully initialized, display - * memory cleared, and the LCD ready to use, but with - * the power setting at 0 (full off). - * up_lcdgetdev - Return a a reference to the LCD object for - * the specified LCD. This allows support for - * multiple LCD devices. - * up_lcduninitialize - Unitialize the LCD support - * - ***************************************************************************/ - -struct lcd_dev_s; /* See nuttx/lcd.h */ - -EXTERN int up_lcdinitialize(void); -EXTERN FAR struct lcd_dev_s *up_lcdgetdev(int lcddev); -EXTERN void up_lcduninitialize(void); - -/**************************************************************************** * These are standard interfaces that are exported by the OS * for use by the architecture specific logic ****************************************************************************/ diff --git a/nuttx/include/nuttx/fb.h b/nuttx/include/nuttx/fb.h index b6f387083..773ef943e 100644 --- a/nuttx/include/nuttx/fb.h +++ b/nuttx/include/nuttx/fb.h @@ -315,4 +315,39 @@ struct fb_vtable_s #endif }; +/**************************************************************************** + * Public Function Prototypes + ****************************************************************************/ + +#ifdef __cplusplus +#define EXTERN extern "C" +extern "C" { +#else +#define EXTERN extern +#endif + +/**************************************************************************** + * Name: up_fbinitialize, up_fbuninitialize, up_fbgetvplane + * + * Description: + * If an architecture supports a framebuffer, then it must provide APIs + * to access the framebuffer as follows: + * + * up_fbinitialize - Initialize the framebuffer video hardware + * up_fbgetvplane - Return a a reference to the framebuffer object for + * the specified video plane. Most OSDs support + * multiple planes of video. + * up_fbuninitialize - Unitialize the framebuffer support + * + ***************************************************************************/ + +EXTERN int up_fbinitialize(void); +EXTERN FAR struct fb_vtable_s *up_fbgetvplane(int vplane); +EXTERN void fb_uninitialize(void); + +#undef EXTERN +#ifdef __cplusplus +} +#endif + #endif /* _INCLUDE_NUTTX_FB_H */ diff --git a/nuttx/include/nuttx/lcd/lcd.h b/nuttx/include/nuttx/lcd/lcd.h index 9595b89ae..790896c91 100755 --- a/nuttx/include/nuttx/lcd/lcd.h +++ b/nuttx/include/nuttx/lcd/lcd.h @@ -1,7 +1,7 @@ /**************************************************************************** * include/nuttx/lcd/lcd.h * - * Copyright (C) 2010 Gregory Nutt. All rights reserved. + * Copyright (C) 2010-2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -189,6 +189,28 @@ extern "C" { #define EXTERN extern #endif +/**************************************************************************** + * Name: up_lcdinitialize, up_lcdgetdev, up_lcduninitialize + * + * Description: + * If an architecture supports a parallel or serial LCD, then it must + * provide APIs to access the LCD as follows: + * + * up_lcdinitialize - Initialize the LCD video hardware. The initial + * state of the LCD is fully initialized, display + * memory cleared, and the LCD ready to use, but with + * the power setting at 0 (full off). + * up_lcdgetdev - Return a a reference to the LCD object for + * the specified LCD. This allows support for + * multiple LCD devices. + * up_lcduninitialize - Unitialize the LCD support + * + ***************************************************************************/ + +EXTERN int up_lcdinitialize(void); +EXTERN FAR struct lcd_dev_s *up_lcdgetdev(int lcddev); +EXTERN void up_lcduninitialize(void); + #undef EXTERN #ifdef __cplusplus } |