I am trying to get the Pmod BT2 module (http://store.digilentinc.com/pmod-bt2-bluetooth-interface/
) to work with the EM Starter Kit board, ideally using FreeRTOS but anything would be fine at the moment.
Initially, I saw that in the software distribution there was a BLE driver for HM-1X and was hoping to use that, but it obviously doesn't work.
Question #1: Do I have to write my own driver for that Pmod BT2 or is there somewhere one available?
Question #2: If I have to write my own driver and from the documentation from the digilent site, are the following statements correct (just to check myself)?
- in emsk_init.c, in the emsk_mux_init function, the set_pmod_mux function should be called with: PM1_UR_UART_0 | PM1_LR_GPIO_A to set Pmod1? Or should it be PM1_UR_UART_0 | PM1_LR_SPI_S ?
- As per the documentation of th emodule, the first 4 pins are RTS,RX, TX and CTS. This means that this call should be made : set_uart_map(mux_regs, 0x1b);
- If I end up writing a driver, is the pmwifi one the best I can use as inspiration?