annotate examples/hello.c @ 2511:1f18f909a18e

* src/lpc2xxx_misc.c: Added hal_lpc_can_init() to initialize CAN channels * cdl/hal_arm_lpc24xx.cdl: Added a number of CYGHWR_HAL_ARM_LPC2XXX_xxx options for device driver compatibility reasons. Some LPC2xxx device drivers rely on these definitions. Moved some configuration options to make configuration more intuitive in configuration tool. Added CYGNUM_HAL_ARM_LPC2XXX_CAN_CLK option for configuration of CAN peripheral clock. * include/var_io.h: Added macro CYGARC_HAL_LPC24XX_SET_PIN_FUN() * src/lpc2xxx_misc.c: Added function hal_lpc_set_pclk() to set peripheral clocks easily. Initialize peripheral clocks in hal_hardware_init() according to configuration.
author asl
date Fri, 25 Jul 2008 11:14:39 +0000
parents ead06911cbae
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
168
ead06911cbae Add up-to-date examples
jlarmour
parents:
diff changeset
1 /* this is a simple hello world program */
ead06911cbae Add up-to-date examples
jlarmour
parents:
diff changeset
2 #include <stdio.h>
ead06911cbae Add up-to-date examples
jlarmour
parents:
diff changeset
3
ead06911cbae Add up-to-date examples
jlarmour
parents:
diff changeset
4 int main(void)
ead06911cbae Add up-to-date examples
jlarmour
parents:
diff changeset
5 {
ead06911cbae Add up-to-date examples
jlarmour
parents:
diff changeset
6 printf("Hello, eCos world!\n");
ead06911cbae Add up-to-date examples
jlarmour
parents:
diff changeset
7 return 0;
ead06911cbae Add up-to-date examples
jlarmour
parents:
diff changeset
8 }