add Lib_OemBaseBoard to bsp/board but current exclude from all builds (added when needed later)

This commit is contained in:
hathach
2013-04-09 02:30:33 +07:00
parent c036efff1d
commit 11dff6f978
18 changed files with 2383 additions and 2 deletions
+20
View File
@@ -183,4 +183,24 @@ uint32_t board_uart_recv(uint8_t *buffer, uint32_t length)
}
#endif
/******************************************************************************
*
* Description:
* Initialize the trim potentiometer, i.e. ADC connected to TrimPot on
* Base Board.
*
*****************************************************************************/
//void trimpot_init(void)
//{
// // pinsel for AD0.3 on p7.5
// scu_pinmux( 7 , 5 , PDN_DISABLE | PUP_DISABLE | INBUF_DISABLE, 0 );
// LPC_SCU->ENAIO0 |= (1<<3);
//
// ADC_Init(LPC_ADC0, 400000, 10);
//
// ADC_IntConfig(LPC_ADC0, ADC_ADINTEN2, DISABLE);
// ADC_ChannelCmd(LPC_ADC0, ADC_CH_TRIMPOT, ENABLE);
//}
#endif