fixed drive strength
Fork of mbed-dev by
Diff: targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/analogin_api.c
- Revision:
- 150:02e0a0aed4ec
- Parent:
- 149:156823d33999
--- a/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/analogin_api.c Fri Oct 28 11:17:30 2016 +0100 +++ b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/analogin_api.c Tue Nov 08 17:45:16 2016 +0000 @@ -39,6 +39,7 @@ {NC, NC, 0} }; +void ADC_IRQHandler(void); // export IRQ handler from nrf_drv_adc.c void analogin_init(analogin_t *obj, PinName pin) { @@ -50,6 +51,8 @@ obj->adc_pin = pinFunc; + NVIC_SetVector(ADC_IRQn, (uint32_t)ADC_IRQHandler); + ret_code_t ret_code; // p_config, event_handler ret_code = nrf_drv_adc_init(NULL , NULL); // select blocking mode