Skip to content

Commit

Permalink
clean up code
Browse files Browse the repository at this point in the history
  • Loading branch information
LinjingZhang committed Jan 15, 2024
1 parent dd81584 commit 56e0c6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 53 deletions.
46 changes: 0 additions & 46 deletions XMC14002GO_TEST.md

This file was deleted.

9 changes: 2 additions & 7 deletions variants/XMC1400/config/XMC1400_XMC2GO/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,11 @@ extern const uint8_t NUM_ANALOG_INPUTS;
#define SERIAL_DEBUG 1
#endif

// TODO: Verify the CCU frequency
// Generate 490Hz @fCCU=1MHz
#define PWM4_TIMER_PERIOD (2041U)

// TODO: Verify the PCLK, XMC_CCU4_SLICE_PRESCALER_64
#define PCLK 64000000u
// PCLK = 2 * MCLK
#define PCLK 96000000u

// Define SPI pin
#define PIN_SPI_SS 3
Expand Down Expand Up @@ -107,7 +106,6 @@ extern const uint8_t NUM_ANALOG_INPUTS;
#define LED2 15
#define LED_BUILTIN LED1

// TODO: check Interrupt
/* Mapping interrupt handlers. Notice that XMC1400 can have interrupt handlers working in 3 modes, the defines below assumes the mode A.
For details refer to assembly file and reference manual.
*/
Expand Down Expand Up @@ -299,8 +297,6 @@ XMC_SPI_t XMC_SPI_0 =
}
};


// TODO: I2C
XMC_I2C_t XMC_I2C_0 =
{
.channel = XMC_I2C0_CH1,
Expand Down Expand Up @@ -334,7 +330,6 @@ XMC_I2C_t XMC_I2C_0 =
.protocol_irq_service_request = 5
};

// TODO: I2S
XMC_I2S_t i2s_config =
{
.input_config = {
Expand Down

0 comments on commit 56e0c6e

Please sign in to comment.