ex01 mod04 not stable

This commit is contained in:
hugo LAMY
2025-03-10 17:27:05 +01:00
parent 768054d6c2
commit 9bae6d3f49
11 changed files with 191 additions and 3 deletions

View File

@@ -33,6 +33,8 @@
#define TEST_PIN(elem) (TEST(CONCAT(PIN, GET_PORT(elem)), GET_BIT(elem)))
#define IS_PIN_SET(elem) (TEST_PIN(elem) == 0)
#define IS_PIN_CLEAR(elem) (TEST_PIN(elem) == 1)
#define PULLUP_ON(elem) SET(CONCAT(PORT, GET_PORT(elem)), GET_BIT(elem))
#define PULLUP_OFF(elem) CLEAR(CONCAT(PORT, GET_PORT(elem)), GET_BIT(elem))
// Bit definitions
#define D1 0