3 * @author Shinichiro Nakamura
4 * @brief テストピン制御ライブラリの実装。
10 #define TP1_PIN_NUM 25
11 #define TP2_PIN_NUM 26
13 void testpin_init(void)
15 LPC_GPIO1->FIODIR |= (1 << TP1_PIN_NUM);
16 LPC_GPIO1->FIODIR |= (1 << TP2_PIN_NUM);
19 void testpin_tp1_write(uint8_t on)
22 LPC_GPIO1->FIOPIN |= (1 << TP1_PIN_NUM);
24 LPC_GPIO1->FIOPIN &= ~(1 << TP1_PIN_NUM);
28 void testpin_tp2_write(uint8_t on)
31 LPC_GPIO1->FIOPIN |= (1 << TP2_PIN_NUM);
33 LPC_GPIO1->FIOPIN &= ~(1 << TP2_PIN_NUM);
37 void testpin_tp1_toggle(void)
39 LPC_GPIO1->FIOPIN ^= (1 << TP1_PIN_NUM);
42 void testpin_tp2_toggle(void)
44 LPC_GPIO1->FIOPIN ^= (1 << TP2_PIN_NUM);