more kinetis

This commit is contained in:
Sebastien Lorquet 2017-04-28 18:31:10 +02:00
parent 68af2a9354
commit abc8322728
4 changed files with 24 additions and 24 deletions

View File

@ -97,13 +97,13 @@ void weak_function kinetis_spidev_initialize(void)
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_KINETIS_SPI0 #ifdef CONFIG_KINETIS_SPI0
void kinetis_spi0select(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool selected) void kinetis_spi0select(FAR struct spi_dev_s *dev, uint32_t devid, bool selected)
{ {
spiinfo("devid: %d CS: %s\n", (int)devid, selected ? "assert" : "de-assert"); spiinfo("devid: %d CS: %s\n", (int)devid, selected ? "assert" : "de-assert");
# warning "Missing logic" # warning "Missing logic"
} }
uint8_t kinetis_spi0status(FAR struct spi_dev_s *dev, enum spi_dev_e devid) uint8_t kinetis_spi0status(FAR struct spi_dev_s *dev, uint32_t devid)
{ {
# warning "Missing logic" # warning "Missing logic"
return SPI_STATUS_PRESENT; return SPI_STATUS_PRESENT;
@ -111,13 +111,13 @@ uint8_t kinetis_spi0status(FAR struct spi_dev_s *dev, enum spi_dev_e devid)
#endif #endif
#ifdef CONFIG_KINETIS_SPI1 #ifdef CONFIG_KINETIS_SPI1
void kinetis_spi1select(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool selected) void kinetis_spi1select(FAR struct spi_dev_s *dev, uint32_t devid, bool selected)
{ {
spiinfo("devid: %d CS: %s\n", (int)devid, selected ? "assert" : "de-assert"); spiinfo("devid: %d CS: %s\n", (int)devid, selected ? "assert" : "de-assert");
# warning "Missing logic" # warning "Missing logic"
} }
uint8_t kinetis_spi1status(FAR struct spi_dev_s *dev, enum spi_dev_e devid) uint8_t kinetis_spi1status(FAR struct spi_dev_s *dev, uint32_t devid)
{ {
# warning "Missing logic" # warning "Missing logic"
return SPI_STATUS_PRESENT; return SPI_STATUS_PRESENT;
@ -125,13 +125,13 @@ uint8_t kinetis_spi1status(FAR struct spi_dev_s *dev, enum spi_dev_e devid)
#endif #endif
#ifdef CONFIG_KINETIS_SPI2 #ifdef CONFIG_KINETIS_SPI2
void kinetis_spi2select(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool selected) void kinetis_spi2select(FAR struct spi_dev_s *dev, uint32_t devid, bool selected)
{ {
spiinfo("devid: %d CS: %s\n", (int)devid, selected ? "assert" : "de-assert"); spiinfo("devid: %d CS: %s\n", (int)devid, selected ? "assert" : "de-assert");
# warning "Missing logic" # warning "Missing logic"
} }
uint8_t kinetis_spi2status(FAR struct spi_dev_s *dev, enum spi_dev_e devid) uint8_t kinetis_spi2status(FAR struct spi_dev_s *dev, uint32_t devid)
{ {
# warning "Missing logic" # warning "Missing logic"
return SPI_STATUS_PRESENT; return SPI_STATUS_PRESENT;

View File

@ -97,13 +97,13 @@ void weak_function kinetis_spidev_initialize(void)
************************************************************************************/ ************************************************************************************/
#ifdef CONFIG_KINETIS_SPI0 #ifdef CONFIG_KINETIS_SPI0
void kinetis_spi0select(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool selected) void kinetis_spi0select(FAR struct spi_dev_s *dev, uint32_t devid, bool selected)
{ {
spiinfo("devid: %d CS: %s\n", (int)devid, selected ? "assert" : "de-assert"); spiinfo("devid: %d CS: %s\n", (int)devid, selected ? "assert" : "de-assert");
# warning "Missing logic" # warning "Missing logic"
} }
uint8_t kinetis_spi0status(FAR struct spi_dev_s *dev, enum spi_dev_e devid) uint8_t kinetis_spi0status(FAR struct spi_dev_s *dev, uint32_t devid)
{ {
# warning "Missing logic" # warning "Missing logic"
return SPI_STATUS_PRESENT; return SPI_STATUS_PRESENT;
@ -111,13 +111,13 @@ uint8_t kinetis_spi0status(FAR struct spi_dev_s *dev, enum spi_dev_e devid)
#endif #endif
#ifdef CONFIG_KINETIS_SPI1 #ifdef CONFIG_KINETIS_SPI1
void kinetis_spi1select(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool selected) void kinetis_spi1select(FAR struct spi_dev_s *dev, uint32_t devid, bool selected)
{ {
spiinfo("devid: %d CS: %s\n", (int)devid, selected ? "assert" : "de-assert"); spiinfo("devid: %d CS: %s\n", (int)devid, selected ? "assert" : "de-assert");
# warning "Missing logic" # warning "Missing logic"
} }
uint8_t kinetis_spi1status(FAR struct spi_dev_s *dev, enum spi_dev_e devid) uint8_t kinetis_spi1status(FAR struct spi_dev_s *dev, uint32_t devid)
{ {
# warning "Missing logic" # warning "Missing logic"
return SPI_STATUS_PRESENT; return SPI_STATUS_PRESENT;
@ -125,13 +125,13 @@ uint8_t kinetis_spi1status(FAR struct spi_dev_s *dev, enum spi_dev_e devid)
#endif #endif
#ifdef CONFIG_KINETIS_SPI2 #ifdef CONFIG_KINETIS_SPI2
void kinetis_spi2select(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool selected) void kinetis_spi2select(FAR struct spi_dev_s *dev, uint32_t devid, bool selected)
{ {
spiinfo("devid: %d CS: %s\n", (int)devid, selected ? "assert" : "de-assert"); spiinfo("devid: %d CS: %s\n", (int)devid, selected ? "assert" : "de-assert");
# warning "Missing logic" # warning "Missing logic"
} }
uint8_t kinetis_spi2status(FAR struct spi_dev_s *dev, enum spi_dev_e devid) uint8_t kinetis_spi2status(FAR struct spi_dev_s *dev, uint32_t devid)
{ {
# warning "Missing logic" # warning "Missing logic"
return SPI_STATUS_PRESENT; return SPI_STATUS_PRESENT;

View File

@ -130,7 +130,7 @@ void weak_function kl_spidev_initialize(void)
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_KL_SPI0 #ifdef CONFIG_KL_SPI0
void kl_spi0select(FAR struct spi_dev_s *dev, enum spi_dev_e devid, void kl_spi0select(FAR struct spi_dev_s *dev, uint32_t devid,
bool selected) bool selected)
{ {
spiinfo("devid: %d CS: %s\n", spiinfo("devid: %d CS: %s\n",
@ -139,7 +139,7 @@ void kl_spi0select(FAR struct spi_dev_s *dev, enum spi_dev_e devid,
#endif #endif
#ifdef CONFIG_KL_SPI1 #ifdef CONFIG_KL_SPI1
void kl_spi1select(FAR struct spi_dev_s *dev, enum spi_dev_e devid, void kl_spi1select(FAR struct spi_dev_s *dev, uint32_t devid,
bool selected) bool selected)
{ {
spiinfo("devid: %d CS: %s\n", spiinfo("devid: %d CS: %s\n",
@ -162,14 +162,14 @@ void kl_spi1select(FAR struct spi_dev_s *dev, enum spi_dev_e devid,
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_KL_SPI0 #ifdef CONFIG_KL_SPI0
uint8_t kl_spi0status(FAR struct spi_dev_s *dev, enum spi_dev_e devid) uint8_t kl_spi0status(FAR struct spi_dev_s *dev, uint32_t devid)
{ {
return 0; return 0;
} }
#endif #endif
#ifdef CONFIG_KL_SPI1 #ifdef CONFIG_KL_SPI1
uint8_t kl_spi1status(FAR struct spi_dev_s *dev, enum spi_dev_e devid) uint8_t kl_spi1status(FAR struct spi_dev_s *dev, uint32_t devid)
{ {
return 0; return 0;
} }
@ -194,14 +194,14 @@ uint8_t kl_spi1status(FAR struct spi_dev_s *dev, enum spi_dev_e devid)
#ifdef CONFIG_SPI_CMDDATA #ifdef CONFIG_SPI_CMDDATA
#ifdef CONFIG_KL_SPI0 #ifdef CONFIG_KL_SPI0
int kl_spi0cmddata(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool cmd) int kl_spi0cmddata(FAR struct spi_dev_s *dev, uint32_t devid, bool cmd)
{ {
return 0; return 0;
} }
#endif #endif
#ifdef CONFIG_KL_SPI1 #ifdef CONFIG_KL_SPI1
int kl_spi1cmddata(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool cmd) int kl_spi1cmddata(FAR struct spi_dev_s *dev, uint32_t devid, bool cmd)
{ {
return 0; return 0;
} }

View File

@ -97,13 +97,13 @@ void weak_function kinetis_spidev_initialize(void)
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_KINETIS_SPI0 #ifdef CONFIG_KINETIS_SPI0
void kinetis_spi0select(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool selected) void kinetis_spi0select(FAR struct spi_dev_s *dev, uint32_t devid, bool selected)
{ {
spiinfo("devid: %d CS: %s\n", (int)devid, selected ? "assert" : "de-assert"); spiinfo("devid: %d CS: %s\n", (int)devid, selected ? "assert" : "de-assert");
# warning "Missing logic" # warning "Missing logic"
} }
uint8_t kinetis_spi0status(FAR struct spi_dev_s *dev, enum spi_dev_e devid) uint8_t kinetis_spi0status(FAR struct spi_dev_s *dev, uint32_t devid)
{ {
# warning "Missing logic" # warning "Missing logic"
return SPI_STATUS_PRESENT; return SPI_STATUS_PRESENT;
@ -111,13 +111,13 @@ uint8_t kinetis_spi0status(FAR struct spi_dev_s *dev, enum spi_dev_e devid)
#endif #endif
#ifdef CONFIG_KINETIS_SPI1 #ifdef CONFIG_KINETIS_SPI1
void kinetis_spi1select(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool selected) void kinetis_spi1select(FAR struct spi_dev_s *dev, uint32_t devid, bool selected)
{ {
spiinfo("devid: %d CS: %s\n", (int)devid, selected ? "assert" : "de-assert"); spiinfo("devid: %d CS: %s\n", (int)devid, selected ? "assert" : "de-assert");
# warning "Missing logic" # warning "Missing logic"
} }
uint8_t kinetis_spi1status(FAR struct spi_dev_s *dev, enum spi_dev_e devid) uint8_t kinetis_spi1status(FAR struct spi_dev_s *dev, uint32_t devid)
{ {
# warning "Missing logic" # warning "Missing logic"
return SPI_STATUS_PRESENT; return SPI_STATUS_PRESENT;
@ -125,13 +125,13 @@ uint8_t kinetis_spi1status(FAR struct spi_dev_s *dev, enum spi_dev_e devid)
#endif #endif
#ifdef CONFIG_KINETIS_SPI2 #ifdef CONFIG_KINETIS_SPI2
void kinetis_spi2select(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool selected) void kinetis_spi2select(FAR struct spi_dev_s *dev, uint32_t devid, bool selected)
{ {
spiinfo("devid: %d CS: %s\n", (int)devid, selected ? "assert" : "de-assert"); spiinfo("devid: %d CS: %s\n", (int)devid, selected ? "assert" : "de-assert");
# warning "Missing logic" # warning "Missing logic"
} }
uint8_t kinetis_spi2status(FAR struct spi_dev_s *dev, enum spi_dev_e devid) uint8_t kinetis_spi2status(FAR struct spi_dev_s *dev, uint32_t devid)
{ {
# warning "Missing logic" # warning "Missing logic"
return SPI_STATUS_PRESENT; return SPI_STATUS_PRESENT;