mbed library sources
Fork of mbed-src by
Diff: targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_DELTA_DFCM_NNN40/mbed_overrides.c
- Revision:
- 553:063b9f2f393c
- Parent:
- 505:0be0981777d7
- Child:
- 636:cb7d56e6ff53
--- a/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_DELTA_DFCM_NNN40/mbed_overrides.c Wed May 27 13:30:08 2015 +0100 +++ b/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_DELTA_DFCM_NNN40/mbed_overrides.c Mon Jun 01 10:30:08 2015 +0100 @@ -25,7 +25,7 @@ #define CMD_POWER_UP (0xAB) #define CMD_POWER_DOWN (0xB9) -void spi_flash_init(void) +void flash_init(void) { NRF_GPIO->PIN_CNF[SPIM1_MOSI_PIN] = (GPIO_PIN_CNF_SENSE_Disabled << GPIO_PIN_CNF_SENSE_Pos) | (GPIO_PIN_CNF_DRIVE_S0S1 << GPIO_PIN_CNF_DRIVE_Pos) @@ -79,7 +79,7 @@ } -void spi_flash_powerDown(void) +void flash_powerDown(void) { NRF_GPIO->OUTCLR = (GPIO_OUTCLR_PIN28_Clear << GPIO_OUTCLR_PIN28_Pos); //spi.write(CMD_POWER_DOWN); @@ -115,9 +115,9 @@ {// Do nothing. } - spi_flash_init(); + flash_init(); //nrf_delay_ms(10); - spi_flash_powerDown(); + flash_powerDown(); }