diff options
Diffstat (limited to 'boards/base/Olimex-SAM7EX256-GE8')
7 files changed, 26 insertions, 26 deletions
diff --git a/boards/base/Olimex-SAM7EX256-GE8/board_Nokia6610GE8.h b/boards/base/Olimex-SAM7EX256-GE8/board_Nokia6610GE8.h index 9683144a..3e8e5c39 100644 --- a/boards/base/Olimex-SAM7EX256-GE8/board_Nokia6610GE8.h +++ b/boards/base/Olimex-SAM7EX256-GE8/board_Nokia6610GE8.h @@ -139,7 +139,7 @@ static GFXINLINE void setpin_reset(GDisplay *g, gBool state) { palSetPad(IOPORT1, PIOA_LCD_RESET); } -static GFXINLINE void set_backlight(GDisplay *g, uint8_t percent) { +static GFXINLINE void set_backlight(GDisplay *g, gU8 percent) { (void) g; if (percent == 100) { /* Turn the pin on - No PWM */ @@ -173,7 +173,7 @@ static GFXINLINE void release_bus(GDisplay *g) { (void) g; } -static GFXINLINE void write_index(GDisplay *g, uint16_t index) { +static GFXINLINE void write_index(GDisplay *g, gU16 index) { (void) g; // wait for the previous transfer to start while(!(pSPI->SPI_SR & AT91C_SPI_TDRE)); @@ -181,7 +181,7 @@ static GFXINLINE void write_index(GDisplay *g, uint16_t index) { pSPI->SPI_TDR = index & 0xFF; } -static GFXINLINE void write_data(GDisplay *g, uint16_t data) { +static GFXINLINE void write_data(GDisplay *g, gU16 data) { (void) g; // wait for the previous transfer to start while(!(pSPI->SPI_SR & AT91C_SPI_TDRE)); diff --git a/boards/base/Olimex-SAM7EX256-GE8/board_SSD1306_i2c.h b/boards/base/Olimex-SAM7EX256-GE8/board_SSD1306_i2c.h index 9e1037b6..b5b2aa86 100644 --- a/boards/base/Olimex-SAM7EX256-GE8/board_SSD1306_i2c.h +++ b/boards/base/Olimex-SAM7EX256-GE8/board_SSD1306_i2c.h @@ -81,7 +81,7 @@ #define I2C_WAITCOMPLETE() #define I2C_WRITECMDBYTE(cmd) { \ - uint8_t data[2]; \ + gU8 data[2]; \ data[0] = 0; \ data[1] = cmd; \ i2cMasterTransmitTimeout (UEXT_I2C, I2C_ADDRESS, data, 2, 0, 0, gDelayForever); \ @@ -107,7 +107,7 @@ static GFXINLINE void setpin_reset(GDisplay *g, gBool state) { (void) state; } -static GFXINLINE void set_backlight(GDisplay *g, uint8_t percent) { +static GFXINLINE void set_backlight(GDisplay *g, gU8 percent) { (void) g; (void) percent; } @@ -125,7 +125,7 @@ static GFXINLINE void release_bus(GDisplay *g) { I2C_RELEASEBUS(); } -static GFXINLINE void write_cmd(GDisplay *g, uint8_t cmd) { +static GFXINLINE void write_cmd(GDisplay *g, gU8 cmd) { (void) g; I2C_WAITCOMPLETE(); @@ -134,7 +134,7 @@ static GFXINLINE void write_cmd(GDisplay *g, uint8_t cmd) { I2C_WRITECMDBYTE(cmd); } -static GFXINLINE void write_data(GDisplay *g, uint8_t* data, uint16_t length) { +static GFXINLINE void write_data(GDisplay *g, gU8* data, gU16 length) { (void) g; I2C_WAITCOMPLETE(); diff --git a/boards/base/Olimex-SAM7EX256-GE8/board_SSD1306_spi.h b/boards/base/Olimex-SAM7EX256-GE8/board_SSD1306_spi.h index 58b922cd..070906a8 100644 --- a/boards/base/Olimex-SAM7EX256-GE8/board_SSD1306_spi.h +++ b/boards/base/Olimex-SAM7EX256-GE8/board_SSD1306_spi.h @@ -63,8 +63,8 @@ static void spi_delay(volatile unsigned long a) { while (a!=0) a--; } - static void spi_write(uint8_t data) { - uint8_t bit; + static void spi_write(gU8 data) { + gU8 bit; for(bit = 0x80; bit; bit >>= 1) { if(data & bit) @@ -185,7 +185,7 @@ static GFXINLINE void setpin_reset(GDisplay *g, gBool state) { PinSet(PORT_RESET, PIN_RESET); } -static GFXINLINE void set_backlight(GDisplay *g, uint8_t percent) { +static GFXINLINE void set_backlight(GDisplay *g, gU8 percent) { (void) g; (void) percent; } @@ -203,7 +203,7 @@ static GFXINLINE void release_bus(GDisplay *g) { SPI_RELEASEBUS(); } -static GFXINLINE void write_cmd(GDisplay *g, uint8_t cmd) { +static GFXINLINE void write_cmd(GDisplay *g, gU8 cmd) { (void) g; // Command mode please @@ -213,7 +213,7 @@ static GFXINLINE void write_cmd(GDisplay *g, uint8_t cmd) { SPI_WRITEBYTE(cmd); } -static GFXINLINE void write_data(GDisplay *g, uint8_t* data, uint16_t length) { +static GFXINLINE void write_data(GDisplay *g, gU8* data, gU16 length) { (void) g; // Data mode please diff --git a/boards/base/Olimex-SAM7EX256-GE8/board_SSD1331.h b/boards/base/Olimex-SAM7EX256-GE8/board_SSD1331.h index b4cda276..7e066ec0 100644 --- a/boards/base/Olimex-SAM7EX256-GE8/board_SSD1331.h +++ b/boards/base/Olimex-SAM7EX256-GE8/board_SSD1331.h @@ -63,8 +63,8 @@ static void spi_delay(volatile unsigned long a) { while (a!=0) a--; } - static void spi_write(uint8_t data) { - uint8_t bit; + static void spi_write(gU8 data) { + gU8 bit; for(bit = 0x80; bit; bit >>= 1) { if(data & bit) @@ -182,7 +182,7 @@ static GFXINLINE void setpin_reset(GDisplay *g, gBool state) { PinSet(PORT_RESET, PIN_RESET); } -static GFXINLINE void set_backlight(GDisplay *g, uint8_t percent) { +static GFXINLINE void set_backlight(GDisplay *g, gU8 percent) { (void) g; (void) percent; } @@ -200,7 +200,7 @@ static GFXINLINE void release_bus(GDisplay *g) { SPI_RELEASEBUS(); } -static GFXINLINE void write_cmd(GDisplay *g, uint8_t cmd) { +static GFXINLINE void write_cmd(GDisplay *g, gU8 cmd) { (void) g; // Command mode please @@ -210,7 +210,7 @@ static GFXINLINE void write_cmd(GDisplay *g, uint8_t cmd) { SPI_WRITEBYTE(cmd); } -static GFXINLINE void write_data(GDisplay *g, uint8_t data) { +static GFXINLINE void write_data(GDisplay *g, gU8 data) { (void) g; // Data mode please diff --git a/boards/base/Olimex-SAM7EX256-GE8/board_TLS8204.h b/boards/base/Olimex-SAM7EX256-GE8/board_TLS8204.h index dd51bfe2..e8b3c214 100644 --- a/boards/base/Olimex-SAM7EX256-GE8/board_TLS8204.h +++ b/boards/base/Olimex-SAM7EX256-GE8/board_TLS8204.h @@ -49,8 +49,8 @@ static void spi_delay(volatile unsigned long a) { while (a!=0) a--; } - static void spi_write(uint8_t data) { - uint8_t bit; + static void spi_write(gU8 data) { + gU8 bit; for(bit = 0x80; bit; bit >>= 1) { if(data & bit) @@ -171,7 +171,7 @@ static GFXINLINE void setpin_reset(GDisplay *g, gBool state) { PinSet(PORT_RESET, PIN_RESET); } -static GFXINLINE void set_backlight(GDisplay *g, uint8_t percent) { +static GFXINLINE void set_backlight(GDisplay *g, gU8 percent) { (void) g; (void) percent; } @@ -189,7 +189,7 @@ static GFXINLINE void release_bus(GDisplay *g) { SPI_RELEASEBUS(); } -static GFXINLINE void write_cmd(GDisplay *g, uint8_t cmd) { +static GFXINLINE void write_cmd(GDisplay *g, gU8 cmd) { (void) g; // Command mode please @@ -199,7 +199,7 @@ static GFXINLINE void write_cmd(GDisplay *g, uint8_t cmd) { SPI_WRITEBYTE(cmd); } -static GFXINLINE void write_data(GDisplay *g, uint8_t* data, uint16_t length) { +static GFXINLINE void write_data(GDisplay *g, gU8* data, gU16 length) { (void) g; // Data mode please diff --git a/boards/base/Olimex-SAM7EX256-GE8/gaudio_play_board.h b/boards/base/Olimex-SAM7EX256-GE8/gaudio_play_board.h index dd80dcd3..a1abf2a0 100644 --- a/boards/base/Olimex-SAM7EX256-GE8/gaudio_play_board.h +++ b/boards/base/Olimex-SAM7EX256-GE8/gaudio_play_board.h @@ -33,9 +33,9 @@ static GPTConfig gptcfg = { GPT_TRIGGER_NONE, // trigger }; -static uint16_t lastvalue; +static gU16 lastvalue; -static gBool gaudio_play_pwm_setup(uint32_t frequency, ArrayDataFormat format) { +static gBool gaudio_play_pwm_setup(gU32 frequency, ArrayDataFormat format) { if (format == ARRAY_DATA_10BITUNSIGNED) pwmcfg.period = 1024; else if (format == ARRAY_DATA_8BITUNSIGNED) @@ -65,7 +65,7 @@ static void gaudio_play_pwm_stop(void) { pwmStop(&PWMD1); } -static void gaudio_play_pwm_setI(uint16_t value) { +static void gaudio_play_pwm_setI(gU16 value) { if (value != lastvalue) { lastvalue = value; pwmEnableChannelI(&PWMD1, 0, value); diff --git a/boards/base/Olimex-SAM7EX256-GE8/gaudio_record_board.h b/boards/base/Olimex-SAM7EX256-GE8/gaudio_record_board.h index a4698275..8d3a8d80 100644 --- a/boards/base/Olimex-SAM7EX256-GE8/gaudio_record_board.h +++ b/boards/base/Olimex-SAM7EX256-GE8/gaudio_record_board.h @@ -30,7 +30,7 @@ #define GAUDIO_RECORD_MICROPHONE 0 #ifdef GAUDIO_RECORD_IMPLEMENTATION - static uint32_t gaudio_gadc_physdevs[GAUDIO_RECORD_NUM_CHANNELS] = { + static gU32 gaudio_gadc_physdevs[GAUDIO_RECORD_NUM_CHANNELS] = { GADC_PHYSDEV_MICROPHONE, }; #endif |