Skip to content

Commit

Permalink
Highlight JP9/JP10 in printfs for I2C example
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Carter committed Dec 12, 2023
1 parent f7c6e35 commit e9e008b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Examples/MAX32690/I2C/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
#include "i2c.h"
#include "dma.h"
#include "led.h"
#include "board.h"

/***** Definitions *****/

Expand Down Expand Up @@ -228,6 +229,9 @@ int main()

printf("\nYou will need to connect P1.8->P2.8 (SCL) and\n");
printf("P1.7->P2.7 (SDA).\n");
#ifdef BOARD_EVKIT_V1
printf("\nAdditionally, ensure JP9 and JP10 are set to SDA and SCL.\n");
#endif

int error, i = 0;

Expand Down
2 changes: 2 additions & 0 deletions Libraries/Boards/MAX32690/EvKit_V1/Include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@
extern "C" {
#endif

#define BOARD_EVKIT_V1

#ifndef CONSOLE_UART
#define CONSOLE_UART 2 /// UART instance to use for console
#endif
Expand Down
2 changes: 2 additions & 0 deletions Libraries/Boards/MAX32690/FTHR/Include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@
extern "C" {
#endif

#define BOARD_FTHR

#ifndef CONSOLE_UART
#define CONSOLE_UART 0 /// UART instance to use for console
#endif
Expand Down

0 comments on commit e9e008b

Please sign in to comment.