iomux_set_function: remove the IOMUX_FUNC transform of the func argument.

The allows the IOMUX_GPIO<n>_FUNC_<function> definitions to be used here.
This commit is contained in:
ourairquality 2016-08-15 20:58:10 +10:00
parent 3dcc4f14a9
commit 8405b989f9
3 changed files with 10 additions and 9 deletions

View file

@ -23,8 +23,8 @@
#define _SPI1_SCK_GPIO 14
#define _SPI1_CS0_GPIO 15
#define _SPI0_FUNC 1
#define _SPI1_FUNC 2
#define _SPI0_FUNC IOMUX_FUNC(1)
#define _SPI1_FUNC IOMUX_FUNC(2)
#define _SPI_BUF_SIZE 64