diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-05-20 16:19:01 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-05-20 16:19:01 +0000 |
commit | f943a6e94a7caa69aad320ec610ffb33c8686919 (patch) | |
tree | 1351d134abaf1d5a0bf8ef5e88c92fb3b0e2fabe /nuttx/arch/mips/src/pic32mx/pic32mx-internal.h | |
parent | bccc2e256e4664cb3010a678722866a71e2fafc5 (diff) | |
download | px4-nuttx-f943a6e94a7caa69aad320ec610ffb33c8686919.tar.gz px4-nuttx-f943a6e94a7caa69aad320ec610ffb33c8686919.tar.bz2 px4-nuttx-f943a6e94a7caa69aad320ec610ffb33c8686919.zip |
Fleshing out PIC32 port
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3632 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/mips/src/pic32mx/pic32mx-internal.h')
-rwxr-xr-x | nuttx/arch/mips/src/pic32mx/pic32mx-internal.h | 60 |
1 files changed, 53 insertions, 7 deletions
diff --git a/nuttx/arch/mips/src/pic32mx/pic32mx-internal.h b/nuttx/arch/mips/src/pic32mx/pic32mx-internal.h index 7c40bff8d..da6e8b1f5 100755 --- a/nuttx/arch/mips/src/pic32mx/pic32mx-internal.h +++ b/nuttx/arch/mips/src/pic32mx/pic32mx-internal.h @@ -49,6 +49,7 @@ #include "up_internal.h" #include "chip.h" +#include "pic32mx-config.h" /************************************************************************************ * Definitions @@ -122,9 +123,7 @@ extern "C" { * Name: pic32mx_clockconfig * * Description: - * Called to initialize the PIC32MX. This does whatever setup is needed to put the - * MCU in a usable state. This includes the initialization of clocking using the - * settings in board.h. + * Called to initialize the PIC32MX clocking using the settings in board.h. * ************************************************************************************/ @@ -134,13 +133,38 @@ EXTERN void pic32mx_clockconfig(void); * Name: pic32mx_lowsetup * * Description: - * Called at the very beginning of _start. Performs low level initialization - * including setup of the console UART. This UART done early so that the serial - * console is available for debugging very early in the boot sequence. + * Performs low level initialization of the console UART. This UART done early so + * that the serial console is available for debugging very early in the boot sequence. * ************************************************************************************/ -EXTERN void pic32mx_lowsetup(void); +EXTERN void pic32mx_consoleinit(void); + +/****************************************************************************** + * Name: pic32mx_uartreset + * + * Description: + * Reset a UART. + * + ******************************************************************************/ + +#ifdef HAVE_UART_DEVICE +EXTERN void pic32mx_uartreset(uintptr_t uart_base); +#endif + +/****************************************************************************** + * Name: pic32mx_uartconfigure + * + * Description: + * Configure a UART as a RS-232 UART. + * + ******************************************************************************/ + +#ifdef HAVE_UART_DEVICE +EXTERN void pic32mx_uartconfigure(uintptr_t uart_base, uint32_t baud, + unsigned int parity, unsigned int nbits, + bool stop2); +#endif /************************************************************************************ * Name: pic32mx_gpioirqinitialize @@ -157,6 +181,28 @@ EXTERN void pic32mx_gpioirqinitialize(void); #endif /************************************************************************************ + * Name: pic32mx_boardinitialize + * + * Description: + * This function must be provided by the board-specific logic in the directory + * configs/<board-name>/up_boot.c. + * + ************************************************************************************/ + +EXTERN void pic32mx_boardinitialize(void); + +/************************************************************************************ + * Name: up_decodeirq + * + * Description: + * Called from assembly language logic when and interrrupt exception occurs. This + * function decodes and dispatches the interrupt. + * + ************************************************************************************/ + +EXTERN uint32_t *up_decodeirq(uint32_t *regs); + +/************************************************************************************ * Name: pic32mx_configgpio * * Description: |