PokittoLib is the library needed for programming the Pokitto DIY game console (www.pokitto.com)
Fork of PokittoLib by
Diff: POKITTO_HW/HWSound.h
- Revision:
- 2:968589ca3484
- Parent:
- 0:e8b8f36b4505
--- a/POKITTO_HW/HWSound.h Mon Sep 18 12:34:05 2017 +0000 +++ b/POKITTO_HW/HWSound.h Tue Sep 19 08:47:36 2017 +0000 @@ -92,22 +92,22 @@ #endif -#define CLR_DAC0 LPC_GPIO_PORT->CLR[DAC0_PORT] = 1 << DAC0_PIN; -#define SET_DAC0 LPC_GPIO_PORT->SET[DAC0_PORT] = 1 << DAC0_PIN; -#define CLR_DAC1 LPC_GPIO_PORT->CLR[DAC1_PORT] = 1 << DAC1_PIN; -#define SET_DAC1 LPC_GPIO_PORT->SET[DAC1_PORT] = 1 << DAC1_PIN; -#define CLR_DAC2 LPC_GPIO_PORT->CLR[DAC2_PORT] = 1 << DAC2_PIN; -#define SET_DAC2 LPC_GPIO_PORT->SET[DAC2_PORT] = 1 << DAC2_PIN; -#define CLR_DAC3 LPC_GPIO_PORT->CLR[DAC3_PORT] = 1 << DAC3_PIN; -#define SET_DAC3 LPC_GPIO_PORT->SET[DAC3_PORT] = 1 << DAC3_PIN; -#define CLR_DAC4 LPC_GPIO_PORT->CLR[DAC4_PORT] = 1 << DAC4_PIN; -#define SET_DAC4 LPC_GPIO_PORT->SET[DAC4_PORT] = 1 << DAC4_PIN; -#define CLR_DAC5 LPC_GPIO_PORT->CLR[DAC5_PORT] = 1 << DAC5_PIN; -#define SET_DAC5 LPC_GPIO_PORT->SET[DAC5_PORT] = 1 << DAC5_PIN; -#define CLR_DAC6 LPC_GPIO_PORT->CLR[DAC6_PORT] = 1 << DAC6_PIN; -#define SET_DAC6 LPC_GPIO_PORT->SET[DAC6_PORT] = 1 << DAC6_PIN; -#define CLR_DAC7 LPC_GPIO_PORT->CLR[DAC7_PORT] = 1 << DAC7_PIN; -#define SET_DAC7 LPC_GPIO_PORT->SET[DAC7_PORT] = 1 << DAC7_PIN; +#define CLR_DAC0 LPC_GPIO_PORT->CLR[DAC0_PORT] = 1UL << DAC0_PIN; +#define SET_DAC0 LPC_GPIO_PORT->SET[DAC0_PORT] = 1UL << DAC0_PIN; +#define CLR_DAC1 LPC_GPIO_PORT->CLR[DAC1_PORT] = 1UL << DAC1_PIN; +#define SET_DAC1 LPC_GPIO_PORT->SET[DAC1_PORT] = 1UL << DAC1_PIN; +#define CLR_DAC2 LPC_GPIO_PORT->CLR[DAC2_PORT] = 1UL << DAC2_PIN; +#define SET_DAC2 LPC_GPIO_PORT->SET[DAC2_PORT] = 1UL << DAC2_PIN; +#define CLR_DAC3 LPC_GPIO_PORT->CLR[DAC3_PORT] = 1UL << DAC3_PIN; +#define SET_DAC3 LPC_GPIO_PORT->SET[DAC3_PORT] = 1UL << DAC3_PIN; +#define CLR_DAC4 LPC_GPIO_PORT->CLR[DAC4_PORT] = 1UL << DAC4_PIN; +#define SET_DAC4 LPC_GPIO_PORT->SET[DAC4_PORT] = 1UL << DAC4_PIN; +#define CLR_DAC5 LPC_GPIO_PORT->CLR[DAC5_PORT] = 1UL << DAC5_PIN; +#define SET_DAC5 LPC_GPIO_PORT->SET[DAC5_PORT] = 1UL << DAC5_PIN; +#define CLR_DAC6 LPC_GPIO_PORT->CLR[DAC6_PORT] = 1UL << DAC6_PIN; +#define SET_DAC6 LPC_GPIO_PORT->SET[DAC6_PORT] = 1UL << DAC6_PIN; +#define CLR_DAC7 LPC_GPIO_PORT->CLR[DAC7_PORT] = 1UL << DAC7_PIN; +#define SET_DAC7 LPC_GPIO_PORT->SET[DAC7_PORT] = 1UL << DAC7_PIN; /** the output holder **/ extern uint16_t soundbyte;